Anyone seen this XSLT error before?
"Chad Williamson" <[email protected]> Wed, 21 Jan 2004 15:33:44 -0700
| Newsgroups | gmane.text.xml.schematron |
|---|---|
| Message-ID | <[email protected]> |
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