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

RE: document() function not working in Saxon 7.8

Subject: RE: document() function not working in Saxon 7.8
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Mon, 9 Feb 2004 22:55:14 -0000
xsl document not working
Saxon-specific questions are better raised on the saxon-help list at
sourceforge.net, rather than bothering everyone on this list.

What has changed between 7.4 and 7.8 is that Saxon now uses the
java.net.URI class to handle URIs, instead of the java.net.URL class.
The new class interprets the requirements of RFC 2396 more rigorously.

Having said that, I can't see what's wrong with either the relative URI
or the absolute URI in your example, and I can't reproduce the problem
when I run a similar transform with URIs that closely resemble these.
Please switch over to the Saxon list, and supply more information about
how you are running the transformation.

(Are you using the Sun JDK? I have had reports of problems from people
running the IBM JDK)

> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx 
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of 
> Markus Gamperl
> Sent: 09 February 2004 14:02
> To: XSL-List@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  document() function not working in Saxon 7.8
> 
> 
> Hello!
> 
> The following template:
> 
> <xsl:template match="url">
>   <xsl:copy-of select="document(.)/page/*"/>
>    <url>
>      <xsl:attribute name="page_id"><xsl:value-of 
> select="translate(@page_id,':','_')"/></xsl:attribute>
>      <xsl:value-of select="."/>
>      <xsl:apply-templates/>
>    </url>
> </xsl:template>
> 
> This works in Saxon 7.2, 7.4 BUT NOT in Saxon 7.8 - there i 
> get the following error: "Invalid URI 
> [./dir1/dir2/dir3/x.xml] - base [file:/X:/index.xml]"
> 
> Is there a way to get this template running in Saxon 7.8?
> 
> Thanks
> Markus
> 
> -- 
> GMX ProMail (250 MB Mailbox, 50 FreeSMS, Virenschutz, 2,99 
> EUR/Monat...) jetzt 3 Monate GRATIS + 3x DER SPIEGEL +++ 
http://www.gmx.net/derspiegel +++


 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.