cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Amir Rosen" <a...@cti2.com>
Subject XML with external DTD problem
Date Sun, 09 Jun 2002 08:35:40 GMT

I'm trying to serialize a simple XML with an external DTD declaration,
using a simple sitemap.
Somehow, the comments from the referenced DTD are serialized with the
file in the document type declaration, breaking the XML, since they
should be inside square brackets (if at all).

Why does it happen ? (parser/generator/serializer ?)
How can i turn it off ?

Thanks,

Amir Rosen
CTI Squared
amir@cti2.com
+972-9-9605200(258)


The Sitemap:
  <map:match pattern="*.vxml">
	<map:generate type="file" src="vxml/{1}.vxml"/>
	<map:serialize type="xml"/>
  </map:match>


The File:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE vxml SYSTEM 'http://voicexml.nuance.com/dtd/nuancevoicexml-1-2.dtd'>
<vxml version="1.0">
	<catch event="x"/>
</vxml>


The Result:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE vxml SYSTEM "http://voicexml.nuance.com/dtd/nuancevoicexml-1-2.dtd"<!-- A
DTD for Voice Extensible Markup Language --><!-- Copyright (c) 2000 VoiceXML Forum (AT&T,
IBM, Lucent Technologies, Motorola) --><!-- <debug> and <log> permit logging
capibilites tag within executable.content. --><!-- New 'accept.attrs' entity is added
to menu, choice, and option in
     the spirit of the VoiceXML 2.0 specification. This varies from
     2.0 in that the default value is #IMPLIED, and is extended to
     apply to option. --><!--================================= Root ================================--><!--
For backwards compatibility, the version attribute defaults to 1.0 --><!--=================================
Dialogs =============================--><!-- also allow %accept.attrs --><!--
also allow %accept.attrs --><!--================================ Prompts ==============================--><!--================================
Fields ===============================--><!-- <option> is more powerful with optional
<grammar>s and %audio;. --><!-- also allow %accept.attrs --><!--==================================
Events =============================--><!--============================== Audio Output
===========================--><!-- The 'expr' attribute permits dynamically evaluated
audio URLs. --><!--============================= Audio Input =============================--><!--
<grammar> also permits <redef> children, which
     can be used to define external grammars --><!-- an <redef> element describes
an external grammar through a src,
     type and name of the grammar to be resolved by this external
     grammar --><!--============================ Call Control ============================--><!--============================
Control Flow ============================--><!-- <param> elements are allowed
to have nested <param> children,
     and an index to allow building up arrays/vectors.
     Also, if index is specified name is not required. --><!--==========================
Verification  ==============================--><!-- Elements for destroying and manipulating
voice buffers. --><!-- Elements for creating, destroying, and manipulating voice sessions.
--><!--========================== Miscellaneous ==============================--><!--
<debug> and <log> link up with Nuance's JLAPI framework. --><!-- <link>s
allow <object> to be treated like other <form>-items. --><!-- For debug
purposes, newlines are preserved by default. --><!-- For debug purposes, newlines are
preserved by default. -->>
<vxml version="1.0">
	<catch event="x"/>
</vxml>
Mime
View raw message