so let's say i have some xml
<root>
<node1 />
<node2 />
<node4 />
</root>
and i have an xsl that transforms it to html
and my xsl handles an element called <node3> although it doesn't exist...
is there a way using xsl to determine if the source xml contains or doesn't contain a specific element???
so you could do something like...
<xsl:if test="doesElementExist("node3")>
<!-- some html and xsl -->
</xsl:if>
<root>
<node1 />
<node2 />
<node4 />
</root>
and i have an xsl that transforms it to html
and my xsl handles an element called <node3> although it doesn't exist...
is there a way using xsl to determine if the source xml contains or doesn't contain a specific element???
so you could do something like...
<xsl:if test="doesElementExist("node3")>
<!-- some html and xsl -->
</xsl:if>