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

Re: get immediat preceeding node, if it is a comment

Subject: Re: get immediat preceeding node, if it is a comment
From: Joerg Heinicke <joerg.heinicke@xxxxxx>
Date: Fri, 04 Oct 2002 11:43:04 +0200
Re:  get immediat preceeding node
Hi Paul,

turn around your test:


So you are first choosing the immediate preceding node and then you are testing whether it's a comment or not.



Paul Terray wrote:

I have a little problem, which I am unable to find the solution because I must think to devious...

I have a XML with some comments on the nodes, just before, that I want to get.

My problem is : there are not always there, so I cannot just use "preceding-sibling::comment()[1]".

Therefore, 2 questions :
- how to get the immediat preceeding node, when you don't know what it will be (element, comments, and for extension PIs, text())
- how can I filter comments from it

Thanks in advance.

Paul TERRAY - Ingénieur Systèmes Documentaires
Centre d'affaires - 22, rue Etienne de Jouy
78353 Jouy en Josas CEDEX
Tel. 01 34 58 70 70 - Fax. 01 39 46 06 90
email : terray@xxxxxxxxxxxx

XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list


System Development
Fon  +49(0)341-979-7419
Fax  +49(0)341-979-7409

VIRBUS hat jetzt als erster deutscher Softwarehersteller die Zertifizierung für den 3D Secure-Authentifizierungsstandard "Verified by Visa" erhalten. Details unter http://www.virbus.de/de/press/pressemitteilung/20020828_verified_by_VISA.

XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list

Current Thread


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.
First Name
Last Name
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.