xsl-list
[Top] [All Lists]

[xsl] Re: [xsl] fn:contains in sequence – P2 | XSLT 2.0

2021-06-24 11:19:53
Hi, Martin:        I understand what the error means. 

    If I run that module in Oxygen, I get:

<?xml version="1.0"encoding="UTF-8"?>
<SVM xmlns="schema://fc.fasset/svm"><!-- June 23rd, 202122:18:41 -->
   <Negative><!--Negativetrained Options classification::Better training data 
issuggested--></Negative>

</SVM>
     => blank result 

    My XSLT + cts module groups the labelled classification into Negative (all 
@val is negative in one serial/classification) and Positive (one, only one, 
positive @val in one serial/classification).  That module is merely one-liner 
work.     

    Can you correct my XSLT module and get the desired groups, in this case, 
the Negative and the Positive?  


----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    On Thursday, June 24, 2021, 11:53:24 a.m. EDT, Martin Honnen 
martin(_dot_)honnen(_at_)gmx(_dot_)de wrote:  

I think the error message is telling you that that the second argument to the 
"contains" call, i.e. $classVal is a sequence of more than one item.    
--~----------------------------------------------------------------
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
--~--
<Prev in Thread] Current Thread [Next in Thread>