However, I am not able to transform thereport in XSLT 2.0 equivalent
without MarkLogic cts.
<xsl:templatematch="SVM">
<xsl:variable name="classVal"select="class[xs:decimal(@val) gt 0.00]"/>
<xsl:element name="SVM"namespace="schema://fc.fasset/svm">
<xsl:comment select="$point-in-time"/>
<xsl:element name="Negative"namespace="schema://fc.fasset/svm">
<xsl:comment select="$negative-comment"/>
<xsl:for-each
select="classification[not(contains(descendant::label,$classVal))]">
<xsl:copy-ofselect="."/>
</xsl:for-each>
</xsl:element>
</xsl:element>
</xsl:template>
(Note:The number, position and sequence of the labelled class will change
dependingon the training data. Hard-coded count or position in XSLT wouldn’t
work.)
Ireceive either blank result orSaxon fetal error to that effect: A sequence
of more than oneitem is not allowed as the second argument of fn:contains()
Can the XSLT expert rectify the problematic XSLTmodule (the one without
cts)? Thank you!
--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/1167547
or by email: xsl-list-unsub(_at_)lists(_dot_)mulberrytech(_dot_)com
--~--