[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: unparsed general entity in output !DOCTYPE

Subject: Re: unparsed general entity in output !DOCTYPE
From: Roger I Martin PhD <hypernexdev@xxxxxxxxxxxxxxx>
Date: Thu, 03 Feb 2005 14:40:33 -0500
xml doctype
Are you doing this from Java code?

FileOutputStream fos=new FileOutputStream(filePath);
identityTransformer.setOutputProperty(OutputKeys.DOCTYPE_PUBLIC, "-//W3C//DTD SVG 20001102//EN");
identityTransformer.setOutputProperty(OutputKeys.DOCTYPE_SYSTEM, "file:/C:/sourceforge/mathml-x/lib/TR/SVG/dtd/svg11.dtd");
identityTransformer.setOutputProperty(OutputKeys.ENCODING, "UTF-8");
identityTransformer.setOutputProperty(OutputKeys.INDENT, "yes");
//identityTransformer.setOutputProperty(OutputKeys.STANDALONE, "yes");
identityTransformer.setOutputProperty("{http://xml.apache.org/xalan}indent-amount","4");
identityTransformer.getOutputProperties().list(System.out);


for example.

From an Ant target

<xslt basedir="examples" destdir="examples" processor="trax" classPath="c:/sourceforge/saxonb8-2/saxon8.jar" in="examples/Mandelbrot.mml" out="examples/Mandelbrot.x3d" style="stylesheets/mathml2Java.xsl">
<param name="baseClassName" expression="Object"/>
<param name="packageName" expression="com.neuralworks.mathml"/>
<param name="className" expression="Mandelbrot"/>
<outputproperty name="method" value="text"/>
<outputproperty name="standalone" value="yes"/>
<outputproperty name="encoding" value="UTF-8"/>
<outputproperty name="indent" value="yes"/>
<outputproperty name="{http://xml.apache.org/xalan}indent-amount" value="4"/>
<outputproperty name="doctype-public" value="ISO//Web3D//DTD X3D 3.0//EN"/>
<outputproperty name="doctype-system" value="file://localhost/C:/sourceforge/mathml-x/lib/TR/X3D/dtd/x3d-3.0.dtd"/>
</xslt>


Depends from what...

Karjala Koponen wrote:

I need to create an unparsed general entity in the output xml DOCTYPE 'statement', as specified in our customer's (Elsevier)documentation:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE serial-issue PUBLIC "-//ES//DTD serials issue DTD version 5.1.0//EN//XML" "si510.dtd" [<!ENTITY cover SYSTEM "cover" NDATA IMAGE>]>


I'm thrashing here with things like:


<xsl:output method="xml" encoding="UTF-8" doctype-public="-//ES//DTD serials issue DTD version 5.1.0//EN//XML" doctype-system='"si510.dtd" [&lt;!ENTITY cover SYSTEM "cover" NDATA IMAGE&gt;]' indent="yes"/>

which gives me:

<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE serial-issue PUBLIC "-//ES//DTD serials issue DTD version 5.1.0//EN//XML" ""si510.dtd" [<!ENTITY cover SYSTEM "cover" NDATA IMAGE>]"> Note the extra quotes around ""si510.dtd" ... NDATA IMAGE>]". If I remove the single quotes I get an "Expected an attribute name" error. I've tried many variations with no better success.

I'm clearly searching for the answer incorrectly. Mostly, I get "..not generally used in practice." when I search on "unparsed general entity".

Where can I read about creating these 'heading' statements correctly? And what can I do to get my desired output?

Thanks, Karjala

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.