[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Resources for AtomPub parser validation
Daniel Jalkut wrote:
Thanks everybody for trying to explain this to me. Dave - that was a
cool idea to use a schema validation in your XML. But it seems like that
applies more to generating the XML than to parsing it. Or do I
misunderstand something?
No Daniel. It is for validation. My process is to generate a blank
atom template with xhtml outline within the content element.
Write the xhtml content to make up the entry, then validate
the entry using nvdl.
My logic is fairly simple.
Write my XHTML markup (para div, link whatever). Whatever
is needed, then add the content.
For any piece of content within the XHTML I add, do a mental
search and replace
1. & :=) &
2. < :=> <
That's it.
It helps if my editor recognises these. Emacs nxml-mode
does it for me.
That makes the whole document well formed, xml wise.
Atom markup, changes to xhtml (still xml though) markup
with X content. The X content is the problem and the
only bits that I need to two search and replace bits.
Some bright guys seem to have kept the 'bits that need
escaping' to the minimum back in '97 :-)
regards
--
Dave Pawson
XSLT XSL-FO FAQ.
http://www.dpawson.co.uk