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

RE: document()

Subject: RE: document()
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Sun, 7 Nov 2004 20:14:03 -0000
xsl document
If a relative URI doesn't work in the document() function, this may be
because the base URI of the stylesheet isn't known. In JAXP this can happen,
for example, when you load the stylesheet from an InputStream or from a DOM,
rather than directly from a File. In such cases you can set the base URI of
the stylesheet explicitly using the setSystemId() method. I don't know what
the equivalent of this is in the Microsoft API.

Michael Kay

> -----Original Message-----
> From: Gabriel K. [mailto:gabriel.klappenbach@xxxxxxxxxxxx] 
> Sent: 07 November 2004 16:58
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: Re:  document()
> I tried that, and also absolute path: 
> document('mickel/XML/source.xml')
> If you read my other posts, not even when the XML files resides in
> /mickel/XSL/PC/XML/ it works. Of course then I use
> document('XML/source.xml') instead.
> I get the same error all the time, "can't find the path", or 
> "can't find 
> object".
> So I find this error very strange.
> You browse the files I have at http://gabbah.no-ip.org/mickel/
> I try to open http://gabbah.no-ip.org/mickel/XML/paths.xml
> in http://gabbah.no-ip.org/mickel/XSL/PC/shared_variable.xsl
> and
> http://gabbah.no-ip.org/mickel/XSL/PC/search.xsl
> (they are xsl:variables at the near the top)
> Transformation in the ASP script starts at 
> http://gabbah.no-ip.org/mickel/XSL/PC/pc-templates.xsl
> I'm stuck.. All folders below wwwroot I have given read 
> permissions to user 
> "everyone"... so it can't be that can it?
> If you have any more questions please ask, if you think it 
> would help you 
> help me. :)
> /Gabriel
> ----- Original Message ----- 
> From: "Michael Kay" <mike@xxxxxxxxxxxx>
> To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
> Sent: Sunday, November 07, 2004 5:31 PM
> Subject: RE:  document()
> >>
> >> The XSL file resides here (under the web root):
> >> /mickel/XSL/PC/
> >>
> >> and the XML file resides here (under the web root);
> >> /mickel/XML
> >>
> >
> > I would expect document('../../XML/source.xml') to work.
> >
> > Michael Kay
> > http://www.saxonica.com/

Current Thread


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.
First Name
Last Name
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.