This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: Conditional output for empty node value


> I have a basic problem I am using a xalan parser and not able to put a
> condition for empty node in my xsl.

You can test whether the current node has children by writing

test="node()"

You can test whether its string-value is non-empty by writing

test="string(.)"

Which test you use depends on how you want to handle comments, etc,
appearing within the element.

Mike Kay


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]