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

Is there an XMLReader that will know ignorable whitesp

Subject: Is there an XMLReader that will know ignorable whitespace from a Relax NG schema?
From: "Imsieke, Gerrit, le-tex" <gerrit.imsieke@xxxxxxxxx>
Date: Tue, 25 Jan 2011 22:23:35 +0100
 Is there an XMLReader that will know ignorable whitesp
Dear List Members,

I'm processing an XML file that, according to an RNG schema, contains ignorable whitespace. The schema is derived from DocBook 5. I was hoping that the schema may be converted to DTD or XSD, so that saxon is able to discard ignorable whitespace. But the XSD that trang produced had an ambiguous content model, and DTD wasn't working at all. The last resort will be to apply the RNG customizations to a DocBook 5 XSD or DTD. But maybe someone on this list knows a source for an XMLReader class that I can just plug in using saxon's -x command line option. I was looking at jing's com.thaiopensource.validate.rng.SAXSchemaReader, but how do I tell it to use my RNG schema when invoking the XSLT processor? Do I have to subclass the SAXSchemaReader, telling it to use the actual schema? Or does the SchemaReader only read Schemas, not instances, and the instance reader is provided by another class? Does anybody have a working solution?

This question might be a bit OT for this list. In this case I hope you bear with me and point me to another list.

Thanks,

-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-2013 All Rights Reserved.