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]

Deleting following sibling element


Date: Tue, 16 Jan 2001 18:11:39 -0200 (EDT)
From: Edierley Messias <edierley@dcc.ufmg.br>
X-Sender: edierley@iapetus
To: xsl-list@lists.mulberrytech.com, XSLTakl@egroups.com
Subject: Deleting following sibling element
In-Reply-To: <017901c07f3f$5c64c8f0$520a0a0a@commercehub.com>
Message-ID: <Pine.GSO.4.21.0101161800430.22008-100000@iapetus>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

Hi people,
Does anybody knows how can I delete an element that is the next
following-sibling of the context node?

For example:
[XML]
<a href="anything">link</a><br/>

[XSL]
<xsl:template match="//a[name(following-sibling::*[1])='br']">

    ????

</xsl:template>

[The XML Output should be]
<a href="anything">link</a>
------------------------------------
I'm using the template to copy all nodes and attributes, so
the <br/> will also be copied.

I can match the template using the <br/> element because I already wrote
another templates thats match the <br/>

Thanks in advance.

Edierley Messias.

 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]