[tei-council] listChange example

Sebastian Rahtz sebastian.rahtz at it.ox.ac.uk
Wed Oct 17 17:23:09 EDT 2012


On 17 Oct 2012, at 16:12, Martin Holmes <mholmes at uvic.ca> wrote:
> 
> It doesn't appear to add a wrapper root element. I just removed the root <TEI> element from a valid file and validated it with jing -f, and got this:
> 
> ABBE2.xml:11:16: error: element "teiHeader" not allowed here; expected element "TEI" (with xmlns="http://www.tei-c.org/ns/1.0")
> 
> ABBE2.xml:39:6: fatal: The markup in the document following the root element must be well-formed.

ah, we are forgetting that there is always an <egXML> wrapper. _that_ is what it is validating,
the fragment rooted at <egXML>.

> 
> Is the build process actually checking whether <egXML>s that claim to be valid actually are? I thought it was. Perhaps it only does that if they have an explicit @valid="true"?


read the Makefile, Luke:

@echo BUILD: Check full validity of relevant examples with nvdl
	${SAXON} p5.xml Utilities/extractegXML.xsl > v.body
	echo "<!DOCTYPE p [" > v.header
	(cd valid; ls | perl -p -e  "s+(.*)+<\!ENTITY \1 SYSTEM \"valid/\1\">+") >> v.header
	echo "]>" >> v.header
	cat v.header v.body > v.xml
	./run-onvdl  p5valid.nvdl  v.xml

all the @valid='true' or not(@valid) examples  are included in v.xml inside a <p> (arbitrary choice) which is validated.

trust me,  they are checked. try breaking one.
--
Sebastian Rahtz      
Director (Research Support) of Academic IT Services 
University of Oxford IT Services
13 Banbury Road, Oxford OX2 6NN. Phone +44 1865 283431



More information about the tei-council mailing list