|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Stripping or converting HTML tags
Hi Aaron,
Aaron Johnson wrote: Hello... The best route to all that IMHO, would be some variant of HTMLTidy. So far I have this, but all it does is make the table disappear completely. BTW, elements in uppercase are not valid XHTML. <xsl:choose> Here you are testing whether child elements exist and if they do, output the value of the context element's p attribute? I think you need something like <><xsl:template match="xhtml:table | xhtml:TABLE | xhtml:td | xhtml:TD | xhtml:th | xhtml:TH | xhtml:tr | xhtml:TR"> <xsl:apply-templates /> </xsl:template> This will 'skip' those elements and compared with an identity transform will do what you need. hth, Manos
|
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
|

Cart








