Subject:Document() problems Author:Adam Van den Hoven Date:18 Sep 2001 05:20 PM
Today, I tried to pass a variable to document() containing a result tree with a string value (it is in fact just a string) that is an absolute URL (I'd give it to you but the IP is behind a firewall and so irrelevant). Nothing was returned (I checked with copy-of) so I figured that it was a problem with my string. I created a second variable with the absolute URL, which I checked first on IE, and it did not get correctly populated.
I checked the stylesheet against MSXML and it worked fine.
Subject:Re: Document() problems Author:Minollo I. Date:18 Sep 2001 05:26 PM
>Today, I tried to pass a variable to document() containing a result tree
>with a string value (it is in fact just a string) that is an absolute URL
>(I'd give it to you but the IP is behind a firewall and so irrelevant).
>Nothing was returned (I checked with copy-of) so I figured that it was a
>problem with my string. I created a second variable with the absolute URL,
>which I checked first on IE, and it did not get correctly populated.
Can you give me more details about how your variable is defined? I tried
doing something like:
where localip is the IP of the webserver I'm working against inside my firewall. The variable generates this using a named template and a value-of. I've alternately used document($componenturl) and document(string($componenturl)). Neither worked. Nor did document('HTTP://localip/component/component1.xml')
Subject:Re: Document() problems Author:Minollo I. Date:18 Sep 2001 05:46 PM
>The URL that I am creating is like:
>
>HTTP://localip/component/component1.xml
>
>where localip is the IP of the webserver I'm working against inside my
>firewall. The variable generates this using a named template and a
>value-of. I've alternately used document($componenturl) and
>document(string($componenturl)). Neither worked. Nor did
>document('HTTP://localip/component/component1.xml')
Well, the fact that this last one didn't work either is a symptom that
Stylus Studio dislikes that URL. Variables don't seem to be involved.
When you say "it didn't work" you mean that the result of {xsl:value-of
select="document('http......')"/} is empty? Or that you get an error saying
that the URL could not be opened? I would guess the former reading your
original post.
If you expand the "Other Documents" nodes in the project tree, do you see
that URL after having run the stylesheet? If yes, what does it happen when
you double click it? If you can see it correctly in the XML editor, can you
sen me component1.xml so that I can understand what's going on?