[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

copying <xsl:stylesheet> tag to output xsl file

Subject: copying <xsl:stylesheet> tag to output xsl file
From: "tony" <dhirajtorane@xxxxxxxxx>
Date: Wed, 2 Jan 2002 19:39:59 +0530
xsl output to file
I have this XSL file as below..i want to copy the <xsl:stylesheet> tag to
the output xsl file, as i need the "my" namespace declaration in the
generated output xsl file.

<xsl:stylesheet version="1.0"  xmlns:my="http://mysite.com/mynamespace">
 <xsl:output method="xml" version="1.0" indent="yes"/>
 <xsl:template match="/">
   <xsl:for-each select="document('')/xsl:stylesheet">

When i apply this XSL on a XML , it copies the <xsl:stylesheet> element
properly, but the <xsl:apply-template> applies the template on to this
same XSL file instead of the XML file.
e.g. The templates are applied on to <xsl:output> , <xsl:template>,
<xsl:for-each>, <xsl:copy> tags which are actually in the XSL file.

Can some one tell me a way by which i can copy the <xsl:stylesheet> element
to the output XSL file, & apply the templates on to the XML file so that the
output of comes between
<xsl:stylesheet version="1.0"  xmlns:my="http://mysite.com/mynamespace">
        <!-- output from the XML file after applying the templates -->

I am sorry but i am not able to form the question properly.

Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Current Thread


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.