This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: XPath about pi and comment


> Hi Shinichiro,
> > <xsl:value-of select="*[processing-instruction()]"/>
> > <xsl:value-of select="*[comment()]"/>
>
> In case you want to retrieve all processing instructions and comments
> the above will not work -- what you've specified is actually all
> elements children of the current node that have at least one
> processing-instruction child or, respectively, that have at least one
> comment child.

I see. Thanks a lot, Dimitre!

> Use:
>
> //processing-instruction()
>
> and
>
> //comment()

I will try these xpath right away. And thank you very much for introducing
xpath visualizer!

--
Shinichiro HAMADA


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]