< prev index next >

src/java.xml/share/classes/com/sun/org/apache/xalan/internal/xsltc/runtime/AbstractTranslet.java

Print this page




 668         }
 669     }
 670 
 671     /**
 672      * Transfer the output settings to the output post-processor
 673      */
 674     protected void transferOutputSettings(SerializationHandler handler) {
 675         if (_method != null) {
 676             if (_method.equals("xml")) {
 677                 if (_standalone != null) {
 678                     handler.setStandalone(_standalone);
 679                 }
 680                 if (_omitHeader) {
 681                     handler.setOmitXMLDeclaration(true);
 682                 }
 683                 handler.setCdataSectionElements(_cdata);
 684                 if (_version != null) {
 685                     handler.setVersion(_version);
 686                 }
 687                 handler.setIndent(_indent);

 688                 handler.setIndentAmount(_indentamount);
 689                 if (_doctypeSystem != null) {
 690                     handler.setDoctype(_doctypeSystem, _doctypePublic);
 691                 }
 692                 handler.setIsStandalone(_isStandalone);
 693             }
 694             else if (_method.equals("html")) {
 695                 handler.setIndent(_indent);
 696                 handler.setDoctype(_doctypeSystem, _doctypePublic);
 697                 if (_mediaType != null) {
 698                     handler.setMediaType(_mediaType);
 699                 }
 700             }
 701         }
 702         else {
 703             handler.setCdataSectionElements(_cdata);
 704             if (_version != null) {
 705                 handler.setVersion(_version);
 706             }
 707             if (_standalone != null) {




 668         }
 669     }
 670 
 671     /**
 672      * Transfer the output settings to the output post-processor
 673      */
 674     protected void transferOutputSettings(SerializationHandler handler) {
 675         if (_method != null) {
 676             if (_method.equals("xml")) {
 677                 if (_standalone != null) {
 678                     handler.setStandalone(_standalone);
 679                 }
 680                 if (_omitHeader) {
 681                     handler.setOmitXMLDeclaration(true);
 682                 }
 683                 handler.setCdataSectionElements(_cdata);
 684                 if (_version != null) {
 685                     handler.setVersion(_version);
 686                 }
 687                 handler.setIndent(_indent);
 688                 if (_indentamount >= 0)
 689                     handler.setIndentAmount(_indentamount);
 690                 if (_doctypeSystem != null) {
 691                     handler.setDoctype(_doctypeSystem, _doctypePublic);
 692                 }
 693                 handler.setIsStandalone(_isStandalone);
 694             }
 695             else if (_method.equals("html")) {
 696                 handler.setIndent(_indent);
 697                 handler.setDoctype(_doctypeSystem, _doctypePublic);
 698                 if (_mediaType != null) {
 699                     handler.setMediaType(_mediaType);
 700                 }
 701             }
 702         }
 703         else {
 704             handler.setCdataSectionElements(_cdata);
 705             if (_version != null) {
 706                 handler.setVersion(_version);
 707             }
 708             if (_standalone != null) {


< prev index next >