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

RE: XInclude vs SAX vs validation

  • From: Nicolas LEHUEN <nicolas.lehuen@u...>
  • To: "'xml-dev@l...'" <xml-dev@l...>
  • Date: Tue, 21 Aug 2001 18:07:39 +0200

sax pipeline
A side question is : is it really possible to validate any document against
any DTD (replace with XSDL or RELAX NG or other) within a SAX pipeline ?
Shouldn't the validation module be exposed as a SAX ContentHandler, so that
we could plug it in at the stage we want in the SAX pipeline, thus resolving
your problem (it would suffice to put the XInclude processor before the
validator in the pipeline) ?

I don't really like the way validation is handeld by parsers right now. We
just have control other the fact that the parser validates or not, and
that's all. I'd like to be able to choose when the document is validated
(placing the validation as a SAX processing stage in a pipeline). I'd also
like to be able to specify an arbitrary DTD or XSDL instance or whatever to
validate against through an API, not by writing it inside the document.

Regards,
Nicolas

>-----Message d'origine-----
>De : Julian Reschke [mailto:julian.reschke@g...]
>Envoyé : mardi 21 août 2001 17:38
>À : xml-dev@l...
>Objet : XInclude vs SAX vs validation
>
>
>Hi,
>
>it seems that implementing XInclude on the SAX layer is a reasonable
>approach. Not having worked a lot with SAX before, I'd approach it by
>writing a SAX filter, catching XInclude instructions and 
>generating new SAX
>events.
>
>My question is: how would this affect validation against a DTD? From my
>understanding, validation normally happens at a lower level, so it is
>already done when I receive a SAX event, right?
>
>Julian
>
>
>-----------------------------------------------------------------
>The xml-dev list is sponsored by XML.org <http://www.xml.org>, an
>initiative of OASIS <http://www.oasis-open.org>
>
>The list archives are at http://lists.xml.org/archives/xml-dev/
>
>To subscribe or unsubscribe from this elist use the subscription
>manager: <http://lists.xml.org/ob/adm.pl>
>

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
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

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.