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

RE: problem using document() in xslt

Subject: RE: problem using document() in xslt
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Mon, 2 Feb 2004 18:57:33 -0000
xslt using document
The most likely explanation is that the XSLT processor doesn't know
where the stylesheet was loaded from, which can happen if you supply it
from an in-memory source. Beyond that, the details are specific to
4suite, and will depend on how you invoked the transformation, which you
haven't said.

Michael Kay

> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx 
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of 
> davekennedy@xxxxxxxxxxxx
> Sent: 02 February 2004 16:48
> To: XSL-List@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  problem using document() in xslt
> 
> 
> This is my first attempt at using multiple xml documents in a 
> transformation. I am using 4suite for the transformation and 
> it is telling me that
> 
> <xsl:value-of select='document("meta.xml")/metadata/table/@name'/>
> 
> is an invalid URI.  "meta.xml" is definately in the same 
> directory as the xml and xsl files that I am transforming.
> 
> Here is meta.xml:
> 
> <metadata>
>   <table name="Employee Information">
>   <field name="emp_ID">
>     <datatype>number</datatype>
>     <prettyprint>Employee ID</prettyprint>
>   </field>
>   <field name ="emp_name">
>     <datatype>text</datatype>
>     <prettyprint>Employee Name</prettyprint>
>   </field>
>   <field name="emp_bday">
>     <datatype>date</datatype>
>     <prettyprint>Employee Birthday</prettyprint>
>   </field>
>   </table>
> </metadata>
> 
> I am trying to reference "Employee Information".  Any ideas?
> 
> Thanks much,
> 
> 
> -- 
> David Kennedy
> Program Manager, Alescere LLC.
> 630.968.8950 x311
> 
> Find us on the web at http://www.alescere.com
> 
> 
> 
>  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.