xsl-list
[Top] [All Lists]

RE: schema aware - validating result using xhtml schema

2005-11-22 08:31:44
The schema for XHTML 1.1 is 
published in

http://www.w3.org/TR/2004/WD-xhtml-modularization-20040218/Ove
rview.html#toc

which is a working draft, although it is described as "almost 
complete". If
you download the .ZIP version of that spec at
http://www.w3.org/TR/2004/WD-xhtml-modularization-20040218/xht
ml-modularizat
ion.zip, it includes the schema as a set of separate files; 
but I'm not
aware of a location where you can refer to the files directly.

Saxon unfortunately reports that schema as being invalid! - will have to
follow up on that.

In the past I've used a schema at

http://www.w3.org/2002/08/xhtml/xhtml1-transitional.xsd

which is referenced from the NOTE at 

http://www.w3.org/TR/2002/NOTE-xhtml1-schema-20020902/Overview.html

With that schema Saxon reports:

Saxon-SA 8.6.1 from Saxonica
Java version 1.5.0_05
Loading schema document
http://www.w3.org/2002/08/xhtml/xhtml1-transitional.xsd
Loading schema document http://www.w3.org/2001/xml.xsd
Finished loading schema document http://www.w3.org/2001/xml.xsd
Finished loading schema document
http://www.w3.org/2002/08/xhtml/xhtml1-transitional.xsd
Stylesheet compilation time: 5167 milliseconds
Processing file:/c:/temp/test.xsl
Building tree for file:/c:/temp/test.xsl using class
net.sf.saxon.tinytree.TinyBuilder
Tree built in 10 milliseconds
Tree size: 29 nodes, 66 characters, 10 attributes
Writing to anonymous output stream
Validation error on line 16 of file:/c:/temp/test.xsl:
  In content of element <html>: The content model does not allow element
<body> to appear
  here. Expected: {http://www.w3.org/1999/xhtml}head
Transformation failed: Run-time errors were reported




--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>