I am coding xslt to find the max row value of an element 'item' as the example shown in here. And per suggestions received, I tried code from here. However the '<=' operator causes parse error:
./ui.xsl:16: parser error : Unescaped '<' not allowed in attributes values
not(@column < preceding-sibling::i
When I wrote code as:
<xsl:variable name="maxRow" select="/ui/layout/item
[
not(@row <= preceding-sibling::item/@row) and
not(@row <= following-sibling::item/@row)
]/@row" />
After I change the code to:
<xsl:variable name="maxRow" select="/ui/layout/item
[
not(preceding-sibling::item/@row > @row) and
not(following-sibling::item/@row > @row)
]/@row" />
The code starts to work just fine. I am using xsltproc as my processor. I believe '<=' is a standard XPATH 1.0 operator. How come it's not recognized by the processor?