|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: XSL call to validate using XML Schema
There are various solutions possible: (a) Change your Java code to invoke a validator (you say you don't want to do this) (b) Use an XSLT 2.0 schema-aware stylesheet: at present this can only be achieved using the schema-aware version of Saxon (which is commercial software: www.saxonica.com). (c) Use a pipeline processor such as the one recently announced by Henry Thompson's company, Markup Technologies, or the rather more sophisticated pipeline processor in Orbeon. This allows you to define a sequence of processing steps such as schema validation and transformation. An advantage of (b) is that you don't just validate the input, you also create typed information (for example numbers and dates) which can be used as such in the stylesheet. Michael Kay http://www.saxonica.com/ > -----Original Message----- > From: 67pat odowd [mailto:birchsolutions@xxxxxxxxxxx] > Sent: 26 May 2005 17:39 > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx > Subject: XSL call to validate using XML Schema > > Hi, > I developed a java 1.4 program that calls out to an XSL > stylesheet to do > some transformations on an incoming XML document, I am > wondering if I can > also validate the XML document using XML schema through my > program or via an > XSL/XSLT call? > > Would it be possible to have a link to an XML Schema in the > incoming XML doc > and the call to the XSL uses this to validate the XML before I do the > transformation? > > Ideally, I would like minimal program changes and implement > this by changing > the XSL (if this is possible at all). The program is deployed > on windows and > unix (using the default jre 1.4 XML and XSL implementation - > xerces + xalan > as far as I know) > > > Thanks in advance, > Pat > > _________________________________________________________________ > Use MSN Messenger to send music and pics to your friends > http://messenger.msn.co.uk
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








