jaxp/src/java.xml/share/classes/com/sun/org/apache/xml/internal/serializer/output_html.properties
author fyuan
Mon, 19 Dec 2016 11:13:32 +0800
changeset 42805 857b5e6eef37
parent 25868 686eef1e7a79
permissions -rw-r--r--
8087303: LSSerializer pretty print does not work anymore 8114834: LSSerializerImpl always serializes an entity reference node to" &entityName;" even if "entities" property is false Reviewed-by: joehw, clanger
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
6
7f561c08de6b Initial load
duke
parents:
diff changeset
     1
###########################################################################
42805
857b5e6eef37 8087303: LSSerializer pretty print does not work anymore
fyuan
parents: 25868
diff changeset
     2
# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
6
7f561c08de6b Initial load
duke
parents:
diff changeset
     3
###########################################################################
42805
857b5e6eef37 8087303: LSSerializer pretty print does not work anymore
fyuan
parents: 25868
diff changeset
     4
##
857b5e6eef37 8087303: LSSerializer pretty print does not work anymore
fyuan
parents: 25868
diff changeset
     5
# Licensed to the Apache Software Foundation (ASF) under one
857b5e6eef37 8087303: LSSerializer pretty print does not work anymore
fyuan
parents: 25868
diff changeset
     6
# or more contributor license agreements. See the NOTICE file
857b5e6eef37 8087303: LSSerializer pretty print does not work anymore
fyuan
parents: 25868
diff changeset
     7
# distributed with this work for additional information
857b5e6eef37 8087303: LSSerializer pretty print does not work anymore
fyuan
parents: 25868
diff changeset
     8
# regarding copyright ownership. The ASF licenses this file
857b5e6eef37 8087303: LSSerializer pretty print does not work anymore
fyuan
parents: 25868
diff changeset
     9
# to you under the Apache License, Version 2.0 (the  "License");
6
7f561c08de6b Initial load
duke
parents:
diff changeset
    10
# you may not use this file except in compliance with the License.
7f561c08de6b Initial load
duke
parents:
diff changeset
    11
# You may obtain a copy of the License at
7f561c08de6b Initial load
duke
parents:
diff changeset
    12
#
7f561c08de6b Initial load
duke
parents:
diff changeset
    13
#     http://www.apache.org/licenses/LICENSE-2.0
7f561c08de6b Initial load
duke
parents:
diff changeset
    14
#
7f561c08de6b Initial load
duke
parents:
diff changeset
    15
# Unless required by applicable law or agreed to in writing, software
7f561c08de6b Initial load
duke
parents:
diff changeset
    16
# distributed under the License is distributed on an "AS IS" BASIS,
7f561c08de6b Initial load
duke
parents:
diff changeset
    17
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
7f561c08de6b Initial load
duke
parents:
diff changeset
    18
# See the License for the specific language governing permissions and
7f561c08de6b Initial load
duke
parents:
diff changeset
    19
# limitations under the License.
42805
857b5e6eef37 8087303: LSSerializer pretty print does not work anymore
fyuan
parents: 25868
diff changeset
    20
##
6
7f561c08de6b Initial load
duke
parents:
diff changeset
    21
#
42805
857b5e6eef37 8087303: LSSerializer pretty print does not work anymore
fyuan
parents: 25868
diff changeset
    22
# Specify defaults when method="html".  These defaults use output_xml.properties
6
7f561c08de6b Initial load
duke
parents:
diff changeset
    23
# as a base.
7f561c08de6b Initial load
duke
parents:
diff changeset
    24
#
7f561c08de6b Initial load
duke
parents:
diff changeset
    25
7f561c08de6b Initial load
duke
parents:
diff changeset
    26
# XSLT properties do not need namespace qualification.
7f561c08de6b Initial load
duke
parents:
diff changeset
    27
method=html
7f561c08de6b Initial load
duke
parents:
diff changeset
    28
indent=yes
7f561c08de6b Initial load
duke
parents:
diff changeset
    29
media-type=text/html
7f561c08de6b Initial load
duke
parents:
diff changeset
    30
version=4.0
7f561c08de6b Initial load
duke
parents:
diff changeset
    31
7f561c08de6b Initial load
duke
parents:
diff changeset
    32
# Xalan-specific output properties.  These can be overridden in the stylesheet 
7f561c08de6b Initial load
duke
parents:
diff changeset
    33
# assigning a xalan namespace.  For example:
7f561c08de6b Initial load
duke
parents:
diff changeset
    34
# <xsl:stylesheet version="1.0"
7f561c08de6b Initial load
duke
parents:
diff changeset
    35
#          xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
7f561c08de6b Initial load
duke
parents:
diff changeset
    36
#          xmlns:xalan="http://xml.apache.org/xalan">
7f561c08de6b Initial load
duke
parents:
diff changeset
    37
#  <xsl:output method="html" encoding="UTF-8"
7f561c08de6b Initial load
duke
parents:
diff changeset
    38
#              xalan:content-handler="MyContentHandler"/>
7f561c08de6b Initial load
duke
parents:
diff changeset
    39
#  ...
7f561c08de6b Initial load
duke
parents:
diff changeset
    40
# Note that the colon after the protocol needs to be escaped.
42805
857b5e6eef37 8087303: LSSerializer pretty print does not work anymore
fyuan
parents: 25868
diff changeset
    41
{http\u003a//xml.apache.org/xalan}indent-amount=4
6
7f561c08de6b Initial load
duke
parents:
diff changeset
    42
{http\u003a//xml.apache.org/xalan}content-handler=com.sun.org.apache.xml.internal.serializer.ToHTMLStream
7f561c08de6b Initial load
duke
parents:
diff changeset
    43
{http\u003a//xml.apache.org/xalan}entities=com/sun/org/apache/xml/internal/serializer/HTMLEntities
7f561c08de6b Initial load
duke
parents:
diff changeset
    44
{http\u003a//xml.apache.org/xalan}use-url-escaping=yes
7f561c08de6b Initial load
duke
parents:
diff changeset
    45
{http\u003a//xml.apache.org/xalan}omit-meta-tag=no