Permalink
Browse files

Spelling fixes

  • Loading branch information...
scop authored and sideshowbarker committed Jul 28, 2017
1 parent 3244959 commit 43ff278430bf000f2f1f159accf9901f083a9830
View
@@ -807,7 +807,7 @@ and can be used to diagnose the error.</p>
<p>It some scenarios it may be sufficient to produce a single error
message for an invalid document, and to cease validation as soon as it
is determined that the document is invalid. In other scenarios, it
may desirable to attempt to recover from the error and continute
may desirable to attempt to recover from the error and continue
validation so as to find subsequent errors in the document. Jing
recovers from validation errors as follows:</p>
@@ -70,7 +70,7 @@ combine them or choose on of the target namespaces to be the main one
- same file, same target namespace: files are related by include; try
to use redefine; can combine two definitions from include parent and
include descendant, not two definitions from two include children; in
this case, rename defines in childen and add define to parent.
this case, rename defines in children and add define to parent.
Deal with annotations (provide special support for xs:key/xs:keyRef/xs:unique).
@@ -26,7 +26,7 @@
* When the given parameter is inappropriate for some reason.
* The callee is responsible to recover from this error.
* That is, the object should behave as if no such error
* was occured.
* was occurred.
*/
void addParameter( String name, String strValue, ValidationContext context )
throws DatatypeException;
@@ -29,7 +29,7 @@ public DatatypeException() {
public static final int UNKNOWN = -1;
/**
* Gets the index of the content where the error occured.
* Gets the index of the content where the error occurred.
* UNKNOWN can be returned to indicate that no index information
* is available.
*/
@@ -9,14 +9,14 @@
private Constants() { }
/**
* URI representating the Relax NG Compact Syntax schema language.
* URI representing the Relax NG Compact Syntax schema language.
* @see javax.xml.validation.SchemaFactory#newInstance(String)
*/
static public final String RELAXNG_COMPACT_URI
= "http://www.iana.org/assignments/media-types/application/relax-ng-compact-syntax";
/**
* URI representating the Relax NG XML Syntax schema language.
* URI representing the Relax NG XML Syntax schema language.
* Identical to XMLConstants#RELAXNG_NS_URI
* @see javax.xml.validation.SchemaFactory#newInstance(String)
*/
@@ -14,7 +14,7 @@
/**
* Sets the DTD handler that receives the validation result.
* @param dtdHandler the DTD hanlder
* @param dtdHandler the DTD handler
*/
abstract public void setDTDHandler(DTDHandler dtdHandler);
@@ -4,7 +4,7 @@
/**
* Action set for attributes.
* Consistes of two flags (attach, reject) and a list of schemas.
* Consists of two flags (attach, reject) and a list of schemas.
*/
class AttributeActionSet {
/**
@@ -78,7 +78,7 @@ boolean put(boolean isRoot, Vector names, Object value) {
* any of the stored paths.
* @param context The list of local names that represent a section context
* (path from root local element names from the same namespace).
* @param len The lenght we should take from the list.
* @param len The length we should take from the list.
* @return A mode or null.
*/
private Object get(Vector context, int len) {
@@ -162,7 +162,7 @@ private ActionSet getElementActionsExplicit(String ns) {
// iterate namespace specifications.
for (Enumeration e = nssElementMap.keys(); e.hasMoreElements() && actions==null;) {
NamespaceSpecification nssI = (NamespaceSpecification)e.nextElement();
// If a namespace specification convers the current namespace URI then we get those actions.
// If a namespace specification covers the current namespace URI then we get those actions.
if (nssI.covers(ns)) {
actions = (ActionSet)nssElementMap.get(nssI);
}
@@ -234,7 +234,7 @@ private AttributeActionSet getAttributeActionsExplicit(String ns) {
// iterate namespace specifications.
for (Enumeration e = nssAttributeMap.keys(); e.hasMoreElements() && actions==null;) {
NamespaceSpecification nssI = (NamespaceSpecification)e.nextElement();
// If a namespace specification convers the current namespace URI then we get those actions.
// If a namespace specification covers the current namespace URI then we get those actions.
if (nssI.covers(ns)) {
actions = (AttributeActionSet)nssAttributeMap.get(nssI);
}
@@ -6,7 +6,7 @@
* Stores information about a namespace specification.
* A namespace is specified with a namespace pattern and a wildcard.
* The wildcard can be present in multiple places in the namespace
* specification and each occurence of the wildcard can be replaced with
* specification and each occurrence of the wildcard can be replaced with
* an arbitrary sequence of characters.
*
* @author george
@@ -23,7 +23,7 @@
static final String ANY_NAMESPACE = "##any";
/**
* The namespace pattern, may contain one or more occurances of the wildcard.
* The namespace pattern, may contain one or more occurrences of the wildcard.
*/
String ns="\0";
@@ -1228,7 +1228,7 @@ public Validator createValidator(PropertyMap properties) {
*
* @param attributes The attributes.
* @param localName The attribute name.
* @return The mode refered by the licanName attribute.
* @return The mode referred by the licanName attribute.
*/
private Mode getModeAttribute(Attributes attributes, String localName) {
return lookupCreateMode(attributes.getValue("", localName));
@@ -2,7 +2,7 @@
/**
* A RELAX NG pattern that can be matched against an XML document.
* A MatchablePattern object is safe for concurrent accesss
* A MatchablePattern object is safe for concurrent access
* from multiple threads.
*/
public interface MatchablePattern {

0 comments on commit 43ff278

Please sign in to comment.