This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Displaying text nodes and child nodes





> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]