[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: suggestion: xsl:modified-copy
>> Again, that's > > <xsl:apply-templates select="foo" mode="m"> > <xsl:mode name="m" on-no-match="shallow-copy"/> > <xsl:template mode="m" match="baz"> > <xsl:next-match/> > <baz/> > </xsl:template> > > I think it needs a more convincing use case. Yeah the new xsl:mode looks good. My particular use case this morning is that I wanted it to be doable from within a template. What you've got above there is all in one place, however in reality the xsl:mode and xsl:template would be in different places to the apply-templates. The other benefit to being self contained is that it's likely to be more intuitive than the identity template and the above, and it's a bit more concise. Regarding optimisation, I'm guessing it could be designed easily enough to be "guaranteed streamable"... something the alternative approaches might not be (or harder to ensure they are from a developers perspective - is that right?) -- Andrew Welch http://andrewjwelch.com
|
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
|