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

The document() function....again !!

Subject: The document() function....again !!
From: "Melvyn Rosengarden" <melrose@xxxxxxxxxxxxxxxx>
Date: Fri, 13 Oct 2000 16:40:22 -0400
The document() function....again !!
While I am an eager to get help from anyone, I want to direct this question
to "our teachers" in the group (Alan Kay, Jeni Tennison, and others).
Could someone please explain what goes on in the the XSLT call to
document(). I have hit a brick wall using MSXML3.DLL and have been only
marginally more successful with SAXON.

First let me say ALL files are in in the exact same directory....

I am using a string literal as my  URI parameter
             <xsl:apply-templates
select="document(somefile.xml)/some_element[@aval='true']"
" Open the somefile.xml file and return the <some_elemement> node collection
whose aval attribute is true. "

followed by..

<xsl:template match=some_element />
       <H1> FOUND IT </H1>

I never invoke the template above yet I am sure the XML data should produce
the desired result.

1.)   Is there any way to verify that the secondary XML has indeed been read
and parsed ?
2.)   In Alan Kay's Wrox text on XSLT he goes to great length to draw the
schematics of the XML input tree, XSLT transform and output trees.
       How is that structure impacted by a call to document() ? Is a second
Input tree created ?  If so what mechanism is used to
      alternate between those data structures.

If anyone can offer  ANY suggestion or insight into this process it would be
MOST greatlfully appreciated.

Thanks so very much to this whole list for their invaluable contributions.


"You already have zero privacy -- get over it !!
Melvyn Rosengarden
melrose@xxxxxxxxxxxxxxxx


 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.