xsl-list
[Top] [All Lists]

RE: document()

2004-11-07 14:07:48
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(_dot_)klappenbach(_at_)bredband(_dot_)net] 
Sent: 07 November 2004 20:39
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: Re: [xsl] 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(_at_)saxonica(_dot_)com>
To: <xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com>
Sent: Sunday, November 07, 2004 9:14 PM
Subject: RE: [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
http://www.saxonica.com/


-----Original Message-----
From: Gabriel K. [mailto:gabriel(_dot_)klappenbach(_at_)bredband(_dot_)net]
Sent: 07 November 2004 16:58
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: Re: [xsl] 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(_at_)saxonica(_dot_)com>
To: <xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com>
Sent: Sunday, November 07, 2004 5:31 PM
Subject: RE: [xsl] 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/




--+------------------------------------------------------------------
XSL-List info and archive:  
http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--+--




--+------------------------------------------------------------------
XSL-List info and archive:  
http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--+--





--+------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--+--



--+------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--+--





<Prev in Thread] Current Thread [Next in Thread>