XSLT – Comparing preceding-sibling’s elements with current’s node element
Almost correct. <xsl:if test=”preceding-sibling::recurso[1]/unidad != unidad”> </xsl:if> The :: is for axes, not for moving along a path (“making a location step”). In XPath terminology: preceding-sibling::recurso[1]/unidad != unidad ””””””””’ ++++++++++ ++++++ ### ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~ ‘ = axis name (optional, defaults to “child”) + = node test (required) # = predicate (optional, for filtering) ~ = … Read more