Package dk.brics.xact

Examples of dk.brics.xact.Attribute


    public void setDocumentLocator(Locator locator) {
        this.locator = locator;
    }

    private Attribute makeAttributes(Attributes as, Origin origin) {
        Attribute a = null;
        for (int i = 0; i < as.getLength(); i++) {
            String ns = as.getURI(i);
            if (ns.length() == 0) {
                ns = null;
            }
            if ((ns == null || ns.equals("http://www.w3.org/2000/xmlns/")) && as.getLocalName(i).equals("xmlns")) { // TODO: Why do we need to filter these in the results from XSL transformation? startPrefixMapping is called correctly
                continue;
            }
            a = new Attribute(ns, as.getLocalName(i), as.getValue(i), a, origin);
        }
        return a;
    }
View Full Code Here

TOP

Related Classes of dk.brics.xact.Attribute

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.