return fixupXPath2(xpath, offset, end);
Field.XPath fXpath = new Field.XPath(fText, fSymbolTable, schemaDoc.fNamespaceSupport); Field field = new Field(fXpath, ic, getXPathDefaultNamespace(attrValues, schemaDoc)); ic.addField(field);
/** Constructs a field XPath expression. */ public XPath(String xpath, SymbolTable symbolTable, NamespaceContext context) throws XPathException { super(fixupXPath(xpath), symbolTable, context); // verify that only one attribute is selected per branch for (int i=0;i<fLocationPaths.length;i++) { for(int j=0; j<fLocationPaths[i].steps.length; j++) { org.apache.xerces.impl.xpath.XPath.Axis axis = fLocationPaths[i].steps[j].axis; if (axis.type == XPath.Axis.ATTRIBUTE && (j < fLocationPaths[i].steps.length-1)) { throw new XPathException("c-fields-xpaths"); } } } } // <init>(String,SymbolTable,NamespacesContext)
/** Returns a string representation of this object. */ public String toString() { return fXPath.toString(); } // toString():String