You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xalan.apache.org by Evgeniy Strokin <ev...@yahoo.com> on 2002/03/25 17:34:49 UTC

exluding some templetes in

Hi,

I have XML like this:

<root>

<tag1>....</tag1>

<hidden>

<hidTag1>....</hidTag1>

<hidTag2>....</hidTag2>

<tag2>....</tag2>

</hidden>

<root>

I do <xsl:apply-templates/> but I don't want apply templates for all 
<hidden> nodes and subnodes. What I should put in parameter 
<xsl:apply-templates/>?

Thanks,

Jenya


---------------------------------
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards�

RE: exluding some templetes in

Posted by Karthik Gurumurthy <ka...@aztec.soft.net>.
hi!
 
> I do <xsl:apply-templates/> but I don't want apply templates for all 
> <hidden> nodes and subnodes. What I should put in parameter 
> <xsl:apply-templates/>?

In root you can select tag1. 
www.zvon.org <http://www.zvon.org>  has nice tutorials. You might
probably want to go through them. 
 
<!-- XML File -->
<root>
<tag1>....</tag1>
<hidden>
    <hidTag1>....</hidTag1>

    <hidTag2>....</hidTag2>

    <tag2>....</tag2>
</hidden>
<root>
<!-- End XML-->
 
<!-- XSL file -->
 
<xsl:template match="root">
    <xsl:apply-templates select="tag1"/>
</xsl:apply-templates>
 
<!-- XSL File -->
 
HTH,
karthik