[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] XSLT 2.0 contains question
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.
<xsl:template match="xsd:schema"> <xsl:copy> <xsl:copy-of select="@*"/> <xsl:for-each select="xsd:element | xsd:complexType"> <xsl:if test="count(xsd:annotation[contains(xsd:documentation, 'Deprecated')]) = 0"> <xsl:apply-templates select="."/> </xsl:if> </xsl:for-each> </xsl:copy> </xsl:template> However, under XSLT 2.0, I get an error because contains can't take a more than xsd:documentation element. What is correct way to handle this under XSLT 2.0. Dave
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|