This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 252 - SAXON 6.5.2 throws exception when building dom1-interfaces.xml
Summary: SAXON 6.5.2 throws exception when building dom1-interfaces.xml
Status: RESOLVED FIXED
Alias: None
Product: DOM TS
Classification: Unclassified
Component: DOM Level 1 (show other bugs)
Version: unspecified
Hardware: Other other
: P2 normal
Target Milestone: ---
Assignee: Curt Arnold
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-06-28 15:34 UTC by Curt Arnold
Modified: 2003-06-28 19:37 UTC (History)
0 users

See Also:


Attachments

Description Curt Arnold 2003-06-28 15:34:26 UTC
The DOM 1 spec contains entity declarations with relative URL's which will 
result in SAXON raising an InvalidURLException.  Xalan-J will properly build 
the dom1-interfaces.xml file, but will throw NullPointerExceptions when trying 
to build the tests.  The fix places a prebuild copy of dom1-interfaces.xml in 
the patches directory.  The build script will use it if available.
Comment 1 Curt Arnold 2003-06-28 15:37:18 UTC
Index: build.xml
===================================================================
RCS file: /sources/public/2001/DOM-Test-Suite/build.xml,v
retrieving revision 1.95
diff -r1.95 build.xml
526a527,532
> <!--  Saxon 6.5.2 has a problem with relative URL's in entity references
>          and fails to produce this document, so if available
>          a copy from the lib is used     -->
> <target name="dom1-interfaces-init" depends="dom1-init">
>     <available file="patches/dom1-interfaces.xml" property="dom1-interfaces-
available"/>
> </target>
528c534
< <target name="dom1-interfaces" depends="dom1-init">
---
> <target name="dom1-interfaces-gen" depends="dom1-interfaces-init" 
unless="dom1-interfaces-available">
532,533c538,545
< 	       style="${transforms.dir}/dom1-errata.xsl"
< 	       processor="trax"/>
---
> 	       style="${transforms.dir}/dom1-errata.xsl"/>
> </target>
> 
> <target name="dom1-interfaces-copy" depends="dom1-interfaces-init" if="dom1-
interfaces-available">
>     <copy todir="${build.dir}" file="patches/dom1-interfaces.xml"/>
> </target>
> 
> <target name="dom1-interfaces" depends="dom1-interfaces-gen, dom1-interfaces-
copy">
1697,1700c1709,1711
<     <delete file="tests\level1\core\dom1.dtd"/>
<     <delete file="tests\level1\core\dom1.xsd"/>
<     <delete file="tests\level2\core\dom2.dtd"/>
<     <delete file="tests\level2\core\dom2.xsd"/>
---
>     <delete file="tests\level1\**\dom1.*"/>
>     <delete file="tests\level2\**\dom2.*"/>
>     <delete file="tests\level3\**\dom3.*"/>