DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26354>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26354 Xalan 1.7 may have introduced incorrect stricter checking from 1.6. Summary: Xalan 1.7 may have introduced incorrect stricter checking from 1.6. Product: XalanC Version: 1.7 Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: Other Component: XalanC AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] This xsl file worked fine with Xalan 1.6 and Xerces 2.3.0.(Mandrake 9.1 with libraries) Now using Xalan 1.7 and Xerces 2.4.0(Tru64 OSF Alpha 5.1b built from source) it complains: Xalan -o out_put router2-temp.xml shiva-temp2.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-temp2.xsl, line 113, column 71) Line 113: Please check RouterId = '<axsl:text xml:space="preserve"> </axsl:text> NOTE: The xsl file was generated with Xalan, using a schema file and a metastylesheet. file shiva-temp2.xsl is as follows: <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <axsl:stylesheet xmlns:axsl="http://www.w3.org/1999/XSL/Transform" xmlns:sch="http://www.ascc.net/xml/schematron" version="1.0"> <axsl:output method="text"/> <axsl:template match="*|@*" mode="schematron-get-full-path"> <axsl:apply-templates select="parent::*" mode="schematron-get-full-path"/> <axsl:text>/</axsl:text> <axsl:if test="count(. | ../@*) = count(../@*)">@</axsl:if> <axsl:value-of select="name()"/> <axsl:text>[</axsl:text> <axsl:value-of select="1+count(preceding-sibling::*[name()=name(current())])"/> <axsl:text>]</axsl:text> </axsl:template> <axsl:template match="/">BOW Networks DNP Router Schematron Schema Version 1.0 Checking section "ConfigurationRoot Validation": <axsl:apply-templates select="/" mode="M1"/> Checking section "Router Validation": <axsl:apply-templates select="/" mode="M2"/> Checking section "IntraRouterConnection Validation": <axsl:apply-templates select="/" mode="M3"/> Checking section "InterRouterConnection Validation": <axsl:apply-templates select="/" mode="M4"/> Checking section "Device Validation": <axsl:apply-templates select="/" mode="M5"/> Checking section "PeerMap Validation": <axsl:apply-templates select="/" mode="M6"/> Checking section "PeerMap/Peer Validation": <axsl:apply-templates select="/" mode="M7"/> Checking section "DeviceGroup Validation": <axsl:apply-templates select="/" mode="M8"/> Checking section "AccessControlList Validation": <axsl:apply-templates select="/" mode="M9"/> Checking section "AccessControlList/Peer Validation": <axsl:apply-templates select="/" mode="M10"/> Checking section "AccessRights Validation": <axsl:apply-templates select="/" mode="M11"/> Checking section "Interface Validation": <axsl:apply-templates select="/" mode="M12"/> Checking section "GENERIC ProtocolType Validation": <axsl:apply-templates select="/" mode="M13"/> Checking section "RPOConnection Validation": <axsl:apply-templates select="/" mode="M14"/> Checking section "KeepAlive Validation": <axsl:apply-templates select="/" mode="M15"/> Checking section "HostInactivityTimeout Validation": <axsl:apply-templates select="/" mode="M16"/> Checking section "Groups Validation": <axsl:apply-templates select="/" mode="M17"/> Checking section "Group Validation": <axsl:apply-templates select="/" mode="M18"/> Checking section "BroadcastGroup Validation": <axsl:apply-templates select="/" mode="M19"/> Checking section "BroadcastGroup/Peer Validation": <axsl:apply-templates select="/" mode="M20"/> Checking section "ConnectionParameters Validation": <axsl:apply-templates select="/" mode="M21"/> Checking section "ConnectionType TCP Validation": <axsl:apply-templates select="/" mode="M22"/> Checking section "ConnectionType TLS Validation": <axsl:apply-templates select="/" mode="M23"/> Checking section "ConnectionType SSL Validation": <axsl:apply-templates select="/" mode="M24"/> Checking section "TCP Connection Parameters Validation": <axsl:apply-templates select="/" mode="M25"/> Checking section "SSL and TLS Connection Parameters Validation": <axsl:apply- templates select="/" mode="M26"/> Checking section "UDP Connection Parameters Validation": <axsl:apply-templates select="/" mode="M27"/> Checking section "Serial Validation": <axsl:apply-templates select="/" mode="M28"/> Checking section "ConnectionParameters/Modem Validation": <axsl:apply-templates select="/" mode="M29"/> Checking section "ModemPoolManager Validation": <axsl:apply-templates select="/" mode="M30"/> Checking section "ModemPoolManager/Modem Validation": <axsl:apply-templates select="/" mode="M31"/> Checking section "ModemPool Validation": <axsl:apply-templates select="/" mode="M32"/> Checking section "Modems Validation": <axsl:apply-templates select="/" mode="M33"/> Checking section "ModemID Validation": <axsl:apply-templates select="/" mode="M34"/> Checking section "ModemGroups Validation": <axsl:apply-templates select="/" mode="M35"/> Checking section "ModemDeviceGroup Validation": <axsl:apply-templates select="/" mode="M36"/> Checking section "AlarmReporter Validation": <axsl:apply-templates select="/" mode="M37"/> Checking section "Targets Validation": <axsl:apply-templates select="/" mode="M38"/> Checking section "AlarmType LOG Validation": <axsl:apply-templates select="/" mode="M39"/> Checking section "Target Validation": <axsl:apply-templates select="/" mode="M40"/> Checking section "StandardAlarms Validation": <axsl:apply-templates select="/" mode="M41"/> 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> <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>>...</> 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="Router"/> <axsl:otherwise> Assertion fails: "Router section 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> <axsl:value-of select=" ancestor::Router/@RouterID "/> <axsl:text xml:space="preserve"> </axsl:text>' and correct this issue. </axsl:otherwise> </axsl:choose> <axsl:apply-templates mode="M1"/> </axsl:template> </axsl:stylesheet> -------------------------------------------- File router2-temp.xml is as follows: <ConfigurationRoot ConfigurationVersin="11.11.99" FileVersion="1.0.0"> <Router RouterID="chad1"> <Interface InterfaceID="SSLHostInterface" ProtocolType="DNP" OperatingMode="SupportHost" ConnectionType="SSL"> <Groups> <Group DeviceGroupID="Host2Group" SelectionCriteria="HostAddress" HostIPAddress=""/> <Group DeviceGroupID="Host1Group" SelectionCriteria="IPAddress" HostIPAddress=""/> <Group DeviceGroupID="HostCGroup" SelectionCriteria="IPAndHost" HostIPAddress=""/> </Groups> <BroadcastGroup> <Peer VirtualAddress="20" /> <Peer VirtualAddress="3021" /> <Peer VirtualAddress="3022" /> </BroadcastGroup> <ConnectionParameters> <SSL ConnectionMode="Wait" ResponseTimeout="5"/> </ConnectionParameters> </Interface> </Router> </ConfigurationRoot>
