xsl-list
[Top] [All Lists]

[xsl] How to specify 'raw' encoding in xslt:unparsed-text-available (for, e.g., images)?

2010-02-05 03:21:43
Dear List Members,

In Schematron using the xslt2 binding, I want to check whether image files (whose relative path is given in a @src attribute) are present.

So in the generated XSLT file, I have code like the following.

<xsl:when test="unparsed-text-available(resolve-uri(@src, $base-uri))"/>

This works fine if @src refers to text files in US-ASCII or UTF-8 encodings, but not for PNGs oder JPEGs.

So I was looking for an encoding name that I can use as the second argument to unparsed-text-available. But I couldn't find an encoding such as RAW or BINARY that Java accepts (I'm using saxon 9.2.0.3 on Java 1.6.0_17).

This issue must have been raised before, but unfortunately I didn't find previous threads on this matter.

Any hints appreciated.

Gerrit


--~------------------------------------------------------------------
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>