Re: [XSLT 2] base-uri of input's dir
> Could you start by stating the problem, not stating a solution that > appears to work?
The solution I had was the problem (it wasn't as terse as it should be), although it worked (the problem was not getting it to work, but making it terse).
> I can't see why you have to fiddle about with the base URI of the > current document before using it as an argument to resolve-uri().
I got the absolute file path of the input file plus the relative path to the referenced file. But that must have been when I used concat().
<xsl:template match="textdata[@fileref]"> <xsl:variable name="file_abs" select="resolve-uri(@fileref,base-uri(/))"/> <xsl:copy-of select="unparsed-text($file_abs,'utf-8')"/> </xsl:template>
Sorry for the confusion.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format