On 19/08/2010 18:43, Ylvisaker, Steve 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.
actually the immediate precding sibling of the parent is the white space
text node after the PI, so I think yiu want to ignore such, so...
test="../preceding-sibling::node()[not(self::text()[not(string(.))])][1][self::processing-instruction()]
David
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
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--