[xsl] XPath about pi and comment

Subject: [xsl] XPath about pi and comment
From: "Shinichiro HAMADA" <shinichiro.hamada@xxxxxxxxxxxxx>
Date: Thu, 11 Jan 2001 15:07:04 +0900
Hello, all.

In the following source, Is there any way to get "pivalue" and "comment"
by XSLT? I tryed it with node-test function, processing-instruction() and
comment() like this;

<xsl:value-of select="*[processing-instruction()]"/>
<xsl:value-of select="*[comment()]"/>

But it didn't work well. Please give me any comments. Thank you.

-- source --
<?xml version="1.0"?>
<doc>
 <?pi pivalue?>
 <!-- comment -->
 <el>text</el>
</doc>

--
Shinichiro Hamada


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


Current Thread