Compare commits
No commits in common. 'c9' and 'i8c-stream-10.6' have entirely different histories.
c9
...
i8c-stream
@ -1 +1 @@
|
||||
SOURCES/Xerces-J-src.2.12.1.tar.gz
|
||||
SOURCES/Xerces-J-src.2.11.0.tar.gz
|
||||
|
@ -1 +1 @@
|
||||
b5d934e54b8864f09c683ca8666147c101faeb69 SOURCES/Xerces-J-src.2.12.1.tar.gz
|
||||
c57f0251ce9246c6026aa9f92241f37108f7141f SOURCES/Xerces-J-src.2.11.0.tar.gz
|
||||
|
@ -0,0 +1,131 @@
|
||||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright ownership.
|
||||
* The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
* (the "License"); you may not use this file except in compliance with
|
||||
* the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.apache.xerces.util;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
import com.sun.javadoc.Tag;
|
||||
import com.sun.tools.doclets.Taglet;
|
||||
|
||||
/**
|
||||
* This class provides support for a 'xerces.experimental' tag
|
||||
* in javadoc comments. The tag creates a warning in the generated
|
||||
* html for users.
|
||||
*
|
||||
* @author Ankit Pasricha, IBM
|
||||
*/
|
||||
public class ExperimentalTaglet implements Taglet {
|
||||
|
||||
private static final String NAME = "xerces.experimental";
|
||||
private static final String HEADER = "EXPERIMENTAL:";
|
||||
/* (non-Javadoc)
|
||||
* @see com.sun.tools.doclets.Taglet#inConstructor()
|
||||
*/
|
||||
public boolean inConstructor() {
|
||||
return false;
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see com.sun.tools.doclets.Taglet#inField()
|
||||
*/
|
||||
public boolean inField() {
|
||||
return false;
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see com.sun.tools.doclets.Taglet#inMethod()
|
||||
*/
|
||||
public boolean inMethod() {
|
||||
return true;
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see com.sun.tools.doclets.Taglet#inOverview()
|
||||
*/
|
||||
public boolean inOverview() {
|
||||
return true;
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see com.sun.tools.doclets.Taglet#inPackage()
|
||||
*/
|
||||
public boolean inPackage() {
|
||||
return false;
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see com.sun.tools.doclets.Taglet#inType()
|
||||
*/
|
||||
public boolean inType() {
|
||||
return true;
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see com.sun.tools.doclets.Taglet#isInlineTag()
|
||||
*/
|
||||
public boolean isInlineTag() {
|
||||
return false;
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see com.sun.tools.doclets.Taglet#getName()
|
||||
*/
|
||||
public String getName() {
|
||||
return NAME;
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see com.sun.tools.doclets.Taglet#toString(com.sun.javadoc.Tag)
|
||||
*/
|
||||
public String toString(Tag arg0) {
|
||||
return "<DT><H1 style=\"font-size:150%\">" + HEADER + "</H1><DD>"
|
||||
+ "This class should not be considered stable. It is likely to be altered or replaced in the future.<br/>"
|
||||
+ "<I>" + arg0.text() + "</I></DD>\n";
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see com.sun.tools.doclets.Taglet#toString(com.sun.javadoc.Tag[])
|
||||
*/
|
||||
public String toString(Tag[] tags) {
|
||||
if (tags.length == 0) {
|
||||
return null;
|
||||
}
|
||||
String result = "\n<DT><H1 style=\"font-size:150%\">" + HEADER + "</H1><DD>";
|
||||
result += "This class should not be considered stable. It is likely to be altered or replaced in the future.";
|
||||
result += "<I>";
|
||||
for (int i = 0; i < tags.length; i++) {
|
||||
result += "<br/>";
|
||||
result += tags[i].text();
|
||||
}
|
||||
return result + "</I></DD>\n";
|
||||
}
|
||||
|
||||
/**
|
||||
* Register this Taglet.
|
||||
* @param tagletMap the map to register this tag to.
|
||||
*/
|
||||
public static void register(Map tagletMap) {
|
||||
ExperimentalTaglet tag = new ExperimentalTaglet();
|
||||
Taglet t = (Taglet) tagletMap.get(tag.getName());
|
||||
if (t != null) {
|
||||
tagletMap.remove(tag.getName());
|
||||
}
|
||||
tagletMap.put(tag.getName(), tag);
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,131 @@
|
||||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright ownership.
|
||||
* The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
* (the "License"); you may not use this file except in compliance with
|
||||
* the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.apache.xerces.util;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
import com.sun.javadoc.Tag;
|
||||
import com.sun.tools.doclets.Taglet;
|
||||
|
||||
/**
|
||||
* This class provides support for a 'xerces.internal' tag
|
||||
* in javadoc comments. The tag creates a warning in the generated
|
||||
* html for users.
|
||||
*
|
||||
* @author Ankit Pasricha, IBM
|
||||
*/
|
||||
public class InternalTaglet implements Taglet {
|
||||
|
||||
private static final String NAME = "xerces.internal";
|
||||
private static final String HEADER = "INTERNAL:";
|
||||
/* (non-Javadoc)
|
||||
* @see com.sun.tools.doclets.Taglet#inConstructor()
|
||||
*/
|
||||
public boolean inConstructor() {
|
||||
return false;
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see com.sun.tools.doclets.Taglet#inField()
|
||||
*/
|
||||
public boolean inField() {
|
||||
return false;
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see com.sun.tools.doclets.Taglet#inMethod()
|
||||
*/
|
||||
public boolean inMethod() {
|
||||
return true;
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see com.sun.tools.doclets.Taglet#inOverview()
|
||||
*/
|
||||
public boolean inOverview() {
|
||||
return true;
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see com.sun.tools.doclets.Taglet#inPackage()
|
||||
*/
|
||||
public boolean inPackage() {
|
||||
return false;
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see com.sun.tools.doclets.Taglet#inType()
|
||||
*/
|
||||
public boolean inType() {
|
||||
return true;
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see com.sun.tools.doclets.Taglet#isInlineTag()
|
||||
*/
|
||||
public boolean isInlineTag() {
|
||||
return false;
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see com.sun.tools.doclets.Taglet#getName()
|
||||
*/
|
||||
public String getName() {
|
||||
return NAME;
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see com.sun.tools.doclets.Taglet#toString(com.sun.javadoc.Tag)
|
||||
*/
|
||||
public String toString(Tag arg0) {
|
||||
return "<DT><H1 style=\"font-size:110%\">" + HEADER + "</H1><DD>"
|
||||
+ "Usage of this class is not supported. It may be altered or removed at any time.<br/>"
|
||||
+ "<I>" + arg0.text() + "</I></DD>\n";
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see com.sun.tools.doclets.Taglet#toString(com.sun.javadoc.Tag[])
|
||||
*/
|
||||
public String toString(Tag[] tags) {
|
||||
if (tags.length == 0) {
|
||||
return null;
|
||||
}
|
||||
String result = "\n<DT><H1 style=\"font-size:110%\">" + HEADER + "</H1><DD>";
|
||||
result += "Usage of this class is not supported. It may be altered or removed at any time.";
|
||||
result += "<I>";
|
||||
for (int i = 0; i < tags.length; i++) {
|
||||
result += "<br/>";
|
||||
result += tags[i].text();
|
||||
}
|
||||
return result + "</I></DD>\n";
|
||||
}
|
||||
|
||||
/**
|
||||
* Register this Taglet.
|
||||
* @param tagletMap the map to register this tag to.
|
||||
*/
|
||||
public static void register(Map tagletMap) {
|
||||
InternalTaglet tag = new InternalTaglet();
|
||||
Taglet t = (Taglet) tagletMap.get(tag.getName());
|
||||
if (t != null) {
|
||||
tagletMap.remove(tag.getName());
|
||||
}
|
||||
tagletMap.put(tag.getName(), tag);
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,47 @@
|
||||
--- src/org/apache/xerces/impl/XMLScanner.java 2013/07/03 18:25:06 1499505
|
||||
+++ src/org/apache/xerces/impl/XMLScanner.java 2013/07/03 18:29:43 1499506
|
||||
@@ -542,7 +542,7 @@
|
||||
// document is until we scan the encoding declaration
|
||||
// you cannot reliably read any characters outside
|
||||
// of the ASCII range here. -- mrglavas
|
||||
- String name = fEntityScanner.scanName();
|
||||
+ String name = scanPseudoAttributeName();
|
||||
XMLEntityManager.print(fEntityManager.getCurrentEntity());
|
||||
if (name == null) {
|
||||
reportFatalError("PseudoAttrNameExpected", null);
|
||||
@@ -599,6 +599,35 @@
|
||||
} // scanPseudoAttribute(XMLString):String
|
||||
|
||||
/**
|
||||
+ * Scans the name of a pseudo attribute. The only legal names
|
||||
+ * in XML 1.0/1.1 documents are 'version', 'encoding' and 'standalone'.
|
||||
+ *
|
||||
+ * @return the name of the pseudo attribute or <code>null</code>
|
||||
+ * if a legal pseudo attribute name could not be scanned.
|
||||
+ */
|
||||
+ private String scanPseudoAttributeName() throws IOException, XNIException {
|
||||
+ final int ch = fEntityScanner.peekChar();
|
||||
+ switch (ch) {
|
||||
+ case 'v':
|
||||
+ if (fEntityScanner.skipString(fVersionSymbol)) {
|
||||
+ return fVersionSymbol;
|
||||
+ }
|
||||
+ break;
|
||||
+ case 'e':
|
||||
+ if (fEntityScanner.skipString(fEncodingSymbol)) {
|
||||
+ return fEncodingSymbol;
|
||||
+ }
|
||||
+ break;
|
||||
+ case 's':
|
||||
+ if (fEntityScanner.skipString(fStandaloneSymbol)) {
|
||||
+ return fStandaloneSymbol;
|
||||
+ }
|
||||
+ break;
|
||||
+ }
|
||||
+ return null;
|
||||
+ } // scanPseudoAttributeName()
|
||||
+
|
||||
+ /**
|
||||
* Scans a processing instruction.
|
||||
* <p>
|
||||
* <pre>
|
@ -0,0 +1,20 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# Xerces-J2 constants script
|
||||
# JPackage Project (http://www.jpackage.org/)
|
||||
# $Id: xerces-j2-constants.sh,v 1.3 2005/05/26 14:21:22 gbenson Exp $
|
||||
|
||||
# Source functions library
|
||||
. /usr/share/java-utils/java-functions
|
||||
|
||||
# Configuration
|
||||
MAIN_CLASS=org.apache.xerces.impl.Constants
|
||||
|
||||
# Set parameters
|
||||
set_jvm
|
||||
export CLASSPATH=$(build-classpath xerces-j2)
|
||||
set_flags $BASE_FLAGS
|
||||
set_options $BASE_OPTIONS
|
||||
|
||||
# Let's start
|
||||
run "$@"
|
File diff suppressed because one or more lines are too long
@ -1,12 +0,0 @@
|
||||
diff -up ./build.xml.fix2 ./build.xml
|
||||
--- ./build.xml.fix2 2020-06-24 14:11:03.342338406 -0400
|
||||
+++ ./build.xml 2020-06-24 14:14:03.000100028 -0400
|
||||
@@ -447,7 +447,7 @@ Authors:
|
||||
author='true' version='true'
|
||||
windowtitle='XML Standard API' doctitle='XML Standard API'
|
||||
bottom='${copyright}'
|
||||
- additionalparam='${additional.param}'
|
||||
+ additionalparam='--patch-module jdk.xml.dom=${build.src}/org/w3c/dom/html ${additional.param}'
|
||||
/>
|
||||
<mkdir dir='${build.dir}/docs/javadocs/xni'/>
|
||||
<javadoc packagenames='org.apache.xerces.xni.*'
|
@ -0,0 +1,20 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# Xerces-J2 version script
|
||||
# JPackage Project (http://www.jpackage.org/)
|
||||
# $Id: xerces-j2-version.sh,v 1.3 2005/05/26 14:21:22 gbenson Exp $
|
||||
|
||||
# Source functions library
|
||||
. /usr/share/java-utils/java-functions
|
||||
|
||||
# Configuration
|
||||
MAIN_CLASS=org.apache.xerces.impl.Version
|
||||
|
||||
# Set parameters
|
||||
set_jvm
|
||||
export CLASSPATH=$(build-classpath xerces-j2)
|
||||
set_flags $BASE_FLAGS
|
||||
set_options $BASE_OPTIONS
|
||||
|
||||
# Let's start
|
||||
run "$@"
|
Loading…
Reference in new issue