public void run() throws SaxonApiException { run(""); }
serializer.setOutputProperty(Serializer.Property.BYTE_ORDER_MARK, getOption(_byte_order_mark, false) ? "yes" : "no"); String list = getOption(_cdata_section_elements).getString(); serializer.setOutputProperty(Serializer.Property.DOCTYPE_PUBLIC, getOption(_doctype_public).getString()); serializer.setOutputProperty(Serializer.Property.DOCTYPE_SYSTEM, getOption(_doctype_system).getString()); serializer.setOutputProperty(Serializer.Property.ENCODING, getOption(_encoding).getString()); serializer.setOutputProperty(Serializer.Property.ESCAPE_URI_ATTRIBUTES, getOption(_escape_uri_attributes, true) ? "yes" : "no"); serializer.setOutputProperty(Serializer.Property.INCLUDE_CONTENT_TYPE, getOption(_include_content_type, true) ? "yes" : "no"); serializer.setOutputProperty(Serializer.Property.INDENT, getOption(_indent, true) ? "yes" : "no"); serializer.setOutputProperty(Serializer.Property.MEDIA_TYPE, getOption(_media_type).getString()); serializer.setOutputProperty(Serializer.Property.METHOD, getOption(_method).getString()); serializer.setOutputProperty(Serializer.Property.NORMALIZATION_FORM, getOption(_normalization_form).getString()); serializer.setOutputProperty(Serializer.Property.OMIT_XML_DECLARATION, getOption(_omit_xml_declaration, true) ? "yes" : "no"); String standalone = getOption(_standalone).getString(); if ("true".equals(standalone)) { serializer.setOutputProperty(Serializer.Property.STANDALONE, "yes"); serializer.setOutputProperty(Serializer.Property.UNDECLARE_PREFIXES, getOption(_undeclare_prefixes, true) ? "yes" : "no");
@Override public void setOption(QName name, RuntimeValue value) { super.setOption(name, value); String optName = name.getLocalName(); if ("style-ns".equalsIgnoreCase(optName)) { mStyleNsOption = value.getString(); } else { mRuntime.error(new Throwable("unknown option " + optName)); return; } }
@Override public void setParameter(String port, QName name, RuntimeValue value) { if ("sass-variables".equals(port)) if ("".equals(name.getNamespaceURI())) { sassVariables.put(name.getLocalName(), value.getString()); return; } super.setParameter(port, name, value); }
public void run() throws SaxonApiException { run(""); }
@Override public void setOption(QName name, RuntimeValue value) { if ("output-dir".equals(name.getLocalName())) { mOutputDirOpt = value.getString(); } else if ("temp-dir".equals(name.getLocalName())) { mTempDirOpt = value.getString(); } else super.setOption(name, value); }
serializer.setOutputProperty(Serializer.Property.BYTE_ORDER_MARK, getOption(_byte_order_mark, false) ? "yes" : "no"); String list = getOption(_cdata_section_elements).getString(); serializer.setOutputProperty(Serializer.Property.DOCTYPE_PUBLIC, getOption(_doctype_public).getString()); serializer.setOutputProperty(Serializer.Property.DOCTYPE_SYSTEM, getOption(_doctype_system).getString()); serializer.setOutputProperty(Serializer.Property.ENCODING, getOption(_encoding).getString()); serializer.setOutputProperty(Serializer.Property.ESCAPE_URI_ATTRIBUTES, getOption(_escape_uri_attributes, true) ? "yes" : "no"); serializer.setOutputProperty(Serializer.Property.INCLUDE_CONTENT_TYPE, getOption(_include_content_type, true) ? "yes" : "no"); serializer.setOutputProperty(Serializer.Property.INDENT, getOption(_indent, true) ? "yes" : "no"); serializer.setOutputProperty(Serializer.Property.MEDIA_TYPE, getOption(_media_type).getString()); serializer.setOutputProperty(Serializer.Property.METHOD, getOption(_method).getString()); serializer.setOutputProperty(Serializer.Property.NORMALIZATION_FORM, getOption(_normalization_form).getString()); serializer.setOutputProperty(Serializer.Property.OMIT_XML_DECLARATION, getOption(_omit_xml_declaration, true) ? "yes" : "no"); String standalone = getOption(_standalone).getString(); if ("true".equals(standalone)) { serializer.setOutputProperty(Serializer.Property.STANDALONE, "yes"); serializer.setOutputProperty(Serializer.Property.UNDECLARE_PREFIXES, getOption(_undeclare_prefixes, true) ? "yes" : "no");
public void run() throws SaxonApiException { super.run(); while (source.moreDocuments()) { XdmNode node = source.read(); } } }
public void run() throws SaxonApiException { super.run(); while (source.moreDocuments()) { XdmNode node = source.read(); } } }
@Override public void run() throws SaxonApiException { super.run(); try { String ascii = getOption(_asciimath).getString().replaceAll("^`", "").replaceAll("`$", ""); logger.info("Translating `" + ascii + "` to MathML ..."); result.write(runtime.getProcessor().newDocumentBuilder().build( new StreamSource(new StringReader(Serializer.serialize( (Element)engine.invokeFunction("main", ascii)))))); } catch (Exception e) { logger.error("px:asciimathml failed", e); throw new XProcException(step.getNode(), e); } } }
@Override public void run() throws SaxonApiException { super.run(); try { XMLCalabashHelper.transform( new CssShiftStringSetTransformer(), sourcePipe, resultPipe, runtime); } catch (Exception e) { logger.error("css:shift-string-set failed", e); throw new XProcException(step.getNode(), e); } }
@Override public void run() throws SaxonApiException { super.run(); try { XMLCalabashHelper.transform( new ShiftObflMarkerTransform(), sourcePipe, resultPipe, runtime); } catch (Exception e) { logger.error("pxi:shift-obfl-marker failed", e); throw new XProcException(step.getNode(), e); } }
public void run() throws SaxonApiException { super.run();
public void run() throws SaxonApiException { super.run(); while (source.moreDocuments()) { XdmNode doc = source.read(); logger.trace("Identity step " + step.getName() + " read " + doc.getDocumentURI()); result.write(doc); } } }
public void run() throws SaxonApiException { super.run(); while (source.moreDocuments()) { XdmNode doc = source.read(); logger.trace("Identity step " + step.getName() + " read " + doc.getDocumentURI()); result.write(doc); } } }
public void run() throws SaxonApiException { super.run();
public void run() throws SaxonApiException { super.run(); Processor proc = runtime.getProcessor(); SchemaManager manager = proc.getSchemaManager(); if (manager == null) { validateWithXerces(); } else { validateWithSaxonSA(manager); } }
public void run() throws SaxonApiException { super.run(); RuntimeValue match = getOption(_match); replace = getOption(_replace); for (String prefix : replace.getNamespaceBindings().keySet()) { rns.put(prefix, replace.getNamespaceBindings().get(prefix)); } matcher = new ProcessMatch(runtime, this); matcher.match(source.read(), match); result.write(matcher.getResult()); }
public void run() throws SaxonApiException { super.run(); RuntimeValue match = getOption(_match); replace = getOption(_replace); for (String prefix : replace.getNamespaceBindings().keySet()) { rns.put(prefix, replace.getNamespaceBindings().get(prefix)); } matcher = new ProcessMatch(runtime, this); matcher.match(source.read(), match); result.write(matcher.getResult()); }
public void run() throws SaxonApiException { super.run(); URI href = step.getNode().getBaseURI().resolve(getOption(_href).getString()); Vector<XdmNode> collection = new Vector<XdmNode> (); while (source.moreDocuments()) { collection.add(source.read()); } if (collection.size() == 0) { collection = runtime.getCollection(href); } else { runtime.setCollection(href, collection); } if (collection != null) { for (XdmNode doc : collection) { result.write(doc); } } } }