[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: schema aware - validating result using xhtml schem
> 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|