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] |
Other format: | [Raw text] |
Dhruv, At 04:45 AM 6/22/2002, you wrote:
Yes but string-length(*[name()='subcategory']) returns the length of the string value of the (first) node in its argument node-set. That's its content. If the subcategory node existed but had no value, as in <subcategory/>, then its string-length would be 0 and your test would fail.All points are valid, except : > 4. The guy wants to know if the subcategory element exists, not if it > has non-empty text content. *[name()='subcategory'] gives the child-node 'subcategory', not the content.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |