[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Node vs TreeFragment
> Xselerator from > Marrosoft. Haven't been able to find it via websearch. URL maybe? > > <xsl:variable name="theData" select="someParent/someNode[@a='aKey' and > > @b='bKey' and @c='cKey']/data" /> > > > > Yes, you've guessed the syntax correctly. > > But couldn't you have (a) looked it up in a book, or (b) tried it on an XSLT > processor? Asking the list is a pretty inefficient mechanism compared with > either of these. > > Mike Kay Wel, not really Mike ... given that I've never used XML/XSL and the books don't reference the syntax ... I have yet to see and example of an "and" in xml or xsl reading, and tools that I'm using balk at what I've typed. I typed the "and" above as pseudocode. On another note ... I'm trying to get at the node/treefragment that would be represented by "data" above. FOP balks, saying that I can't convert a treefragment into a nodelist. How can I get the treefragment represented by "data" into a variable which can then be dereferenced? If the "and" works, it will still be very bulky because I will be creating a lot of variables from nodes within "data"? Any advice? Last approach was to use a named template to return "data". XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
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
|