[Home] [By Thread] [By Date] [Recent Entries]

  • From: Mike Williams <mikew@o...>
  • To: <xml-dev@i...>
  • Date: 02 Dec 1999 08:10:58 +0000

I'm pre-parsing some XML-based web-page templates, and building them into
DOM Documents.  My template-processor takes Document+data as input, and
generates SAX events.

My problem is this: if I detect an error while processing the template
(expected tags are missing, etc.), I have no way of relating this to a
position in the original template-file.  This would obviously be useful for 
my template-authors, so they don't have to re-check entire templates.

I'd really like to store information against each node in the Document,
recording what file it was built from, and where (line/column) the node
started; the SAX Locator information, basically.  Reasonable?  

Is there any way to implement this?

-- 
Mike Williams

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i...
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and on CD-ROM/ISBN 981-02-3594-1
To unsubscribe, mailto:majordomo@i... the following message;
unsubscribe xml-dev
To subscribe to the digests, mailto:majordomo@i... the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@i...)



Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member