Hi Martin,
i use xslt 1.0 , ok thanks
one last thing if i may if have to include my test inside a loop for each
will i have to change something ( right now it give false for every row)
<xsl:for-each
select="/doc/content/element/element_content/data/items/listElement">
<fo:block >
<xsl:value-of select="boolean ( listElement[categOrSubOrOther
='Categ']/following-sibling::listElement[categOrSubOrOther = 'Sub']
)"></xsl:value-of>
</fo:block>
</xsl:for-each>
--- On Wed, 3/16/11, Martin Honnen <Martin(_dot_)Honnen(_at_)gmx(_dot_)de>
wrote:
From: Martin Honnen <Martin(_dot_)Honnen(_at_)gmx(_dot_)de>
Subject: Re: [xsl] need a help with following siblings
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Date: Wednesday, March 16, 2011, 11:54 AM
Red Light wrote:
thanks for the answer i process
the xsl with apache fop and it give me the following:
RREUR : 'Erreur de contrôle du type de
l'expression 'funcall(exits, [step("child", 239,
pred(=(step("child", 240), literal-expr(Categ))))])'.'
?
Do you use XSLT 2.0 or 1.0? If you use 2.0 then make sure
you use the right spelling "exists" (and not "exits" as your
error message shows).
If you use 1.0 then "exists" is not support, you could use
"boolean" instead e.g.
boolean(listElement[categOrSubOrOther =
'Categ']/following-sibling::listElement[categOrSubOrOther =
'Sub'])
--
Martin Honnen
http://msmvps.com/blogs/martin_honnen/
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail:
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--