Forum Moderators: open
<xsl:if test="area">
However, my xml tag is something like <cap:area>
I want the test to look like:
<xsl:if test="cap:area">
But that is throwing errors. I've tried codes for the colon (:), also the ampersand (&#58).
Any ideas on what I could do?
Thanks,
-sned
So the first thing I would check is to make sure you have declared the namespace in <xsl:stylesheet>, e.g.
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0"
xmlns:cap="http://www.example.com/cap">