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

Re: html as input to xslt

Subject: Re: html as input to xslt
From: Owen Rees <owen.rees@xxxxxx>
Date: Thu, 06 Sep 2007 13:01:16 +0100
Re:  html as input to xslt
--On Wednesday, September 05, 2007 02:31:22 PM -0400 Lou Iorio wrote:

I'd rather not have the xhtml name stuff in the output. Is there a way
around
this?

Since you are using XSLT 2 and the HTML output method you should look at what that means:
<http://www.w3.org/TR/xslt-xquery-serialization/#html-output>


In particular "The HTML output method MUST NOT output an element differently from the XML output method unless the expanded QName of the element has a null namespace URI."

If you intend the output to be HTML and the input is XHTML (and so in the XHTML namespace) you have to convert those input elements to elements with a null namespace URI.

The "Removing Namespaces" FAQ entry shows how to do that:
<http://www.dpawson.co.uk/xsl/sect2/N5536.html#d7594e1750>

Note that the "<p>other stuff</p>" in the transform is already in the null namespace so should work as it is.

--
Owen Rees
========================================================
Hewlett-Packard Limited.   Registered No: 690597 England
Registered Office:  Cain Road, Bracknell, Berks RG12 1HN

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.