Package com.xmlcalabash.util

Examples of com.xmlcalabash.util.TreeWriter.addAttribute()


        tree.startContent();

        for (String name : properties.stringPropertyNames()) {
            String value = properties.getProperty(name);
            tree.addStartElement(c_param);
            tree.addAttribute(_name, name);
            tree.addAttribute(_namespace, "");
            tree.addAttribute(_value, value);
            tree.startContent();
            tree.addEndElement();
        }
View Full Code Here


        for (String name : properties.stringPropertyNames()) {
            String value = properties.getProperty(name);
            tree.addStartElement(c_param);
            tree.addAttribute(_name, name);
            tree.addAttribute(_namespace, "");
            tree.addAttribute(_value, value);
            tree.startContent();
            tree.addEndElement();
        }
View Full Code Here

        for (String name : properties.stringPropertyNames()) {
            String value = properties.getProperty(name);
            tree.addStartElement(c_param);
            tree.addAttribute(_name, name);
            tree.addAttribute(_namespace, "");
            tree.addAttribute(_value, value);
            tree.startContent();
            tree.addEndElement();
        }

        tree.addEndElement();
View Full Code Here

                } catch (XProcException e) {
                    throw XProcException.stepError(61);
                }

                tree.addStartElement(c_param);
                tree.addAttribute(_name, name);
                tree.addAttribute(_value, decode(val));
                tree.startContent();
                tree.addEndElement();
            } else {
                throw new XProcException(step.getNode(), "Badly formatted parameters");
View Full Code Here

                    throw XProcException.stepError(61);
                }

                tree.addStartElement(c_param);
                tree.addAttribute(_name, name);
                tree.addAttribute(_value, decode(val));
                tree.startContent();
                tree.addEndElement();
            } else {
                throw new XProcException(step.getNode(), "Badly formatted parameters");
            }
View Full Code Here

                TreeWriter tree = new TreeWriter(runtime);
                tree.startDocument(doc.getBaseURI());

                if (detailed) {
                    tree.addStartElement(cx_document);
                    tree.addAttribute(_port, port);
                    tree.startContent();
                    tree.addSubtree(doc);
                    tree.addEndElement();
                } else {
                    tree.addSubtree(doc);
View Full Code Here

        treeWriter.startContent();

        for (QName param : parameters.keySet()) {
            String value = parameters.get(param).getStringValue().getStringValue();
            treeWriter.addStartElement(c_param);
            treeWriter.addAttribute(_name, param.getLocalName());
            if (param.getNamespaceURI() != null && !"".equals(param.getNamespaceURI())) {
                treeWriter.addAttribute(_namespace, param.getNamespaceURI());
            } else {
                // I'm not really sure about this...
                treeWriter.addAttribute(_namespace, "");
View Full Code Here

        for (QName param : parameters.keySet()) {
            String value = parameters.get(param).getStringValue().getStringValue();
            treeWriter.addStartElement(c_param);
            treeWriter.addAttribute(_name, param.getLocalName());
            if (param.getNamespaceURI() != null && !"".equals(param.getNamespaceURI())) {
                treeWriter.addAttribute(_namespace, param.getNamespaceURI());
            } else {
                // I'm not really sure about this...
                treeWriter.addAttribute(_namespace, "");
            }
View Full Code Here

            treeWriter.addAttribute(_name, param.getLocalName());
            if (param.getNamespaceURI() != null && !"".equals(param.getNamespaceURI())) {
                treeWriter.addAttribute(_namespace, param.getNamespaceURI());
            } else {
                // I'm not really sure about this...
                treeWriter.addAttribute(_namespace, "");
            }

            if (runtime.getAllowGeneralExpressions()) {
                XdmValue xdmvalue = parameters.get(param).getValue();
                XdmAtomicValue atom = null;
View Full Code Here

                        atom = (XdmAtomicValue) item;
                    }
                }

                if (atom != null && xdmvalue.size() == 1) {
                    treeWriter.addAttribute(_value, value);
                    treeWriter.startContent();
                } else {
                    treeWriter.startContent();
                    XdmSequenceIterator iter = xdmvalue.iterator();
                    while (iter.hasNext()) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.