I have following xslt code
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="*">
<root>
<xsl:for-each select="*/*">
<xsl:variable name="mainNode" select="name()" />
<xsl:if
test="starts-with($mainNode,'Add_1') and contains($mainNode,'street1')">
<Add>
<xsl:value-of select="." />
<!-- I want something that goes in here that allows me to select next node name of "mainNode" and its next node-- i.e. Node names of next two siblings of mainNode -->
</Add>
</xsl:if>
</xsl:for-each>
</root>
</xsl:template>
</xsl:stylesheet>
As mentioned in the code, I want to find node names of next two siblings of mainNode
Any suggestions?
Thanks...