Re: Anyone seen this XSLT error before?
"Chad Williamson" <[email protected]> Thu, 22 Jan 2004 13:52:53 -0700
| Newsgroups | gmane.text.xml.schematron |
|---|---|
| Message-ID | <[email protected]> |
It turns out that this is a bug in Xalan 1.7 and has been fixed already. Thanks, chad http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26354 Xalan 1.7 may have introduced incorrect stricter checking from 1.6. [email protected] changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED "Chad Williamson" <[email protected]> on 21/01/2004 03:33:44 PM To: [email protected] cc: (bcc: Chad Williamson/BOW Software Inc.) Subject: [Schematron-love-in] Anyone seen this XSLT error before? I've been using Xalan 1.6(with Xerces 2.3.0) as my XSLT transform engine with no problems. I gave our customer the files and they are using Xalan 1.7(with Xerces 2.4.0) and they get this error and I don't... I'm investigating the differences in versions, but was hoping that someone else may have seen it :-) The problem line is related to my diagnostic message. Thanks, chad >Xalan -o out_put router2.xml shiva-temp.xsl XSLT error: xsl:text or literal text is not allowed at this position in the stylesheet (file:///home/shiva/Xalan1_7/xml-xalan/c/testfiles/shiva-temp.xsl, line 113, column 71) Snippet from stylesheet below: Checking section "Alarm Validation": <axsl:apply-templates select="/" mode="M42"/> Checking section "UniqueID Validation": <axsl:apply-templates select="/" mode="M43"/> </axsl:template> <axsl:template match="ConfigurationRoot" priority="4000" mode="M1"> <axsl:choose> <axsl:when test="@ConfigurationVersion"/> <axsl:otherwise> Assertion fails: "ConfigurationVersion is missing!" at <axsl:apply-templates mode="schematron-get-full-path" select="."/> <<axsl:value-of select="name()"/> <axsl:for-each select="@*"> <axsl:value-of select="' '"/> <axsl:value-of select="name()"/>="<axsl:value-of select="."/>"</axsl:for-each>>...</> Please check RouterId = '<axsl:text xml:space="preserve"> </axsl:text> <----- Line 113. <axsl:value-of select=" ancestor::Router/@RouterID "/> <axsl:text xml:space="preserve"> </axsl:text>' and correct this issue. </axsl:otherwise> </axsl:choose> <axsl:choose> <axsl:when test="string-length(normalize-space(@ConfigurationVersion))=8 and substring(normalize-space(@ConfigurationVersion),3,1)='.' and substring(normalize-space(@ConfigurationVersion),6,1)='.' and number(substring(normalize-space(@ConfigurationVersion),1,2))>=0 and number(substring(normalize-space(@ConfigurationVersion),4,2))>=0 and number(substring(normalize-space(@ConfigurationVersion),7,2))>=0"/> <axsl:otherwise> Assertion fails: "ConfigurationVersion must be in the following format: XX.YY.ZZ, where X, Y, and Z are in the range of 0 to 9!" at <axsl:apply-templates mode="schematron-get-full-path" select="."/> <<axsl:value-of select="name()"/> <axsl:for-each select="@*"> <axsl:value-of select="' '"/> <axsl:value-of select="name()"/>="<axsl:value-of select="."/>"</axsl:for-each>>...</> Please check RouterId = '<axsl:text xml:space="preserve"> </axsl:text> <axsl:value-of select=" ancestor::Router/@RouterID "/> <axsl:text xml:space="preserve"> </axsl:text>' and correct this issue. </axsl:otherwise> </axsl:choose> <axsl:choose> <axsl:when test="@FileVersion"/> <axsl:otherwise> Assertion fails: "FileVersion is missing!" at <axsl:apply-templates mode="schematron-get-full-path" select="."/> <<axsl:value-of select="name()"/> <axsl:for-each select="@*"> <axsl:value-of select="' '"/> <axsl:value-of select="name()"/>="<axsl:value-of select="."/>"</axsl:for-each>>...</> ____________________________________________________________ Chad Williamson, B.Sc. CE BOW Networks Inc. Software Developer #200, 550-71 Avenue S.E. TEL: (403) 640-8422 Calgary, Alberta FAX: (403) 253-8979 T2H 0S6 e-mail: [email protected] --------------------------------------------------------------------------------------------------------- ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Schematron-love-in mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/schematron-love-in ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn