|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: document tree fragments
David Carlisle wrote:
Is there a way to use my $thePath variable, instead of including the directory path inside the @filename attribute? Hi David, Thanks, a somewhat sneaky idea--I like it! The for-each is superfluous/breaks things, but the following works for me (NB, now moved to the top of my xsl stylesheet, rather than in a template match): <xsl:variable name="thePath" select="document(concat(/docs/@path, '/', /docs/doc[1]/@filename))" /> <xsl:variable name="theWines" select="document(/docs/doc/@filename, $thePath)" /> Cheers! Joe
|
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








