xom-interest AT lists.ibiblio.org
Subject: XOM API for Processing XML with Java
List archive
- From: Wolfgang Hoschek <whoschek AT lbl.gov>
- To: Wolfgang Hoschek <whoschek AT lbl.gov>
- Cc: Elliotte Harold <elharo AT metalab.unc.edu>, xom-interest AT lists.ibiblio.org
- Subject: Re: [XOM-interest] Small glitches
- Date: Wed, 27 Jul 2005 13:50:51 -0700
You probably also forgot to commit some XInclude test files:
<testcase name="testEmptyEncodingAttribute" time="0.014">
<error message="data/xinclude/input/emptyencoding.xml (No such file or direc
tory)" type="java.io.FileNotFoundException">java.io.FileNotFoundException: data/
xinclude/input/emptyencoding.xml (No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java: 106)
at nu.xom.Builder.build(Builder.java:655)
at nu.xom.tests.XIncludeTest.testEmptyEncodingAttribute (XIncludeTest.jav
a:2519)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAcces
sorImpl.java:25)
</error>
</testcase>
<testcase name="testEncodingAttributeStartsWithDigit" time="0.0020">
<error message="data/xinclude/input/digitencoding.xml (No such file or direc
tory)" type="java.io.FileNotFoundException">java.io.FileNotFoundException: data/
xinclude/input/digitencoding.xml (No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java: 106)
at nu.xom.Builder.build(Builder.java:655)
at nu.xom.tests.XIncludeTest.testEncodingAttributeStartsWithDigit(XInclu
deTest.java:2536)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAcces
sorImpl.java:25)
</error>
</testcase>
On Jul 27, 2005, at 1:46 PM, Wolfgang Hoschek wrote:
On Jul 27, 2005, at 1:39 PM, Elliotte Harold wrote:
Wolfgang Hoschek wrote:
Plus, some recent changes broke BaseURITest.
Wolfgang.
Could you be more specific? BaseURITest passes for me. Possibly
there's something I've forgotten to commit somewhere, or possibly
there's some platform dependence that's causing the breakage.
file:/// Base URIs are one of the more platform specific parts of
XML and Java.
This is on OSX / JDK 1.4.2:
<?xml version="1.0" encoding="UTF-8" ?>
<testsuite errors="1" failures="1" name="nu.xom.tests.BaseURITest"
tests="73" time="1.804">
<properties>
<property name="java.vendor" value="Apple Computer, Inc."></
property>
<property name="saxon6.jar" value="./lib2/saxon.jar"></property>
<property name="lib.dir" value="./lib"></property>
<property name="build.javadocs" value="./build/apidocs"></ property>
<property name="servlet.jar.installed" value="true"></property>
<property name="jikes.class.path" value=":/Library/Java/Home/../
Classes/charsets.jar:/Library/Java/Home/../Classes/classes.jar:/
Library/Java/Home/../Classes/dt.jar:/Library/Java/Home/../Classes/
jce.jar:/Library/Java/Home/../Classes/jsse.jar:/Library/Java/Home/../
Classes/laf.jar:/Library/Java/Home/../Classes/sunrsasign.jar:/Library/
Java/Home/../Classes/ui.jar"></property>
<property name="test.outputFormat" value="xml"></property>
<property name="os.name" value="Mac OS X"></property>
<property name="sun.boot.class.path" value="/System/Library/
Frameworks/JavaVM.framework/Versions/1.4.2/Classes/classes.jar:/
System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Classes/
ui.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/
Classes/laf.jar:/System/Library/Frameworks/JavaVM.framework/Versions/
1.4.2/Classes/sunrsasign.jar:/System/Library/Frameworks/
JavaVM.framework/Versions/1.4.2/Classes/jsse.jar:/System/Library/
Frameworks/JavaVM.framework/Versions/1.4.2/Classes/jce.jar:/System/
Library/Frameworks/JavaVM.framework/Versions/1.4.2/Classes/
charsets.jar"></property>
<property name="TODAY" value="July 27 2005"></property>
<property name="resolver.jar" value="./lib2/resolver.jar"></
property>
<property name="sun.java2d.fontpath" value=""></property>
<property name="java.vm.specification.vendor" value="Sun
Microsystems Inc."></property>
<property name="ant.home" value="/Users/hoschek/unix/java/share/
apache/ant"></property>
<property name="java.runtime.version" value="1.4.2_07-215"></
property>
<property name="user.name" value="hoschek"></property>
<property name="debug" value="on"></property>
<property name="parser.jar" value="./lib/xercesImpl.jar"></
property>
<property name="awt.nativeDoubleBuffering" value="true"></ property>
<property name="build.dir" value="./build"></property>
<property name="user.language" value="en"></property>
<property name="sun.boot.library.path" value="/System/Library/
Frameworks/JavaVM.framework/Versions/1.4.2/Libraries"></property>
<property name="ant.project.name" value="XOM"></property>
<property name="DSTAMP" value="20050727"></property>
<property name="java.version" value="1.4.2_07"></property>
<property name="version" value="1.1b3-SNAPSHOT"></property>
<property name="user.timezone" value=""></property>
<property name="ant-home" value="/opt/ant"></property>
<property name="sun.arch.data.model" value="32"></property>
<property name="java.endorsed.dirs" value="/System/Library/
Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/endorsed"></
property>
<property name="sun.cpu.isalist" value=""></property>
<property name="file.encoding.pkg" value="sun.io"></property>
<property name="build.src" value="./build/src"></property>
<property name="file.separator" value="/"></property>
<property name="java.specification.name" value="Java Platform
API Specification"></property>
<property name="java.class.version" value="48.0"></property>
<property name="user.country" value="US"></property>
<property name="java.home" value="/System/Library/Frameworks/
JavaVM.framework/Versions/1.4.2/Home"></property>
<property name="dist.dir" value="./dist"></property>
<property name="clover.dir" value="./clover"></property>
<property name="optimize" value="off"></property>
<property name="java.vm.info" value="mixed mode"></property>
<property name="ant.file" value="/Users/hoschek/unix/devel/
xom-1.1/build.xml"></property>
<property name="os.version" value="10.4.2"></property>
<property name="path.separator" value=":"></property>
<property name="build15.dir" value="./classes15"></property>
<property name="java.vm.version" value="1.4.2-50"></property>
<property name="servlet.jar" value="./lib2/servlet.jar"></ property>
<property name="java.util.prefs.PreferencesFactory"
value="java.util.prefs.MacOSXPreferencesFactory"></property>
<property name="xml-apis.jar" value="./lib/xml-apis.jar"></
property>
<property name="java.awt.printerjob"
value="apple.awt.CPrinterJob"></property>
<property name="sun.io.unicode.encoding" value="UnicodeBig"></
property>
<property name="src15.dir" value="./src15"></property>
<property name="awt.toolkit" value="apple.awt.CToolkit"></ property>
<property name="packages" value="nu.xom.*"></property>
<property name="build.dest" value="./build/classes"></property>
<property name="user.home" value="/Users/hoschek"></property>
<property name="java.specification.vendor" value="Sun
Microsystems Inc."></property>
<property name="java.library.path" value=".:/Library/Java/
Extensions:/System/Library/Java/Extensions:/usr/lib/java"></property>
<property name="name" value="xom"></property>
<property name="java.vendor.url" value="http://apple.com/"></
property>
<property name="java.vm.vendor" value=""Apple Computer,
Inc.""></property>
<property name="gopherProxySet" value="false"></property>
<property name="fat.src" value="./fatsrc"></property>
<property name="java.runtime.name" value="Java(TM) 2 Runtime
Environment, Standard Edition"></property>
<property name="java.class.path" value="/Users/hoschek/unix/
devel/xom-1.1/lib/xml-apis.jar:/Users/hoschek/unix/devel/xom-1.1/lib/
xercesImpl.jar:/Users/hoschek/unix/devel/xom-1.1/build/classes:/Users/
hoschek/unix/devel/xom-1.1/build/jaxen-classes:/Users/hoschek/unix/
devel/xom-1.1/lib/xalan.jar:/Users/hoschek/unix/devel/xom-1.1/lib/
junit.jar:/Users/hoschek/unix/java/share/misc/junit-3.8.1/junit.jar:/
Users/hoschek/unix/java/share/apache/ant-1.5.4/lib/ant.jar:/Users/
hoschek/unix/java/share/apache/ant-1.5.4/lib/optional.jar"></property>
<property name="year" value="2005"></property>
<property name="ant.version" value="Apache Ant version 1.5.4
compiled on August 12 2003"></property>
<property name="TSTAMP" value="1342"></property>
<property name="java.vm.specification.name" value="Java Virtual
Machine Specification"></property>
<property name="java.vm.specification.version" value="1.0"></
property>
<property name="junit.jar" value="./lib/junit.jar"></property>
<property name="sun.os.patch.level" value="unknown"></property>
<property name="sun.cpu.endian" value="big"></property>
<property name="tagsoup.installed" value="true"></property>
<property name="java.io.tmpdir" value="/tmp"></property>
<property name="java.vendor.url.bug" value="http://
developer.apple.com/java/"></property>
<property name="Name" value="XOM"></property>
<property name="excludes" value=".DS_Store, **/.DS_Store, **/
*.zip, **/.thumbnails/**, clover_html/**, clover/**, xom.gif,
jester.txt, jesterbuild.xml, data/XInclude-Test-Suite/**, data/
xmlconf/**, data/canonical/xmlconf/**, data/oasis*/**, **/testresults/
**, **/pantry/**, **/workspace/**, **/junit*properties, **/.nautilus-
metafile.xml, website/**, **/.project, **/.classpath, build/**, dist/
**, .settings/**, lib2/**, xom.fb"></property>
<property name="java.awt.graphicsenv"
value="apple.awt.CGraphicsEnvironment"></property>
<property name="os.arch" value="ppc"></property>
<property name="java.ext.dirs" value="/Library/Java/Extensions:/
System/Library/Java/Extensions:/System/Library/Frameworks/
JavaVM.framework/Versions/1.4.2/Home/lib/ext"></property>
<property name="saxon7.jar" value="./lib2/saxon-aelfred.jar"></
property>
<property name="user.dir" value="/Users/hoschek/unix/devel/
xom-1.1"></property>
<property name="mrj.version" value="215"></property>
<property name="xom-core" value="./build/classes"></property>
<property name="xom.jar" value="./build/xom-1.1b3-
SNAPSHOT.jar"></property>
<property name="line.separator" value="
"></property>
<property name="java.vm.name" value="Java HotSpot(TM) Client
VM"></property>
<property name="tagsoup.jar" value="./lib2/tagsoup-1.0rc1.jar"></
property>
<property name="deprecation" value="off"></property>
<property name="basedir" value="/Users/hoschek/unix/devel/
xom-1.1"></property>
<property name="ant.java.version" value="1.4"></property>
<property name="file.encoding" value="MacRoman"></property>
<property name="gnujaxp.jar" value="./lib2/gnujaxp.jar"></ property>
<property name="testreports.dir" value="./testreports"></ property>
<property name="dom4j.jar" value="./lib2/dom4j-1.5.1.jar"></
property>
<property name="lib2.dir" value="./lib2"></property>
<property name="java.specification.version" value="1.4"></ property>
<property name="src.dir" value="./src"></property>
<property name="jaxen.dir" value="./build/jaxen-classes"></
property>
<property name="xslt.jar" value="./lib/xalan.jar"></property>
<property name="testoutput.dir" value="./testresults"></property>
</properties>
<testcase name="testDocBase" time="0.065"></testcase>
<testcase name="testUnsetBase" time="0.0040"></testcase>
<testcase name="testInheritBaseFromDocument" time="0.0010"></
testcase>
<testcase name="testAllowEmptyBase" time="0.0"></testcase>
<testcase name="testIPv6Base" time="0.0010"></testcase>
<testcase name="testBaseWithNonASCIICharacter" time="0.0010"></
testcase>
<testcase name="testDocumentBaseWithNonASCIICharacter"
time="0.0"></testcase>
<testcase name="testUppercaseBase" time="0.0"></testcase>
<testcase name="testASCIILettersWithXMLBaseAttribute"
time="0.0020"></testcase>
<testcase name="testXMLBaseWithParameters" time="0.0"></testcase>
<testcase name="testXMLBaseWithCommaParameter" time="0.0"></ testcase>
<testcase name="testXMLBaseWithDollarSign" time="0.0"></testcase>
<testcase name="testFragmentIDWithXMLBaseAttribute"
time="0.0030"></testcase>
<testcase name="testQueryString" time="0.0010"></testcase>
<testcase name="testUnreserved" time="0.0"></testcase>
<testcase name="testDelims" time="0.0080"></testcase>
<testcase name="testUnwise" time="0.0010"></testcase>
<testcase name="testBaseWithUnusualParts" time="0.0"></testcase>
<testcase name="testBaseWithEscapedParts" time="0.0"></testcase>
<testcase name="testXMLBaseWithPlus" time="0.0060"></testcase>
<testcase name="testXMLBaseWithUserInfoWithXMLBaseAttribute"
time="0.0070"></testcase>
<testcase
name="testElementWithEmptyXMLBaseAttributeHasSameBaseURIAsDocument"
time="0.0"></testcase>
<testcase
name="testBaseURIOfElementWithEmptyXMLBaseAttributeIsEmptyStringIfTher es
NoActualBaseURI" time="0.0040"></testcase>
<testcase name="testXMLBaseWithUnreservedCharacters"
time="0.0010"></testcase>
<testcase name="testXMLBaseWithNonASCIICharacters" time="0.0050"></
testcase>
<testcase name="testBaseWithNonASCIICharacters" time="0.0"></
testcase>
<testcase name="testBadIPv6Base" time="0.0010"></testcase>
<testcase name="testAllowEmptyXMLBase" time="0.0"></testcase>
<testcase name="testFailures" time="0.0010"></testcase>
<testcase name="testXMLBaseFailures" time="0.0010"></testcase>
<testcase name="testSyntacticallyIllegalXMLBaseValuesAreIgnored"
time="0.0"></testcase>
<testcase name="testValuesLegalInXMLBaseButNotInAURI" time="0.0"></
testcase>
<testcase name="testXMLBaseValuesCanContainPercentEscapes"
time="0.0010"></testcase>
<testcase name="testInheritBaseFromDoc" time="0.0"></testcase>
<testcase name="testLoadElementFromDifferentEntity" time="0.0"></
testcase>
<testcase name="testLeafNode" time="0.0"></testcase>
<testcase name="testLoadElementFromSameEntity" time="0.0010"></
testcase>
<testcase name="testXMLBaseAbsolute" time="0.0"></testcase>
<testcase name="testXMLBaseRelative" time="0.0010"></testcase>
<testcase name="testXMLBaseRelativeWithNoRoot" time="0.014"></
testcase>
<testcase name="testRelativeBaseURIsNotAllowed" time="0.0010"></
testcase>
<testcase name="testRelativeURIResolutionAgainstARedirectedBase"
time="1.283"></testcase>
<testcase name="testParentlessNodesHaveEmptyBaseURIs" time="0.0"></
testcase>
<testcase name="testElementsFromDifferentActualBases"
time="0.0010"></testcase>
<testcase name="testBadURIInElementsFromDifferentActualBases"
time="0.0"></testcase>
<testcase name="testBadURIInElementsFromSameActualBases"
time="0.0010"></testcase>
<testcase name="testBadURIInBaseAttributeWithParent" time="0.0"></
testcase>
<testcase name="testHierarchicalURIsWithoutProtocolHandlers"
time="0.014"></testcase>
<testcase name="testOpaqueURIs" time="0.0060"></testcase>
<testcase name="testURIStartsWithColon" time="0.012">
<error message="String index out of range: 0"
type="java.lang.StringIndexOutOfBoundsException">java.lang.StringIndex Ou
tOfBoundsException: String index out of range: 0
at java.lang.String.charAt(String.java:444)
at nu.xom.Verifier.checkScheme(Verifier.java:648)
at nu.xom.Verifier.checkURIReference(Verifier.java:233)
at nu.xom.Element.legalURI(Element.java:1514)
at nu.xom.Element.getBaseURI(Element.java:1476)
at nu.xom.tests.BaseURITest.testURIStartsWithColon
(BaseURITest.java:827)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
</error>
</testcase>
<testcase name="testURIStartsWithNumber" time="0.0"></testcase>
<testcase name="testURISchemeContainsComma" time="0.0010"></ testcase>
<testcase name="testXMLBaseUsedToResolveHref" time="0.0070"></
testcase>
<testcase name="testBuildElementFromSeveralEntities"
time="0.0040"></testcase>
<testcase name="testReplacedRootRetainsBaseURI" time="0.0010"></
testcase>
<testcase name="testDetachedElementRetainsBaseURI" time="0.0"></
testcase>
<testcase name="testCopiedElementRetainsBaseURI" time="0.0"></
testcase>
<testcase name="testElementRemovedByIndexRetainsBaseURI"
time="0.0010"></testcase>
<testcase name="testElementRemovedByReferenceRetainsBaseURI"
time="0.0010"></testcase>
<testcase name="testRemovedChildrenRetainBaseURI" time="0.0020"></
testcase>
<testcase
name="testXMLBaseAttributesAreOnlyUsedIfTheyreInTheSameEntity"
time="0.0"></testcase>
<testcase
name="testXMLBaseAttributesInTheSameEntityOverrideActualBaseURI"
time="0.0"></testcase>
<testcase name="testRelativeBaseURIResolution" time="0.0010"></
testcase>
<testcase name="testRelativeBaseURIResolutionWithNumbers"
time="0.0"></testcase>
<testcase name="testRelativeBaseURIStartsWithDotSlash"
time="0.0"></testcase>
<testcase name="testRelativeBaseURIIsDot" time="0.0010"></testcase>
<testcase name="testRelativeBaseURIIsDotDot" time="0.0010"></
testcase>
<testcase name="testRelativeBaseURIStartsWithDotDotSlash"
time="0.0"></testcase>
<testcase name="testAbsoluteBaseURIEndsWithDotDotSlash"
time="0.0"></testcase>
<testcase name="testAbsoluteBaseURIEndsWithDotDotSlashDotDot"
time="0.0010"></testcase>
<testcase name="testAbsoluteBaseURIEndsWithDotDot" time="0.0020">
<failure message="expected:<......> but
was:<...limit/...>"
type="junit.framework.ComparisonFailure">junit.framework.ComparisonFai lu
re: expected:<......> but was:<...limit/...>
at nu.xom.tests.BaseURITest.testAbsoluteBaseURIEndsWithDotDot
(BaseURITest.java:1140)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
</failure>
</testcase>
<testcase name="testRFC2396NormalExamples" time="0.0020"></ testcase>
<testcase name="testRFC2396AbnormalExamples" time="0.0020"></
testcase>
<system-out><![CDATA[]]></system-out>
<system-err><![CDATA[]]></system-err>
</testsuite>
_______________________________________________
XOM-interest mailing list
XOM-interest AT lists.ibiblio.org
http://lists.ibiblio.org/mailman/listinfo/xom-interest
-
[XOM-interest] Small glitches,
Wolfgang Hoschek, 07/27/2005
-
Re: [XOM-interest] Small glitches,
Wolfgang Hoschek, 07/27/2005
-
Re: [XOM-interest] Small glitches,
Elliotte Harold, 07/27/2005
-
Re: [XOM-interest] Small glitches,
Wolfgang Hoschek, 07/27/2005
-
Re: [XOM-interest] Small glitches,
Wolfgang Hoschek, 07/27/2005
- Re: [XOM-interest] Small glitches, Elliotte Harold, 07/27/2005
-
Re: [XOM-interest] Small glitches,
Elliotte Harold, 07/27/2005
- Re: [XOM-interest] Small glitches, Wolfgang Hoschek, 07/27/2005
-
Re: [XOM-interest] Small glitches,
Wolfgang Hoschek, 07/27/2005
-
Re: [XOM-interest] Small glitches,
Wolfgang Hoschek, 07/27/2005
-
Re: [XOM-interest] Small glitches,
Elliotte Harold, 07/27/2005
-
Re: [XOM-interest] Small glitches,
Wolfgang Hoschek, 07/27/2005
Archive powered by MHonArc 2.6.24.