Subject: Re: [xsl] anyURI problem From: "Imsieke, Gerrit, le-tex" <gerrit.imsieke@xxxxxxxxx> Date: Fri, 26 Aug 2011 10:48:29 +0200 |
----------------------------- <?xml version="1.0" encoding="utf-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0" >
</xsl:stylesheet> -----------------------------
> dir \temp 2011-08-26 10:44 <DIR> . 2011-08-26 10:44 <DIR> .. 2011-08-26 10:44 45 [Content_Types].xml
>type \temp\*xml \temp\[Content_Types].xml
Hi,
I tried both ways of how to cope with [Content_Types].xml file in xsl:result-document href attribute:
Try using the iri-to-uri() function to turn this into a valid URI.
Saxon is fussier than some other products about insisting that URIs are valid.
Michael Kay Saxonica
That didnt work for me, but href="{encode-for-uri('[Content_Types].xml')}" did.
Or verbose href="%5bContent_Types%5d.xml"
Gerrit
in Saxon 8 I was able to generate such file, but with versions 9.* I was not successful. With encode-for-uri() function 0-length file was generated with following error message:
java.net.URISyntaxException: Illegal character in path at index 21: file:///C:/xslt/test/[Content_Types].xml
I tried Saxon versions: 9, 9.1 and 9.3he Is there any other solution?
Thanks, Jan
-- Gerrit Imsieke Geschdftsf|hrer / Managing Director le-tex publishing services GmbH Weissenfelser Str. 84, 04229 Leipzig, Germany Phone +49 341 355356 110, Fax +49 341 355356 510 gerrit.imsieke@xxxxxxxxx, http://www.le-tex.de
Registergericht / Commercial Register: Amtsgericht Leipzig Registernummer / Registration Number: HRB 24930
Geschdftsf|hrer: Gerrit Imsieke, Svea Jelonek, Thomas Schmidt, Dr. Reinhard Vvckler
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] anyURI problem, Andrew Welch | Thread | [xsl] Is there a way to assign a ba, Costello, Roger L. |
Re: [xsl] anyURI problem, Andrew Welch | Date | [xsl] Xquery help to add element to, sudheshna iyer |
Month |