Subject: [xsl] fn:contains in sequence – P2 | XSLT 2.0 From: "Fiona Chen anonymousjuly1@xxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: Thu, 24 Jun 2021 14:47:35 -0000 |
B B B B However, I am not able to transform thereport in XSLT 2.0 equivalent without MarkLogic cts. B B B B <xsl:templatematch="SVM"> B B B B B B B <xsl:variable name="classVal"select="class[xs:decimal(@val) gt 0.00]"/> B B B B B B B <xsl:element name="SVM"namespace="schema://fc.fasset/svm"> B B B B B B B B B B B <xsl:comment select="$point-in-time"/> B B B B B B B B B B B <xsl:element name="Negative"namespace="schema://fc.fasset/svm"> B B B B B B B B B B B B B B B <xsl:comment select="$negative-comment"/> B B B B B B B B B B B B B B B <xsl:for-each select="classification[not(contains(descendant::label,$classVal))]"> B B B B B B B B B B B B B B B B B B B <xsl:copy-ofselect="."/> B B B B B B B B B B B B B B B </xsl:for-each> B B B B B B B B B B B </xsl:element> B B B B B B B </xsl:element> B B B </xsl:template> B (Note:The number, position and sequence of the labelled class will change dependingon the training data. Hard-coded count or position in XSLT wouldnbt work.) B B B B B 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() B B B B B B Can the XSLT expert rectify the problematic XSLTmodule (the one without cts)? Thank you!
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] fn:contains in sequence – P1, Fiona Chen anonymous | Thread | Re: [xsl] fn:contains in sequence , Martin Honnen martin |
[xsl] fn:contains in sequence – P1, Fiona Chen anonymous | Date | Re: [xsl] fn:contains in sequence , Martin Honnen martin |
Month |