[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

How to specify 'raw' encoding in xslt:unparsed-text-a

Subject: How to specify 'raw' encoding in xslt:unparsed-text-available (for, e.g., images)?
From: "Imsieke, Gerrit, le-tex" <gerrit.imsieke@xxxxxxxxx>
Date: Fri, 05 Feb 2010 10:21:00 +0100
 How to specify 'raw' encoding in  xslt:unparsed-text-a
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

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2011 All Rights Reserved.