Subject: RE: document()
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Sun, 7 Nov 2004 21:07:48 -0000
|
If you can't get it to work using an absolute URL, and the absolute URL
works from your web browser, then something very strange is going on.
Michael Kay
http://www.saxonica.com/
> -----Original Message-----
> From: Gabriel K. [mailto:gabriel.klappenbach@xxxxxxxxxxxx]
> Sent: 07 November 2004 20:39
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: Re: document()
>
> Hmm.. well I have tried absolute as well (starting from the
> webserver root),
> as well as fully qualified URL, and still no go. So do you
> still think the
> problem is with the base URI?
>
> /Gabriel
>
> ----- Original Message -----
> From: "Michael Kay" <mike@xxxxxxxxxxxx>
> To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
> Sent: Sunday, November 07, 2004 9:14 PM
> Subject: RE: 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
> > http://www.saxonica.com/
> >
> >
> >> -----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/
|