This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Problem with not() function.
- To: xsl-list at lists dot mulberrytech dot com
- Subject: [xsl] Problem with not() function.
- From: Ling Kok Choon <kokchoon at brel dot com>
- Date: Tue, 9 Oct 2001 13:51:49 +0800
- References: <008501c140f7$5665b390$9e01a8c0@ROSEBUD> <5.1.0.14.0.20011009103134.00a59488@pop.mail.yahoo.com>
- Reply-To: xsl-list at lists dot mulberrytech dot com
Hi,
I meet a problem when use not function in the xsl. I use not function in the select statement
to filter out some node.
The code is :
...
...
<xsl:template match="sub-title">
<xsl:apply-templates select="*[not(self::para[1]) and not(self::title) and
not(self::graphic[1])]" />
</xsl:template>
...
...
i need to filter out the para[1] node , the title node and the graphic[1] node.
the xml is :
<?xml version="1.0" encoding="UTF-8"?>
<Document>
...
...
<sub-title>
<title>"Bluetooth" Wireless Home Control Center</title>
<para>Some text here 1.</para>
<para>some text here 2.</para>
<para>some text here 3.</para>
<graphic>
<title/>
<pic><para>pic/eln/bluetooth01.jpg</para></pic>
</graphic>
</sub-title>
...
...
</Document>
What i am not sure is the title and graphic[1] is filter out form the select statement, but the
para[1] filter out all the <para> and not the first <para>.
Do u have any idea ?
Thank you.
Regards,
Kok Choon.
--------------------------------------------------------
Name: Ling Kok Choon
E-mail: Ling Kok Choon <kokchoon@brel.com>
Date: 10/09/01
Time: 13:51:49
This message was sent by Z-Mail Pro - from NetManage
NetManage - delivers Standards Based IntraNet Solutions
--------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list