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

Re: xml parser question

  • From: Peter Murray-Rust <peter@u...>
  • To: "Xml-Dev" <xml-dev@X...>
  • Date: Wed, 28 Jun 2000 07:55:11 +0100

xml parsers question
At 07:33 PM 6/27/00 +0100, Dave Pawson wrote:
>In moving some stuff from SGML to xml, I keep falling
>foul of the xml parsers doing what they should!
>
>Some stuff from LINUXDOC has all its version details in
>an external file, ref'd by entities. I'm trying to use
>sgmlnorm, sx and xt to get it into xml. In the finished
>documents I want (would like) the entities back in place so that writers
>can see 'In version &latest; .... etc.'
>
>As part of the parse by sx, xt etc, all the ents are resolved
>to 4.4.1 or whatever version is being referred to.
>
>How much hassle is it to add a switch to a parser to say
>'leave them alone' please?

I don't have my machine with me but I'm almost certain that Xerces from
xml.apache.org has such a switch.  If it is set the entityreferences pass
through as you wish.

>
>Do others have to work round this? 
>Bottom line I want a 'pass-through' option available.
>I could pre-process or post-process, but I was wondering
>if its an odd-ball request to have it done as part of 
>a wholly xml process?
>
No. XML V1.0 doesn't specify many aspects of what a parser might do. I
don't think it even says there must be any "output" - simply that a
document must be assembled. There was certainly no API. This is why we
initiated SAX on this list. I think it would be useful to have a "standard"
list of parser switches - this also covers validation, etc.

	P.


***************************************************************************
This is xml-dev, the mailing list for XML developers.
To unsubscribe, mailto:majordomo@x...&BODY=unsubscribe%20xml-dev
List archives are available at http://xml.org/archives/xml-dev/
***************************************************************************

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.