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

Re: copy-of XHTML replicates end-tag when xsl:output i

Subject: Re: copy-of XHTML replicates end-tag when xsl:output is HTML
From: Martin Honnen <Martin.Honnen@xxxxxx>
Date: Wed, 21 Dec 2011 16:23:04 +0100
Re:  copy-of XHTML replicates end-tag when xsl:output i
Peter Flynn wrote:

<table xmlns="http://www.w3.org/1999/xhtml" style="width:99%;">
   <tr class="colour2">
     <td width="100%">
       <b>Committee :</b>  Association des C)tudes franC'aises et
       francophones en Irlande<br></br><b>From:</b>01-JAN-04
       <b>To:</b>  30-DEC-99
     </td>
   </tr>
</table>

The<br/>  of Tidy's generated XHTML is being expanded by the copy-of to
<br></br>  instead of being contracted to<br>  as implied by the output
setting of HTML. If copy-of is able to detect the<br/>  and perform an
implicit transform like that, I'm puzzled as to why it does it that way
round.

Output method "html" applies to elements in no namespace whereas your elements are in the XHTML namespaces. Consider to use output method "xhtml" with XSLT 2.0 instead.
Or with XSLT 1.0 you need to write templates that strip the namespace if you want the output method "html" to have any effect on your result element serialization.



--


	Martin Honnen --- MVP Data Platform Development
	http://msmvps.com/blogs/martin_honnen/

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.