[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: schema aware - validating result using xhtml schem

Subject: RE: schema aware - validating result using xhtml schema
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Tue, 22 Nov 2005 15:31:44 -0000
xhtml1 transitional xsd
> 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

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.