Subject: RE: [xsl] error in XSL file when using JAXP From: "Michael Kay" <mike@xxxxxxxxxxxx> Date: Thu, 28 Jul 2005 11:44:08 +0100 |
The reason you don't get the error when you run the transformation from your editor is probably that you're using an earlier version of Saxon - the rules for EBV (effective boolean value) were changed very recently to introduce this error. I'm afraid the line number information here seems to be off: there's nothing on this line that's calculating EBV directly. It might be that this line is causing a deferred evaluation of the variable $ont and that the error is in the code for initializing that variable (just a guess). Michael Kay > -----Original Message----- > From: Rahil [mailto:qamar_rahil@xxxxxxxxxxx] > Sent: 28 July 2005 11:26 > To: XSL List > Subject: [xsl] error in XSL file when using JAXP > > Hi > > Im using JAXP to pass the source XML and XSL file to perform the > transformation task in Java. > > However, I get an error in one of the 'next-in-chain' XSL > files which I > cant understand, as I do not receive this error when I run my > transformation from the XSL Editor. > > The error is : > ------------------------ > Error at xsl:for-each on line 162 of > file:/D:/Coding/Samples/Final/CanonicalMapping1.xsl: > Effective boolean value is not defined for a sequence of > two or more > items starting with > an atomic value > ------------------------ > > Line 162 in the said file is : > ----------- > ///CanonicalMapping1.xsl ///// > <xsl:for-each select="$ont/SubConcepts/SubConcept"> > //first line of file/// > <xsl:stylesheet version="2.0" > xmlns:xsl="http://www.w3.org/1999/XSL/Transform" > xmlns:saxon="http://saxon.sf.net/"> > ------------ > > which looks in-part as such: > ---------- > ///OntFile.xml ($ont) //// > <Top> > <PrimeConcept id="10180" type="none"/> > <SubConcepts> > <SubConcept id="10279" name="Headache"> > <Value type="TEXT" ref="10211">hasLocation Forehead</Value> > <Value type="TEXT" > ref="10237">hasSymptomCharacter PainSymptomCharacter</Value> > </SubConcept> > <SubConcept id="10237" name="PainSymptomCharacter"> > <ChildConcept ref="10236">HeadacheCharacter</ChildConcept> > </SubConcept> > <SubConcept id="10215" name="TemporalPattern"> > <ChildConcept ref="10214">MealPattern</ChildConcept> > <Value type="TEXT" > ref="10219">hasAbsoluteState intermittent</Value> > </SubConcept> > -------------- > Im using an XSLT2.0 processor. > > Would appreciate any help with this problem. > > Thanks > Rahil
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] error in XSL file when us, Michael Kay | Thread | RE: [xsl] error in XSL file when us, Rahil Qamar |
RE: [xsl] Cleaning text away from c, Michael Kay | Date | Re: [xsl] error in XSL file when us, Rahil Qamar |
Month |