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

XSLT 2: File path to URI for non-XML file

Subject: XSLT 2: File path to URI for non-XML file
From: Yves Forkl <Y.Forkl@xxxxxx>
Date: Mon, 06 Oct 2008 14:26:23 +0200
 XSLT 2: File path to URI for non-XML file
In my stylesheet, I am first creating a CSS file using xsl:result-document, taking the file's path from variable css_file.

Subsequently I am generating an XML document which should refer to this file's URI using the classical xml-stylesheet PI.

How can I "convert" the file path of the CSS file (i.e. $css_file) into a URI, given that the XSLT stylesheet is not located in the same directory? Functions targeting the URI of source document nodes won't help me much either, I fear.

I've seen a solution that involved defining an entity in the XSLT 2 stylesheet document's internal subset area before applying the unparsed-entity-uri function to the entity, but isn't there an easier way?

Yves

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.