[Home] [By Thread] [By Date] [Recent Entries]
At 2007-04-09 14:51 -0500, David Carver wrote:
Under XSLT 1.0, I can do the following to filter out any xsd:element that has a xsd:documentation element that has the word "Deprecated" in it. Actually, no ... your code only filters out any xsd:element whose *first* xsd:documentation child element has the word "Deprecated" in it, not "any" as you say.
The correct way to handle this in both XSLT 1 and XSLT 2 is as follows: <xsl:if test="not(xsd:annotation/xsd:documentation[contains(.,'Deprecated')])"> This expression will check all xsd:documentation children of xsd:annotation. I hope this helps. . . . . . . . . . . Ken -- World-wide corporate, govt. & user group XML, XSL and UBL training RSS feeds: publicly-available developer resources and training G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ Box 266, Kars, Ontario CANADA K0A-2E0 +1(613)489-0999 (F:-0995) Male Cancer Awareness Aug'05 http://www.CraneSoftwrights.com/s/bc Legal business disclaimers: http://www.CraneSoftwrights.com/legal
|

Cart



