xsl-list
[Top] [All Lists]

error in XSL file when using JAXP

2005-07-28 03:26:28
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





--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--