xsl:stream truncates filename if there is a hash in it
Added by Mike Banks almost 8 years ago
We have an instance where the file we are trying to process with xsl:stream has a hash (#) in its name. This causes an error where the filename is truncated before the hash. Is this a known issue and is there a work around?
This is the filename: C:/MyArea/saxonEE/XMLDataIn/product_feed#_delta.xml (held in a variable STEP)
Code line: <xsl:stream href="{$STEP}">
FODC0002: I/O error reported by XML parser processing C:/MyArea/saxonEE/XMLDataIn/product_feed: C:\MyArea\saxonEE\XMLDataIn\product_feed (The system cannot find the file specified)
We are using Saxon-EE 9.7.0.6J from Saxonica Java version 1.8.0_91
Replies (2)
RE: xsl:stream truncates filename if there is a hash in it - Added by Michael Kay almost 8 years ago
The value of href is a URI, not a filename. Special characters such as # should therefore be escaped using the %HH convention. (Untested advice)
RE: xsl:stream truncates filename if there is a hash in it - Added by Mike Banks almost 8 years ago
Thanks Michael, That worked for us. The href in the xsl:stream should have given me a clue, but sometimes you miss the obvious thing!
Mike
Please register to reply