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

RE: Keys working on nodeset?

Subject: RE: Keys working on nodeset?
From: "Andrew Welch" <ajwelch@xxxxxxxxxxxxxxx>
Date: Mon, 25 Jul 2005 16:25:41 +0100
RE:  Keys working on nodeset?
> Hi Andrew,
>
> Thanks for the response. I had not thought on extension
> functions. If keys do not work on the nodeset, then I will
> pursue this.

Keys definitely work on nodesets - it's just passing a nodeset into a
transform is notoriously tricky... so if you are having problems it
could be that you are passing something else into the transform that you
think is a nodeset.  At least if you pass a string in and then use an
extension function such as parse to turn it into a nodeset you are
guaranteed that what gets returned is acceptable to the processor.

> If I understand correctly, the urlsolution will not work for
> me. The document will be transformed many times each time
> with different input. Both the document and the input are
> generated on the fly from a database, which is why I do not
> have url locations.

There are 3 ways I can think of to do this:

1- The way you are doing it now, pass the input xml in as a parameter

2- Use a custom URIResolver that intercepts a document() call and return
the input xml that way

3- Combine the two xml documents together before the transformation and
then the xslt only has to work on a single document.

Out of the 3, option 2 is the best but I'm not sure there's a .Net
equivalent of a custom URIResolver (which is in Java).

cheers
andrew

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.