Subject: Re: [xsl] Need help for XSL beautifaction From: "Jon Gorman" <jonathan.gorman@xxxxxxxxx> Date: Wed, 17 May 2006 12:55:36 -0500 |
Hoped there was a way like this: <xsl:copy-of select="${<xsl:copy-of select='textNo'/>}"/>
Check out the faq and the w3 docs for more details, but essentially you can do this one path by having a "reference map" of sorts.
ie: the xslt 1.0 way
map.xml <textstrings> <textstring id="text-1">Don't you love maps</textstring> <texstring id="text-2">yes, yes I do</textstring> </textstring>
in the xslt: <xsl:variable name="textstrings" select="document(map.xml)/textstrings" /> <xsl:key name="texts" match="$textstrings/textstring" use="@id"/>
There's a shorter way to do this in xslt 2.0, don't remember off the top of my head.
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Need help for XSL beautif, Christian Haase | Thread | Re: [xsl] Need help for XSL beautif, Wendell Piez |
RE: [xsl] Need help for XSL beautif, Michael Kay | Date | Re: [xsl] Need help for XSL beautif, Wendell Piez |
Month |