Re: [xsl] how don't show the content of an element

Subject: Re: [xsl] how don't show the content of an element
From: George Cristian Bina <george@xxxxxxx>
Date: Fri, 22 Jul 2005 12:52:13 +0300
Hi Ana,

Have a look at the built-in template rules.
http://www.w3.org/TR/xslt#built-in-rule

Adding a template that does nothing when it matches text nodes on that mode, like below, may solve your problem. Also you can select in the apply templates exactly the nodes that you want to be processed.

<xsl:template match="text()" mode="listametricas"/>

Best Regards,
George
---------------------------------------------------------------------
George Cristian Bina
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com


Ana Yndurain wrote:
Hi!

I have an xsl that shows some content that I doesn't want. In my XSL I call
some templates, and just after execute template "metricascomprobadas" when
is going to execute template "listametricas" it show de content of the
elements Metrics/Cycle/Package and I don't know why.
In that example it shows:

es.m.p.bu.vo
es.m.p.ws
es.m.p.bu.ma
es.m.p.bu.ex

es.m.p.ma
es.m.p.ma.tr
es.m.p.ma.psp

Could yoy give me any idea?

Here I write my XSL and the structure of my XML (given by Metrics 1.3.5)

Thanks! Ana

Current Thread