[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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
|
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
|