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

Node vs TreeFragment

Subject: Node vs TreeFragment
From: "Mikal Keenan" <mikal.keenan@xxxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 08 Jun 2001 12:06:20 -0500
treefragment to nodelist example
> 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


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.