[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: RE: Xpath question with processing-instruction()
Hi,
At 04:02 PM 8/20/2010, you wrote: If I just copy that XML into Stylus Studio, and fire up the XPath editor, I can find the text node you're on, and apply the specified test: Unfortunately the subexpression '../preceding-sibling::processing-instruction()/name()' won't work in XPath 1.0. And 'name(../preceding-sibling::processing-instruction())' will be unreliable in cases where there is more than one PI in that place (due to XPath 1.0 "first node semantics"). With the child of title (the text node) as context, try ../preceding-sibling::processing-instruction('ModuleStart') to retrieve the PI. To test that such a node does not exist, not(../preceding-sibling::processing-instruction('ModuleStart')) But wasn't this suggested? Cheers, Wendell -----Original Message----- From: Ylvisaker, Steve [mailto:steve.j.ylvisaker@xxxxxxxxxxxxx] Sent: Thursday, August 19, 2010 1:44 PM To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: Xpath question with processing-instruction() ====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|