Hi:
We are working through the steps of implementing GeoNetwork 2.4.2 in a
WebSphere Application Server 6.1.031 environment (JRE 1.5). XSLT errors
are appearing in the WAS native_stderr.log (see below for details). The
generic error is: "XTRE0540: Ambiguous rule match". Some knowledge
base suggest that the error may occur and be recoverable depending on
the XSLT processor in use, Xalan or Saxon9. Both appear to be available
to GN. The "best practice" is to make the correction in the .xsl's
using the "priority" attribute for "<template>" I did that for
main.xsl, main-page.xsl and res.xsl to reflect the "<include>"
dependencies. This worked fine but the error is appearing for deeper
dependencies such as gmd and gco schema docs. Am I missing something,
such as a config parameter setting for different xslt processors or
levels of processing? Other suggestions..?
Many thanks in advance,
Ralph Baehre
GIS Data Services
BBS-Geographic Business Solutions
MNR-Land Resources Cluster
Government of Ontario
Canada
Error Details:
XTRE0540: Ambiguous rule match for
/root/gmd:MD_Metadata[1]/gmd:identificationInfo[1]/gmd:MD_DataIdentifica
tion[1]/gmd:pointOfContact[1]
Matches both "element({http://www.isotc211.org/2005/gmd\}pointOfContact,
xs:anyType)" on line 2229 of
file:/d:/websphere61/profiles/public/installedApps/<WAS server
NodeCell>/geonetwork_e.ear/geonetwork.war/xsl/metadata-iso19139.xsl
and "element({http://www.isotc211.org/2005/gmd\}pointOfContact,
xs:anyType)" on line 55 of
file:/d:/websphere61/profiles/public/installedApps/<WAS server
NodeCell>/geonetwork_e.ear/geonetwork.war/xsl/metadata-iso19139.xsl
[8/19/10 14:37:09:026 EDT] 00000033 SystemErr R Recoverable error
XTRE0540: Ambiguous rule match for
/root/gmd:MD_Metadata[1]/gmd:identificationInfo[1]/gmd:MD_DataIdentifica
tion[1]/gmd:descriptiveKeywords[1]
Matches both
"element({http://www.isotc211.org/2005/gmd\}descriptiveKeywords,
xs:anyType)" on line 541 of
file:/d:/websphere61/profiles/public/installedApps/<WAS server
NodeCell>/geonetwork_e.ear/geonetwork.war/xsl/metadata-iso19139.xsl
and "element({http://www.isotc211.org/2005/gmd\}descriptiveKeywords,
xs:anyType)" on line 55 of
file:/d:/websphere61/profiles/public/installedApps/<WAS server
NodeCell>/geonetwork_e.ear/geonetwork.war/xsl/metadata-iso19139.xsl
[8/19/10 14:37:09:058 EDT] 00000033 SystemErr R Recoverable error
XTRE0540: Ambiguous rule match for
/root/gmd:MD_Metadata[1]/gmd:identificationInfo[1]/gmd:MD_DataIdentifica
tion[1]/gmd:descriptiveKeywords[2]
Matches both
"element({http://www.isotc211.org/2005/gmd\}descriptiveKeywords,
xs:anyType)" on line 541 of
file:/d:/websphere61/profiles/public/installedApps/<WAS server
NodeCell>/geonetwork_e.ear/geonetwork.war/xsl/metadata-iso19139.xsl
and "element({http://www.isotc211.org/2005/gmd\}descriptiveKeywords,
xs:anyType)" on line 55 of
file:/d:/websphere61/profiles/public/installedApps/<WAS server
NodeCell>/geonetwork_e.ear/geonetwork.war/xsl/metadata-iso19139.xsl
[8/19/10 14:37:09:058 EDT] 00000033 SystemErr R Recoverable error
XTRE0540: Ambiguous rule match for
/root/gmd:MD_Metadata[1]/gmd:identificationInfo[1]/gmd:MD_DataIdentifica
tion[1]/gmd:descriptiveKeywords[2]/gmd:MD_Keywords[1]/gmd:keyword[1]
Matches both
"gmd:keyword[following-sibling::gmd:type/gmd:MD_KeywordTypeCode/@codeLis
tValue='place']" on line 576 of
file:/d:/websphere61/profiles/public/installedApps/<WAS server
NodeCell>/geonetwork_e.ear/geonetwork.war/xsl/metadata-iso19139.xsl
and
"gmd:*[gco:CharacterString|gco:Date|gco:DateTime|gco:Integer|gco:Decimal
|gco:Boolean|gco:Real|gco:Measure|gco:Length|gco:Distance|gco:Angle|gco:
Scale|gco:RecordType]|srv:*[gco:CharacterString|gco:Date|gco:DateTime|gc
o:Integer|gco:Decimal|gco:Boolean|gco:Real|gco:Measure|gco:Length|gco:Di
stance|gco:Angle|gco:Scale|gco:RecordType]|gco:aName[gco:CharacterString
]" on line 69 of file:/d:/websphere61/profiles/public/installedApps/<WAS
server
NodeCell>/geonetwork_e.ear/geonetwork.war/xsl/metadata-iso19139.xsl
[8/19/10 14:37:09:308 EDT] 00000033 SystemErr R Recoverable error
XTRE0540: Ambiguous rule match for
/root/gmd:MD_Metadata[1]/gmd:identificationInfo[1]/gmd:MD_DataIdentifica
tion[1]/gmd:language[1]
Matches both "//gmd:language" on line 2020 of
file:/d:/websphere61/profiles/public/installedApps/<WAS server
NodeCell>/geonetwork_e.ear/geonetwork.war/xsl/metadata-iso19139.xsl
and
"gmd:*[gco:CharacterString|gco:Date|gco:DateTime|gco:Integer|gco:Decimal
|gco:Boolean|gco:Real|gco:Measure|gco:Length|gco:Distance|gco:Angle|gco:
Scale|gco:RecordType]|srv:*[gco:CharacterString|gco:Date|gco:DateTime|gc
o:Integer|gco:Decimal|gco:Boolean|gco:Real|gco:Measure|gco:Length|gco:Di
stance|gco:Angle|gco:Scale|gco:RecordType]|gco:aName[gco:CharacterString
]" on line 69 of file:/d:/websphere61/profiles/public/installedApps/<WAS
server
NodeCell>/geonetwork_e.ear/geonetwork.war/xsl/metadata-iso19139.xsl
[8/19/10 14:37:10:401 EDT] 00000033 SystemErr R Recoverable error
XTRE0540: Ambiguous rule match for
/root/gmd:MD_Metadata[1]/gmd:distributionInfo[1]/gmd:MD_Distribution[1]/
gmd:transferOptions[1]/gmd:MD_DigitalTransferOptions[1]/gmd:onLine[2]/gm
d:CI_OnlineResource[1]
Matches both
"gmd:CI_OnlineResource[starts-with(gmd:protocol/gco:CharacterString,'WWW
:DOWNLOAD-') and
contains(gmd:protocol/gco:CharacterString,'http--download') and
gmd:name]" on line 2522 of
file:/d:/websphere61/profiles/public/installedApps/<WAS server
NodeCell>/geonetwork_e.ear/geonetwork.war/xsl/metadata-iso19139.xsl
and "element({http://www.isotc211.org/2005/gmd\}CI_OnlineResource,
xs:anyType)" on line 2289 of
file:/d:/websphere61/profiles/public/installedApps/<WAS server
NodeCell>/geonetwork_e.ear/geonetwork.war/xsl/metadata-iso19139.xsl
[8/19/10 14:37:10:448 EDT] 00000033 SystemErr R Recoverable error
XTRE0540: Ambiguous rule match for
/root/gmd:MD_Metadata[1]/gmd:distributionInfo[1]/gmd:MD_Distribution[1]/
gmd:transferOptions[1]/gmd:MD_DigitalTransferOptions[1]/gmd:onLine[3]/gm
d:CI_OnlineResource[1]
Matches both
"gmd:CI_OnlineResource[starts-with(gmd:protocol/gco:CharacterString,'OGC
:WMS-') and contains(gmd:protocol/gco:CharacterString,'-get-map') and
gmd:name]" on line 2384 of
file:/d:/websphere61/profiles/public/installedApps/<WAS server
NodeCell>/geonetwork_e.ear/geonetwork.war/xsl/metadata-iso19139.xsl
and "element({http://www.isotc211.org/2005/gmd\}CI_OnlineResource,
xs:anyType)" on line 2289 of
file:/d:/websphere61/profiles/public/installedApps/<WAS server
NodeCell>/geonetwork_e.ear/geonetwork.war/xsl/metadata-iso19139.xsl
[8/19/10 14:37:11:292 EDT] 00000033 SystemErr R Recoverable error
XTRE0540: Ambiguous rule match for
/root/gmd:MD_Metadata[1]/gmd:language[1]
Matches both "//gmd:language" on line 2020 of
file:/d:/websphere61/profiles/public/installedApps/<WAS server
NodeCell>/geonetwork_e.ear/geonetwork.war/xsl/metadata-iso19139.xsl
and
"gmd:*[gco:CharacterString|gco:Date|gco:DateTime|gco:Integer|gco:Decimal
|gco:Boolean|gco:Real|gco:Measure|gco:Length|gco:Distance|gco:Angle|gco:
Scale|gco:RecordType]|srv:*[gco:CharacterString|gco:Date|gco:DateTime|gc
o:Integer|gco:Decimal|gco:Boolean|gco:Real|gco:Measure|gco:Length|gco:Di
stance|gco:Angle|gco:Scale|gco:RecordType]|gco:aName[gco:CharacterString
]" on line 69 of file:/d:/websphere61/profiles/public/installedApps/<WAS
server
NodeCell>/geonetwork_e.ear/geonetwork.war/xsl/metadata-iso19139.xsl
[8/19/10 14:40:27:415 EDT] 00000033 SystemErr R Recoverable error
XTRE0540: Ambiguous rule match for
/root/gmd:MD_Metadata[1]/gmd:identificationInfo[1]/gmd:MD_DataIdentifica
tion[1]/gmd:pointOfContact[1]
Matches both "element({http://www.isotc211.org/2005/gmd\}pointOfContact,
xs:anyType)" on line 2229 of
file:/d:/websphere61/profiles/public/installedApps/<WAS server
NodeCell>/geonetwork_e.ear/geonetwork.war/xsl/metadata-iso19139.xsl
and "element({http://www.isotc211.org/2005/gmd\}pointOfContact,
xs:anyType)" on line 55 of
file:/d:/websphere61/profiles/public/installedApps/<WAS server
NodeCell>/geonetwork_e.ear/geonetwork.war/xsl/metadata-iso19139.xsl
[8/19/10 14:40:27:462 EDT] 00000033 SystemErr R Recoverable error
XTRE0540: Ambiguous rule match for
/root/gmd:MD_Metadata[1]/gmd:identificationInfo[1]/gmd:MD_DataIdentifica
tion[1]/gmd:descriptiveKeywords[1]
Matches both
"element({http://www.isotc211.org/2005/gmd\}descriptiveKeywords,
xs:anyType)" on line 541 of
file:/d:/websphere61/profiles/public/installedApps/<WAS server
NodeCell>/geonetwork_e.ear/geonetwork.war/xsl/metadata-iso19139.xsl
and "element({http://www.isotc211.org/2005/gmd\}descriptiveKeywords,
xs:anyType)" on line 55 of
file:/d:/websphere61/profiles/public/installedApps/<WAS server
NodeCell>/geonetwork_e.ear/geonetwork.war/xsl/metadata-iso19139.xsl
[8/19/10 14:40:27:462 EDT] 00000033 SystemErr R Recoverable error
XTRE0540: Ambiguous rule match for
/root/gmd:MD_Metadata[1]/gmd:identificationInfo[1]/gmd:MD_DataIdentifica
tion[1]/gmd:descriptiveKeywords[2]
Matches both
"element({http://www.isotc211.org/2005/gmd\}descriptiveKeywords,
xs:anyType)" on line 541 of
file:/d:/websphere61/profiles/public/installedApps/<WAS server
NodeCell>/geonetwork_e.ear/geonetwork.war/xsl/metadata-iso19139.xsl
and "element({http://www.isotc211.org/2005/gmd\}descriptiveKeywords,
xs:anyType)" on line 55 of
file:/d:/websphere61/profiles/public/installedApps/<WAS server
NodeCell>/geonetwork_e.ear/geonetwork.war/xsl/metadata-iso19139.xsl
[8/19/10 14:40:27:493 EDT] 00000033 SystemErr R Recoverable error
XTRE0540: Ambiguous rule match for
/root/gmd:MD_Metadata[1]/gmd:identificationInfo[1]/gmd:MD_DataIdentifica
tion[1]/gmd:language[1]
Matches both "//gmd:language" on line 2020 of
file:/d:/websphere61/profiles/public/installedApps/<WAS server
NodeCell>/geonetwork_e.ear/geonetwork.war/xsl/metadata-iso19139.xsl
and
"gmd:*[gco:CharacterString|gco:Date|gco:DateTime|gco:Integer|gco:Decimal
|gco:Boolean|gco:Real|gco:Measure|gco:Length|gco:Distance|gco:Angle|gco:
Scale|gco:RecordType]|srv:*[gco:CharacterString|gco:Date|gco:DateTime|gc
o:Integer|gco:Decimal|gco:Boolean|gco:Real|gco:Measure|gco:Length|gco:Di
stance|gco:Angle|gco:Scale|gco:RecordType]|gco:aName[gco:CharacterString
]" on line 69 of file:/d:/websphere61/profiles/public/installedApps/<WAS
server
NodeCell>/geonetwork_e.ear/geonetwork.war/xsl/metadata-iso19139.xsl
[8/19/10 14:40:27:837 EDT] 00000033 SystemErr R Recoverable error
XTRE0540: Ambiguous rule match for
/root/gmd:MD_Metadata[1]/gmd:distributionInfo[1]/gmd:MD_Distribution[1]/
gmd:transferOptions[1]/gmd:MD_DigitalTransferOptions[1]/gmd:onLine[2]/gm
d:CI_OnlineResource[1]
Matches both
"gmd:CI_OnlineResource[starts-with(gmd:protocol/gco:CharacterString,'WWW
:DOWNLOAD-') and
contains(gmd:protocol/gco:CharacterString,'http--download') and
gmd:name]" on line 2522 of
file:/d:/websphere61/profiles/public/installedApps/<WAS server
NodeCell>/geonetwork_e.ear/geonetwork.war/xsl/metadata-iso19139.xsl
and "element({http://www.isotc211.org/2005/gmd\}CI_OnlineResource,
xs:anyType)" on line 2289 of
file:/d:/websphere61/profiles/public/installedApps/<WAS server
NodeCell>/geonetwork_e.ear/geonetwork.war/xsl/metadata-iso19139.xsl
[8/19/10 14:40:27:837 EDT] 00000033 SystemErr R Recoverable error
XTRE0540: Ambiguous rule match for
/root/gmd:MD_Metadata[1]/gmd:distributionInfo[1]/gmd:MD_Distribution[1]/
gmd:transferOptions[1]/gmd:MD_DigitalTransferOptions[1]/gmd:onLine[3]/gm
d:CI_OnlineResource[1]
Matches both
"gmd:CI_OnlineResource[starts-with(gmd:protocol/gco:CharacterString,'OGC
:WMS-') and contains(gmd:protocol/gco:CharacterString,'-get-map') and
gmd:name]" on line 2384 of
file:/d:/websphere61/profiles/public/installedApps/<WAS server
NodeCell>/geonetwork_e.ear/geonetwork.war/xsl/metadata-iso19139.xsl
and "element({http://www.isotc211.org/2005/gmd\}CI_OnlineResource,
xs:anyType)" on line 2289 of
file:/d:/websphere61/profiles/public/installedApps/<WAS server
NodeCell>/geonetwork_e.ear/geonetwork.war/xsl/metadata-iso19139.xsl
[8/19/10 14:40:27:868 EDT] 00000033 SystemErr R Recoverable error
XTRE0540: Ambiguous rule match for
/root/gmd:MD_Metadata[1]/gmd:language[1]
Matches both "//gmd:language" on line 2020 of
file:/d:/websphere61/profiles/public/installedApps/<WAS server
NodeCell>/geonetwork_e.ear/geonetwork.war/xsl/metadata-iso19139.xsl
and
"gmd:*[gco:CharacterString|gco:Date|gco:DateTime|gco:Integer|gco:Decimal
|gco:Boolean|gco:Real|gco:Measure|gco:Length|gco:Distance|gco:Angle|gco:
Scale|gco:RecordType]|srv:*[gco:CharacterString|gco:Date|gco:DateTime|gc
o:Integer|gco:Decimal|gco:Boolean|gco:Real|gco:Measure|gco:Length|gco:Di
stance|gco:Angle|gco:Scale|gco:RecordType]|gco:aName[gco:CharacterString
]" on line 69 of file:/d:/websphere61/profiles/public/installedApps/<WAS
server
NodeCell>/geonetwork_e.ear/geonetwork.war/xsl/metadata-iso19139.xsl