/** * Create a serializer initialised to use the default output parameters defined in the stylesheet. * These serialization parameters can be overridden by use of * {@link Serializer#setOutputProperty(Serializer.Property, String)}. * * @param file the output file to which the serializer will write its output. As well as initializing * the serializer to write to this output file, this method sets the base output URI of this * Xslt30Transformer to be the URI of this file. * @since 9.7.0.1 */ public Serializer newSerializer(File file) { Serializer serializer = processor.newSerializer(file); serializer.setOutputProperties(controller.getExecutable().getPrimarySerializationProperties()); setBaseOutputURI(file.toURI().toString()); return serializer; }
/** * Create a serializer initialised to use the default output parameters defined in the stylesheet. * These serialization parameters can be overridden by use of * {@link Serializer#setOutputProperty(Serializer.Property, String)}. * * @since 9.7.0.1 */ public Serializer newSerializer() { Serializer serializer = processor.newSerializer(); serializer.setOutputProperties(controller.getExecutable().getPrimarySerializationProperties()); return serializer; }
/** * Create a serializer initialised to use the default output parameters defined in the stylesheet. * These serialization parameters can be overridden by use of * {@link Serializer#setOutputProperty(Serializer.Property, String)}. * * @since 9.7.0.1 */ public Serializer newSerializer() { Serializer serializer = processor.newSerializer(); serializer.setOutputProperties(controller.getExecutable().getPrimarySerializationProperties()); return serializer; }
/** * Create a serializer initialised to use the default output parameters defined in the stylesheet. * These serialization parameters can be overridden by use of * {@link Serializer#setOutputProperty(Serializer.Property, String)}. * * @param file the output file to which the serializer will write its output. As well as initializing * the serializer to write to this output file, this method sets the base output URI of this * Xslt30Transformer to be the URI of this file. * @since 9.7.0.1 */ public Serializer newSerializer(File file) { Serializer serializer = processor.newSerializer(file); serializer.setOutputProperties(controller.getExecutable().getPrimarySerializationProperties()); setBaseOutputURI(file.toURI().toString()); return serializer; }
/** * Set output properties, from an {@link SerializationProperties} object. The keys in the contained * {@code Properties} object are QNames in Clark format, that is "{uri}local"; any QNames * within the values must also be in this format. * <p>The values supplied are typically those specified in the stylesheet or query. In the case of XSLT, * they are typically the properties associated with unnamed xsl:output declarations.</p> * * @param suppliedProperties the output properties to be used. These overwrite any properties * that have been individually specified using * {@link #setOutputProperty(Property, String)} setOutputProperty} * @since 9.9 */ public void setOutputProperties(SerializationProperties suppliedProperties) { setOutputProperties(suppliedProperties.getProperties()); setCharacterMap(suppliedProperties.getCharacterMapIndex()); }
/** * Set output properties, from an {@link SerializationProperties} object. The keys in the contained * {@code Properties} object are QNames in Clark format, that is "{uri}local"; any QNames * within the values must also be in this format. * <p>The values supplied are typically those specified in the stylesheet or query. In the case of XSLT, * they are typically the properties associated with unnamed xsl:output declarations.</p> * * @param suppliedProperties the output properties to be used. These overwrite any properties * that have been individually specified using * {@link #setOutputProperty(Property, String)} setOutputProperty} * @since 9.9 */ public void setOutputProperties(SerializationProperties suppliedProperties) { setOutputProperties(suppliedProperties.getProperties()); setCharacterMap(suppliedProperties.getCharacterMapIndex()); }
serializer.setOutputProperties( exp.getUnderlyingCompiledQuery().getExecutable().getPrimarySerializationProperties().getProperties()); runUpdate(exp, evaluator, serializer);
serializer.setOutputProperties( exp.getUnderlyingCompiledQuery().getExecutable().getPrimarySerializationProperties().getProperties()); runUpdate(exp, evaluator, serializer);