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

RE: document function issue...

Subject: RE: document function issue...
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Tue, 8 Jun 2004 08:39:49 +0100
xsl document function
It would be useful to see your source document, and the actual error message
rather than a paraphrase of it. It's also relevant to know how you invoked
the transformation (because the base URIs of source document and stylesheet
depend on this).

Remember that document(.) interprets the URI relative to the source
document, while document(string(.)) interprets it relative to the
stylesheet.

Michael Kay 

> -----Original Message-----
> From: Markus Gamperl [mailto:markus.gamperl@xxxxxx] 
> Sent: 08 June 2004 07:13
> To: XSL-List@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  document function issue...
> 
> Hello!
> 
> I'm still trying and trying to get the document function 
> running with Saxon
> 7.9.1
> I have opened a lot of threads in other lists and forums but the
> informations is unhelpfully...
> 
> The following template:
> 
> <xsl:template match="url">
>    <xsl:copy-of select="document(.)/page/*"/>
> </xsl:template>
> 
> The URL has the following relative path value: 
> ./dir1/dir2/dir3/file.xml
> 
> The document function in the template above throws and 
> invalid URI error.
> But the following works well:
> <xsl:copy-of select="document('./dir1/dir2/dir3/file.xml')/page/*"/>
> 
> So i tried to circumvent Saxon and tried the following (also 
> not working):
> <xsl:copy-of select="document(string(.))/page/*"/>
> or
> <xsl:variable name="help" select="."/>
> <xsl:copy-of select="document(concat('''',&help,''''))/page/*"/>
> 
> Has anybody an idea what else i could try?
> 
> Thanks very much!
> Markus
> 
> -- 
> +++ Jetzt WLAN-Router f|r alle DSL-Einsteiger und Wechsler +++
> GMX DSL-Powertarife zudem 3 Monate gratis* http://www.gmx.net/dsl
> 
> 
> --+------------------------------------------------------------------
> XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
> or e-mail: <mailto:xsl-list-unsubscribe@xxxxxxxxxxxxxxxxxxxxxx>
> --+--
> 
> 



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.