Subject: Re: [xsl] Outputing a node whose value appears only once From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx> Date: Tue, 19 Jul 2005 00:14:02 -0400 |
I am trying to eliminate duplicates with the following logic.. ... <xsl:for-each select="(a/* | c/*)[not((. = preceding-sibling::a) | (. = preceding-sibling::c) | (. = following-sibling::a) | (. = following-sibling::a))]"> ... Saxon 8.4 is giving error - Error on line 7 of file:/C:/xml/xsleg/xslt/example1.xsl: XPTY0004: Required item type of first operand of '|' is node(); supplied value has item type xs:boolean
Whereas Xalan-J 2.6.0 gives following error - Error at xsl:for-each on line 7 of file:///C:/xml/xsleg/xslt/example1.xsl: The value is not a node-set
Can anyone tell where is the problem?
And how I can solve it?
-- World-wide on-site corporate, govt. & user group XML/XSL training. G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ Box 266, Kars, Ontario CANADA K0A-2E0 +1(613)489-0999 (F:-0995) Male Breast Cancer Awareness http://www.CraneSoftwrights.com/s/bc Legal business disclaimers: http://www.CraneSoftwrights.com/legal
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Outputing a node whose va, Mukul Gandhi | Thread | RE: [xsl] Outputing a node whose va, Mukul Gandhi |
RE: [xsl] Outputing a node whose va, Michael Kay | Date | RE: [xsl] Outputing a node whose va, Mukul Gandhi |
Month |