xsl-list
[Top] [All Lists]

Re: [xsl] anyURI problem

2011-08-26 03:34:10
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 didn’t 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

--~------------------------------------------------------------------
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(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>