After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 167289 - oasis-xml-catalog processing instruction broken with schema validation
oasis-xml-catalog processing instruction broken with schema validation
Status: RESOLVED INCOMPLETE
Product: libxml2
Classification: Platform
Component: general
2.6.17
Other All
: Normal normal
: ---
Assigned To: Daniel Veillard
libxml QA maintainers
Depends on:
Blocks:
 
 
Reported: 2005-02-13 18:38 UTC by Frans Englich
Modified: 2010-05-11 22:06 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Frans Englich 2005-02-13 18:38:48 UTC
Please describe the problem:
   
Hello,   
   
When running:   
   
xmllint --noout --schema schemata/TestReport.xsd  templates/testReport.xml     
   
where templates/testReport.xml at the very beginning contains:   
   
<?xml version="1.0" encoding="UTF-8" ?>   
<?oasis-xml-catalog catalog="../catalog.xml" ?>   
<!--   
Copyright (C) 2004 Frans   
   
I get the following with XML_DEBUG_CATALOG set:   
   
bash-2.05b$ xmllint --noout --schema schemata/TestReport.xsd    
templates/testReport.xml   
Resolve: sysID http://defense.sf.net/NS/TestOutput.xsd   
Failed to parse catalog file:///etc/xml/catalog   
Resolve URI http://defense.sf.net/NS/TestOutput.xsd   
warning: failed to load external entity   
"http://defense.sf.net/NS/TestOutput.xsd"   
schemata/TestReport.xsd:186: element element: Schemas parser error : Element   
ref. 'output:testOutput', attribute 'ref': The QName value   
{'http://defense.sf.net/NS/TestOutput', 'testOutput'} does not resolve to a(n)   
element declaration.   
WXS schema schemata/TestReport.xsd failed to compile   
Adding document catalog ../catalog.xml	              <----------------  
Free catalog entry ../catalog.xml   
Catalogs cleanup   
Free catalog entry   
bash-2.05b$   
   
    
It appears like loading the document catalog happens after the document was   
validated, which prevents the loading of schema URIs to be mapped. 
   
 
Cheers,   
Frans   
   

Steps to reproduce:
 
 

Actual results:


Expected results:


Does this happen every time?


Other information:
Comment 1 Daniel Veillard 2005-02-13 20:33:18 UTC
Sounds dangerous to me to expect the document to be validated to
be where you find informations about how to validate it, DTD inherited
this from SGML but it's an ancient behaviour.
oasis-xml-catalog catalogs are as far as I can tell only defined to
influence the current document entity resolution, not entity resolution
for other XML files which might be related. Doing so would be serious
hazard, it would make very easy to bypass any validation layer.

  I doubt it can be considered as a bug, I would check the Relax-NG
spec but www.oasis-open.org seems to have troubles serving it.

Daniel
Comment 2 Javier Jardón (IRC: jjardon) 2010-03-24 03:05:09 UTC
You reported this bug a while ago and there hasn't been any activity in it
recently. We were wondering if this is still an issue for you.

Can you please check again if the issue you reported here still happens in a
recent version and update this report by adding a comment and adjusting
the 'Version' field?

Again thank you for reporting this and sorry that it could not be fixed for the
version you originally used here.

Set to NEEDINFO, so without feedback this report will be closed as INCOMPLETE
after 6 weeks.
Comment 3 Tobias Mueller 2010-05-11 22:06:44 UTC
Closing this bug report as no further information has been provided. Please feel free to reopen this bug if you can provide the information asked for.
Thanks!