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

Deleting following sibling element

Subject: Deleting following sibling element
From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx (by way of B. Tommie Usdin)
Date: Tue, 16 Jan 2001 19:58:04 -0500
following sibling
Date: Tue, 16 Jan 2001 18:11:39 -0200 (EDT)
From: Edierley Messias <edierley@xxxxxxxxxxx>
X-Sender: edierley@iapetus
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx, XSLTakl@xxxxxxxxxxx
Subject: Deleting following sibling element
In-Reply-To: <017901c07f3f$5c64c8f0$520a0a0a@xxxxxxxxxxxxxxx>
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


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.