[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|