Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

how to check attribute existence?

843834Jun 9 2004 — edited Jun 9 2004
Hello,


I am new to xsl. I know how to check if an attribute exists:

<xsl:if test="@attribute">
....

<xsl:if>

but how could I check if an attribute does not exist?

I tried this:

<xsl:if test="not(@attribute)">
....

<xsl:if>

That did not work at all.

Appreciate any help.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 7 2004
Added on Jun 9 2004
6 comments
584 views