[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: retrieving a piece of data from a different xml file

Subject: Re: retrieving a piece of data from a different xml file
From: "Rudolf P. Weinmann" <rudolf.weinmann@xxxxxx>
Date: Thu, 3 Aug 2000 23:28:25 +0200
a piece of data
Have you tried to replace the absolut path d:\xml\test\ with a relativ path?
If it, for any reason, has to be an absolut path try file:///d:/xml/test
Hope this helps.

Rudolf P. Weinmann
Innovation Process Technology Inc.
Switzerland

----- Original Message -----
From: "Eric Taylor" <Eric.Taylor@xxxxxxxxxxxx>
To: <XSL-List@xxxxxxxxxxxxxxxx>
Sent: Wednesday, August 02, 2000 9:46 PM
Subject: RE: retrieving a piece of data from a different xml file


> When I try to display my page in IE5 the following data generates "The XML
> page cannot be displayed. Cannot view XML input using XSL style sheet....
> Unspecified error..." The line it references is completely unrelated, but
> when I comment out the link template (which is what I'm trying to get to
> work correctly), everything displays correctly.  Can someone point out
where
> I've gone wrong (in novice terms please!) Thanks much!  Eric : )
>
> In XML:
>   <link page="test1" text="link to test1"/>
>
> In XSL:
>   <xsl:template match="link">
>     <xsl:if test="@page">
>       <xsl:variable name="locs"
> select="document('\docs\pagelocations.xml')"></xsl:variable>
>       <A>
>         <xsl:attribute name="href">
>           <xsl:value-of select="$locs/pages/page[@name =
> current()/@page]/@location" />
>         </xsl:attribute>
>         <xsl:attribute name="target">new_window</xsl:attribute>
>         <xsl:value-of select="@text"/>
>       </A>
>     </xsl:if>
>   </xsl:template>
>
> In \docs\pagelocations.xml:
>   <?xml version="1.0"?>
>   <pages>
>     <page name="test1" location="d:\xml\test\test1.xml"/>
>     <page name="test2" location="d:\xml\test\test2.xml"/>
>   </pages>
>
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
>
>


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.