I've got an XML with diferent nodes:
<INFORME>
<Assignatura>
<Nom_materia>Física</Nom_materia>
</Assignatura>
<Assignatura>
<Nom_materia>Informàtica</Nom_materia>
</Assignatura>
</INFORME>
and, inside of the for-each
, I want to get access to the previous node.
I want to do something like this, and logically it doesnt work.
<xsl:for-each select="Assignatura">
<xsl if text="Nom_materia = Assignatura[position()-1]/Nom_materia">
do something...
....
It would be something very simple I think, but i don't know exactly how to do it.