|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Need help for XSL beautifaction
Are you asking if there's anything like keys? Yes, keys. 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>
then in the appropriate template <xsl:value-of select="key('texts',@idref)" /> where idref would be the text-1, however it is set in the input tree. There's a shorter way to do this in xslt 2.0, don't remember off the top of my head. Typed this in a hurry. Look in the faq for better info. Jon Gorman
|
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








