[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: variable question

Subject: Re: variable question
From: Geert Josten <Geert.Josten@xxxxxxxxxxx>
Date: Thu, 11 Nov 2004 21:59:28 +0100
Re:  variable question
Jeni Tennison wrote:

If so, you need:

<xsl:variable name="bibrecord"
  select="$bibkey/doc(concat('bib-data/', ., '.mods'))" />

Is it allowed to use a function-call at the end of a path expression? That must be new in XPath 2. It wasn't allowed in 1.0, which was a pity in some occasions as it would have prevented the need of the node-set function...


because in this case the <mods:mods> element is parentless. This
distinction is very subtle, and usually unimportant, but in general my
advice would be to avoid the "//" at the beginning of the pattern
unless you're really sure that you'll never want to match elements
that don't appear in a tree rooted with a document node.

Ah, another nice detail...


Cheers,
Geert

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.