ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 38106] New: - xmlvalidate fails when apply to multiple fileset and xml/xsl document with no schemaLocation specified
Date Tue, 03 Jan 2006 11:01:32 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38106>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38106

           Summary: xmlvalidate fails when apply to multiple fileset and
                    xml/xsl document with no schemaLocation specified
           Product: Ant
           Version: 1.6.5
          Platform: All
        OS/Version: other
            Status: NEW
          Severity: critical
          Priority: P1
         Component: Optional Tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: a_cogito@yahoo.fr


This task fails when more than one file is specified and the xsl/xml document
doesn't contains the schemaLocation.

example:

<xmlvalidate failonerror="yes" lenient="no" warn="yes">
<attribute name="http://xml.org/sax/features/validation" value="true"/>
<attribute name="http://apache.org/xml/features/validation/schema"  value="true"/>
<attribute name="http://xml.org/sax/features/namespaces" value="true"/>
<property
name="http://apache.org/xml/properties/schema/external-schemaLocation"
value="http://www.w3.org/1999/XSL/Transform
http://www.w3.org/2005/02/schema-for-xslt20.xsd"/>
<fileset dir="xsl-no-schemaLocation" includes="*.xsl"/>
</xmlvalidate>

You can find the <property> documentation here:
http://xerces.apache.org/xerces-j/properties.html

Has said in this doc:
"The XML Schema Recommendation explicitly states that the inclusion of
schemaLocation/ noNamespaceSchemaLocation attributes is only a hint(...)"

The W3C doc about this: http://www.w3.org/TR/xmlschema-1/#xsi_schemaLocation
"2.6.3 xsi:schemaLocation, xsi:noNamespaceSchemaLocation
The xsi:schemaLocation and xsi:noNamespaceSchemaLocation attributes can be used
in a document to provide hints as to the physical location of schema documents
which may be used for ·assessment·. See How schema definitions are located on
the Web (§4.3.2) for details on the use of these attributes."


In my case, I have a lot of xsl with no schemaLocation specified.
I can't add the schemaLocation to all those files, so I need to specify the xsd
 location from "outside" (aka in the ant file).

I'll provide a showcase as an attachement of this bug.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message