Hi,
In the following xsl,
<xsl:choose>
<xsl:when test="page[readOnly='']">
<!-- turn the page to edit mode -->
</xsl:when>
<xsl
therwise>
<!-- turn the page to read only -->
</xsl
therwise>
</xsl:choose>
The problem is that sometimes element readOnly doesn't exist. In that case, I would like the page to be in edit mode, but it actually turns into read-only. It looks like the the test condition fails if element readOnly doesn't exist. Is there a way we can make XSL evaluate non-existing element to an empty string?
I know I can re-write the condition; however, we have many XSL conditions written in this way, and I wouldn't like to mannually change every one of them if possible.
Thanks a lot for your help!
In the following xsl,
<xsl:choose>
<xsl:when test="page[readOnly='']">
<!-- turn the page to edit mode -->
</xsl:when>
<xsl
<!-- turn the page to read only -->
</xsl
</xsl:choose>
The problem is that sometimes element readOnly doesn't exist. In that case, I would like the page to be in edit mode, but it actually turns into read-only. It looks like the the test condition fails if element readOnly doesn't exist. Is there a way we can make XSL evaluate non-existing element to an empty string?
I know I can re-write the condition; however, we have many XSL conditions written in this way, and I wouldn't like to mannually change every one of them if possible.
Thanks a lot for your help!