|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: XSLT template from XSLT + XML
Mike,
At 06:16 PM 9/30/2002, you wrote: > I guess that you haven't discovered the delights of > xsl:namespace-alias, then. You can define an "alias" namespace which > takes the place of the XSLT namespace within your stylesheet and then > gets replaced on output. That makes it a lot easier to write the > stylesheets (though it's still a little confusing) because you can use > literal result elements rather than xsl:element/xsl:attribute. What's wrong with xsl:apply-templates select="@*"/> ? If you're referring to an identity stylesheet ("recreate all elements and attributes"), it works with a single template, that looks like this: <xsl:template match="node()|@*">
<xsl:copy>
<xsl:apply-templates select="node()|@*"/>
</xsl:copy>
</xsl:template>This variant copies all element and attribute nodes, preserving their organization, but leaves processing instructions and comments out. It's the basis for quite a number of utility operations (and a FAQ). Cheers, Wendell
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








