|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: How to transform to a stylesheet?
[Jeremy Richman] >But there seems to be an impasse when it comes to having an xsl:template >whose content >instantiates an xsl:stylesheet element with appropriate attributes (e.g. >xmlns:xsl="..."). Ah - that's *not* an attribute. Yes, it looks like one, but it's not - it's a namespace declaration. That's what the section you quoted from §7.1.3 of XSLT means. The namespace declaration is an integral part of an element; you can't <xsl:copy> it and then alter the namespace declaration. You need to create a new and different element with its own namespace - that's the whole point of namespaces, that <oldxsl:stylesheet> and <xsl:stylesheet> are completely different things despite the similarity of their names. You need to match old XSL elements and create new ones. (BTW, the URI you're using for the result is out of date; take a look at the Proposed Recommendation at <URL:http://www.w3.org/TR/xslt>.) -Chris -- Christopher R. Maden, Solutions Architect Exemplary Technologies One Embarcadero Center, Ste. 2405 San Francisco, CA 94111 XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








