19f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson/*
29f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * Licensed to the Apache Software Foundation (ASF) under one
39f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * or more contributor license agreements. See the NOTICE file
49f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * distributed with this work for additional information
59f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * regarding copyright ownership. The ASF licenses this file
69f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * to you under the Apache License, Version 2.0 (the  "License");
79f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * you may not use this file except in compliance with the License.
89f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * You may obtain a copy of the License at
99f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson *
109f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson *     http://www.apache.org/licenses/LICENSE-2.0
119f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson *
129f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * Unless required by applicable law or agreed to in writing, software
139f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * distributed under the License is distributed on an "AS IS" BASIS,
149f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
159f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * See the License for the specific language governing permissions and
169f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * limitations under the License.
179f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson */
189f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson/*
199f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * $Id: XSLOutputAttributes.java 468654 2006-10-28 07:09:23Z minchau $
209f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson */
219f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilsonpackage org.apache.xml.serializer;
229f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson
239f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilsonimport java.util.Vector;
249f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson
259f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson/**
269f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * This interface has methods associated with the XSLT xsl:output attribues
279f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * specified in the stylesheet that effect the format of the document output.
289f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson *
299f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * In an XSLT stylesheet these attributes appear for example as:
309f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * <pre>
319f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * <xsl:output method="xml" omit-xml-declaration="no" indent="yes"/>
329f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * </pre>
339f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * The xsl:output attributes covered in this interface are:
349f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * <pre>
359f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * version
369f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * encoding
379f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * omit-xml-declarations
389f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * standalone
399f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * doctype-public
409f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * doctype-system
419f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * cdata-section-elements
429f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * indent
439f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * media-type
449f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * </pre>
459f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson *
469f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * The one attribute not covered in this interface is <code>method</code> as
479f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * this value is implicitly chosen by the serializer that is created, for
489f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * example ToXMLStream vs. ToHTMLStream or another one.
499f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson *
509f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * This interface is only used internally within Xalan.
519f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson *
529f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * @xsl.usage internal
539f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson */
549f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilsoninterface XSLOutputAttributes
559f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson{
569f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson    /**
579f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson     * Returns the previously set value of the value to be used as the public
589f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson     * identifier in the document type declaration (DTD).
599f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson     *
609f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson     *@return the public identifier to be used in the DOCTYPE declaration in the
619f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson     * output document.
629f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson     */
639f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson    public String getDoctypePublic();
649f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson    /**
659f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson     * Returns the previously set value of the value to be used
669f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson     * as the system identifier in the document type declaration (DTD).
679f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson     * @return the system identifier to be used in the DOCTYPE declaration in
689f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson     * the output document.
699f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson     *
709f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson     */
719f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson    public String getDoctypeSystem();
729f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson    /**
739f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson     * @return the character encoding to be used in the output document.
749f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson     */
759f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson    public String getEncoding();
769f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson    /**
779f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson	 * @return true if the output document should be indented to visually
789f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson	 * indicate its structure.
799f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson     */
809f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson    public boolean getIndent();
819f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson
829f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson    /**
839f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson     * @return the number of spaces to indent for each indentation level.
849f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson     */
859f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson    public int getIndentAmount();
869f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson    /**
879f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson     * @return the mediatype the media-type or MIME type associated with the
889f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson     * output document.
899f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson     */
909f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson    public String getMediaType();
919f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson    /**
929f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson     * @return true if the XML declaration is to be omitted from the output
939f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson     * document.
949f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson     */
959f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson    public boolean getOmitXMLDeclaration();
969f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson    /**
979f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson      * @return a value of "yes" if the <code>standalone</code> delaration is to
989f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson      * be included in the output document.
999f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson      */
1009f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson    public String getStandalone();
1019f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson    /**
1029f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson     * @return the version of the output format.
1039f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson     */
1049f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson    public String getVersion();
1059f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson
1069f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson
1079f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson
1089f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson
1099f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson
1109f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson
1119f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson    /**
1129f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson     * Sets the value coming from the xsl:output cdata-section-elements
1139f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson     * stylesheet property.
1149f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson     *
1159f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson     * This sets the elements whose text elements are to be output as CDATA
1169f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson     * sections.
1179f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson     * @param URI_and_localNames pairs of namespace URI and local names that
1189f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson     * identify elements whose text elements are to be output as CDATA sections.
1199f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson     * The namespace of the local element must be the given URI to match. The
1209f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson     * qName is not given because the prefix does not matter, only the namespace
1219f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson     * URI to which that prefix would map matters, so the prefix itself is not
1229f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson     * relevant in specifying which elements have their text to be output as
1239f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson     * CDATA sections.
1249f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson     */
1259f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson    public void setCdataSectionElements(Vector URI_and_localNames);
1269f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson
1279f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson    /** Set the value coming from the xsl:output doctype-public and doctype-system stylesheet properties
1289f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson     * @param system the system identifier to be used in the DOCTYPE declaration
1299f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson     * in the output document.
1309f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson     * @param pub the public identifier to be used in the DOCTYPE declaration in
1319f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson     * the output document.
1329f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson     */
1339f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson    public void setDoctype(String system, String pub);
1349f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson
1359f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson    /** Set the value coming from the xsl:output doctype-public stylesheet attribute.
1369f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson      * @param doctype the public identifier to be used in the DOCTYPE
1379f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson      * declaration in the output document.
1389f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson      */
1399f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson    public void setDoctypePublic(String doctype);
1409f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson    /** Set the value coming from the xsl:output doctype-system stylesheet attribute.
1419f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson      * @param doctype the system identifier to be used in the DOCTYPE
1429f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson      * declaration in the output document.
1439f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson      */
1449f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson    public void setDoctypeSystem(String doctype);
1459f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson    /**
1469f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson     * Sets the character encoding coming from the xsl:output encoding stylesheet attribute.
1479f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson     * @param encoding the character encoding
1489f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson     */
1499f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson    public void setEncoding(String encoding);
1509f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson    /**
1519f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson     * Sets the value coming from the xsl:output indent stylesheet
1529f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson     * attribute.
1539f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson     * @param indent true if the output document should be indented to visually
1549f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson     * indicate its structure.
1559f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson     */
1569f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson    public void setIndent(boolean indent);
1579f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson    /**
1589f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson     * Sets the value coming from the xsl:output media-type stylesheet attribute.
1599f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson     * @param mediatype the media-type or MIME type associated with the output
1609f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson     * document.
1619f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson     */
1629f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson    public void setMediaType(String mediatype);
1639f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson    /**
1649f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson     * Sets the value coming from the xsl:output omit-xml-declaration stylesheet attribute
1659f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson     * @param b true if the XML declaration is to be omitted from the output
1669f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson     * document.
1679f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson     */
1689f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson    public void setOmitXMLDeclaration(boolean b);
1699f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson    /**
1709f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson     * Sets the value coming from the xsl:output standalone stylesheet attribute.
1719f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson     * @param standalone a value of "yes" indicates that the
1729f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson     * <code>standalone</code> delaration is to be included in the output
1739f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson     * document.
1749f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson     */
1759f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson    public void setStandalone(String standalone);
1769f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson    /**
1779f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson     * Sets the value coming from the xsl:output version attribute.
1789f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson     * @param version the version of the output format.
1799f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson     */
1809f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson    public void setVersion(String version);
1819f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson
1829f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson    /**
1839f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson     * Get the value for a property that affects seraialization,
1849f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson     * if a property was set return that value, otherwise return
1859f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson     * the default value, otherwise return null.
1869f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson     * @param name The name of the property, which is just the local name
1879f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson     * if it is in no namespace, but is the URI in curly braces followed by
1889f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson     * the local name if it is in a namespace, for example:
1899f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson     * <ul>
1909f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson     * <li> "encoding"
1919f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson     * <li> "method"
1929f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson     * <li> "{http://xml.apache.org/xalan}indent-amount"
1939f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson     * <li> "{http://xml.apache.org/xalan}line-separator"
1949f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson     * </ul>
1959f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson     * @return The value of the parameter
1969f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson     */
1979f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson    public String getOutputProperty(String name);
1989f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson    /**
1999f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson     * Get the default value for a property that affects seraialization,
2009f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson     * or null if there is none. It is possible that a non-default value
2019f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson     * was set for the property, however the value returned by this method
2029f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson     * is unaffected by any non-default settings.
2039f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson     * @param name The name of the property.
2049f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson     * @return The default value of the parameter, or null if there is no default value.
2059f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson     */
2069f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson    public String getOutputPropertyDefault(String name);
2079f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson    /**
2089f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson     * Set the non-default value for a property that affects seraialization.
2099f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson     * @param name The name of the property, which is just the local name
2109f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson     * if it is in no namespace, but is the URI in curly braces followed by
2119f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson     * the local name if it is in a namespace, for example:
2129f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson     * <ul>
2139f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson     * <li> "encoding"
2149f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson     * <li> "method"
2159f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson     * <li> "{http://xml.apache.org/xalan}indent-amount"
2169f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson     * <li> "{http://xml.apache.org/xalan}line-separator"
2179f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson     * </ul>
2189f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson     * @val The non-default value of the parameter
2199f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson     */
2209f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson    public void   setOutputProperty(String name, String val);
2219f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson
2229f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson    /**
2239f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson     * Set the default value for a property that affects seraialization.
2249f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson     * @param name The name of the property, which is just the local name
2259f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson     * if it is in no namespace, but is the URI in curly braces followed by
2269f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson     * the local name if it is in a namespace, for example:
2279f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson     * <ul>
2289f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson     * <li> "encoding"
2299f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson     * <li> "method"
2309f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson     * <li> "{http://xml.apache.org/xalan}indent-amount"
2319f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson     * <li> "{http://xml.apache.org/xalan}line-separator"
2329f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson     * </ul>
2339f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson     * @val The default value of the parameter
2349f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson     */
2359f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson    public void   setOutputPropertyDefault(String name, String val);
2369f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson}
237