XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
Adam Van den HovenSubject: 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.

Any ideas?

Postnext
Minollo I.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:

{xsl:variable name="foo"}{value}y:\books.xml{/value}{/xsl:variable}
{xsl:value-of select="document($foo)"/}

....and it worked fine; so I'm not sure I'm doing exactly what you are
describing.

Thanks,
Minollo

Postnext
Adam Van den HovenSubject: Re: Document() problems
Author: Adam Van den Hoven
Date: 18 Sep 2001 05:40 PM
Sure.

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')

Postnext
Minollo I.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?

BTW, I'm assuming you are running BL61 (or 61b).

Thanks,
Minollo

Posttop
Adam Van den HovenSubject: Re: Document() problems
Author: Adam Van den Hoven
Date: 18 Sep 2001 06:46 PM
I tried it again after restarting Studio and everything is fine. I'm not sure why that would be but there you go.

Sorry to trouble.

 
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.