/** * Get the properties for xsl:output, including character maps. The object returned will * be a clone of the internal values, and thus it can be mutated * without affecting the value held in this {@code PreparedStylesheet}. * <p>This method gets the output properties for the unnamed output * format in the stylesheet.</p> * * @return An OutputProperties object reflecting the output properties defined * for the default (unnamed) output format in the stylesheet. It may * be mutated and supplied to the setOutputProperties() method of the * Transformer, without affecting other transformations that use the * same stylesheet. * @see javax.xml.transform.Transformer#setOutputProperties */ public SerializationProperties getDeclaredSerializationProperties() { SerializationProperties details = getPrimarySerializationProperties(); return new SerializationProperties(new Properties(details.getProperties()), getCharacterMapIndex()); }
/** * Get the properties for xsl:output, including character maps. The object returned will * be a clone of the internal values, and thus it can be mutated * without affecting the value held in this {@code PreparedStylesheet}. * <p>This method gets the output properties for the unnamed output * format in the stylesheet.</p> * * @return An OutputProperties object reflecting the output properties defined * for the default (unnamed) output format in the stylesheet. It may * be mutated and supplied to the setOutputProperties() method of the * Transformer, without affecting other transformations that use the * same stylesheet. * @see javax.xml.transform.Transformer#setOutputProperties */ public SerializationProperties getDeclaredSerializationProperties() { SerializationProperties details = getPrimarySerializationProperties(); return new SerializationProperties(new Properties(details.getProperties()), getCharacterMapIndex()); }
pss.getCharacterMapIndex().putCharacterMap(cm.getName(), cm);
pss.getCharacterMapIndex().putCharacterMap(cm.getName(), cm);