blob: 9b01cb76f671e491fbdad65443b4675e52de31f9 [file] [log] [blame]
<?xml version="1.0"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<!-- $Id$ -->
<page>
<title>Serialized entities test</title>
<content>
<para>
Test how the XML serializer manages startEntity() and endEntity() SAX events. The XML serializer
only ouputs the characters events received between these two events, and totally ignores the
startElement() and endElement() events.
<ul>
<li>
<link href="file-xml">Bogus result</link>: a pipeline with just a file generator followed by
an XML serializer. The file references and entity containing XML markup.
</li>
<li>
<link href="file-xsl-xml">Correct result</link>: a XSL performing an identity transformation
is inserted between the generator and the serializer. It has the effect of removing the
startEntity() and endEntity() events from the SAX stream, and the XML serializer therefore
correcly does its job.
</li>
</ul>
</para>
</content>
</page>