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

Re: XHTML html validation

Subject: Re: XHTML html validation
From: Owen Rees <owen.rees@xxxxxx>
Date: Mon, 19 Feb 2007 16:20:16 +0000
Re:  XHTML html validation
--On Saturday, February 17, 2007 12:05:38 +0000 John Steel wrote:

No, resin does the tranformation - I suspect I screwed up in trying to
create a smaller example then, for which I sincerely apologise. The test
is to view the source in the browser - if the browser transforms, you'd
see the xml structure, if it was the server you'd just see formed html

The complexity of your overall system is causing some confusion. It seems that your server side engine reacts to a processing instruction somewhat like the one that is more often seen used for client/browser side processing.

The examples, when processed by a standalone XSLT 1.0 processor, show that you have namespace issues to deal with.

You have put your <faqlist> element into the XHTML namespace so the templates are not matching. You can either put it back into no namespace with <faqlist xmlns=""> or convert your templates to use the namespace.

The literal result elements such as <tr>...</tr> in the stylesheet are in no namespace, you must put them into the XHTML namespace if you want them to be recognised as XHTML.

You have specified xsl:output method="html" which is wrong for XHTML output, it must be method="xml" for an XSLT 1.0 processor but I doubt if that will give you Appendix C "HTML Compatibility" output.

Owen Rees
Hewlett Packard Laboratories, Bristol, UK

Current Thread


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.
First Name
Last Name
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.