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
Conferences Close Tree View
+ Stylus Studio Feature Requests (1192)
+ Stylus Studio Technical Forum (14621)
+ Website Feedback (249)
- XSLT Help and Discussion (7625)
-> + Use of before and after string (3) Sticky Topic
-> - How do I substitute element ty... (1)
-> + How does one add working days ... (4)
-> - Help, I have existing XLT and... (1)
-> + Need help on XSLT issue - (2)
-> + EDI to XML Conversion (7)
-> - XML To JSON Conversion using X... (1)
-> + Formatting Paragraphs to same ... (2)
-> - Grouping of records (1)
-> + Problems with xsd 1.1 (4)
-> + XML to HL7 mapping (3)
-> + XSLT 3 and Iterate (2)
-> + XSL-FO to PDF preview (3)
-> + java.lang.RuntimeException: Er... (2)
-> + Create Acroforms with Stylus X... (2)
-> + How to change XSLT parameter s... (3)
-> + how to change format of the da... (2)
-> + Search "Next 8 Results " doesn... (2)
-> - Support for Git (1)
-> + newbee (8)
-- [1-20] [21-40] [41-60] Next
+ XQuery Help and Discussion (2017)
+ Stylus Studio FAQs (159)
+ Stylus Studio Code Samples & Utilities (364)
+ Stylus Studio Announcements (113)
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.

   
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.