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

Re: Xpath question with processing-instruction()

Subject: Re: Xpath question with processing-instruction()
From: Dimitre Novatchev <dnovatchev@xxxxxxxxx>
Date: Thu, 19 Aug 2010 11:00:15 -0700
Re:  Xpath question with processing-instruction()
> I am current to the text() node of <title/>
>
> I need to test to see if my parent has an immediate preceding sibling of
processing-instruction named "ModuleStart"

preceding-sibling::node()  [1]  [self::processing-instruction('ModuleStart')]


This assumes that you have specified:

 <xsl:strip-space elements="*"/>


--
Cheers,
Dimitre Novatchev
---------------------------------------
Truly great madness cannot be achieved without significant intelligence.
---------------------------------------
To invent, you need a good imagination and a pile of junk
-------------------------------------
Never fight an inanimate object
-------------------------------------
You've achieved success in your field when you don't know whether what
you're doing is work or play





On Thu, Aug 19, 2010 at 10:43 AM, Ylvisaker, Steve
<steve.j.ylvisaker@xxxxxxxxxxxxx> wrote:
> I know I can do this but I'm stumped.
>
> Please consider the following XML:
>
> <section>
> <?ModuleStart ShowIDs="yes"?>
> <title>Text of a title</title>
> <para>para in the section</para>
> </section>
>
>
>
> I am current to the text() node of <title/>
>
> I need to test to see if my parent has an immediate preceding sibling of
processing-instruction named "ModuleStart"
>
> If so I need to know the content of that PI.
>
>
> I need to be sure that the test will NOT be true if I am current with the
text() node of <para/>
>
> Thanks in advance for your help
> Steve
>
>
>
> [CONFIDENTIALITY AND PRIVACY NOTICE]
>
> Information transmitted by this email is proprietary to Medtronic and is
intended for use only by the individual or entity to which it is addressed,
and may contain information that is private, privileged, confidential or
exempt from disclosure under applicable law. If you are not the intended
recipient or it appears that this mail has been forwarded to you without
proper authority, you are notified that any use or dissemination of this
information in any manner is strictly prohibited. In such cases, please delete
this mail from your records.
>
> To view this notice in other languages you can either select the following
link or manually copy and paste the link into the address bar of a web
browser: http://emaildisclaimer.medtronic.com

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.