N
nobody
hello!
sorry, but I have a brain block ...
given something like
a?, b?, c+
I have to treat every elem c in one way if elem b is
present, in an other if there's no elem b.
Tried
<xsl:if test="name(preceding-sibling::*[1]) != 'b'">
ok for the 1st elem c but fails with 2nd to n-th elem c;
then tried
<xsl:if test="name(preceding-sibling::*) != 'b'">
Ok only if no elem a is preceding elem b (as I get the name
of the 1st elem of the subset).
Any hints about how to write the wanted test expression?
TIA, andreas <ala_NO@SPAM_context.ch>
sorry, but I have a brain block ...
given something like
a?, b?, c+
I have to treat every elem c in one way if elem b is
present, in an other if there's no elem b.
Tried
<xsl:if test="name(preceding-sibling::*[1]) != 'b'">
ok for the 1st elem c but fails with 2nd to n-th elem c;
then tried
<xsl:if test="name(preceding-sibling::*) != 'b'">
Ok only if no elem a is preceding elem b (as I get the name
of the 1st elem of the subset).
Any hints about how to write the wanted test expression?
TIA, andreas <ala_NO@SPAM_context.ch>