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

Displaying text nodes and child nodes

Subject: Displaying text nodes and child nodes
From: Américo Albuquerque <aalbuquerque@xxxxxxxxxxxxxxxx>
Date: Fri, 24 May 2002 11:25:38 +0100
ignoring text nodes in xslt


> You can write an empty template for each element you wish to ignore.
> If you wish to ignore all <b> elements your template would be:
>
> <xsl:template match="b">
> </xsl:template>
>
>
> then you only need to apply all templates to the <description> element:
>
> <xsl:template match="description">
>	<xsl:apply-templates/>
> </xsl:template>
>
>
>    Cheers,
>
>         Filipe

Hi
yes, but I don't want to ignore them, I want to pass them as they are so
that all of the html tags are recognized in the browser.

I try to use a cdata to make the stylesheet ignore those tags but it pass to
the browser as smile text and they are shown as &lt;tag&gt;.

the problem about the <xsl:copy> is that it ignore the text nodes, just pass
the tags.
so if I have something like:
<li>first occurrence</li>
<li second occurrence</li>

it pass has:
<li></li>
<li></li>
with no text at all!




 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.