OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [docbook-apps] Public/System doctype IDs misbehaving in Eclipse output (1.73)


On Wed, Mar 17, 2010 at 6:27 PM, David Cramer <dcramer@motive.com> wrote:
> I was never able to get around that (but I don't think it occurred to me
> to ask here). I ended up post-processing the plugin.xml and toc.xml
> files to remove the doctype.
>
> I'll be interested in hearing if there's a right way. I have a vague
> idea/memory that this is a saxon thing.

I ran into the same problem with the ePub stylesheets. Under the hood,
this uses the template named "write.chunk". From a quick look at the
SVN trunk, I think you'd want to add two paramaters to the call to
write.chunk that generates these files and overrides the doctype
you're setting elsewhere:

Index: eclipse.xsl
===================================================================
--- eclipse.xsl	(revision 8582)
+++ eclipse.xsl	(working copy)
@@ -114,6 +114,8 @@
     <xsl:with-param name="encoding" select="'utf-8'"/>
     <xsl:with-param name="indent" select="'yes'"/>
     <xsl:with-param name="quiet" select="$chunk.quietly"/>
+    <xsl:with-param name="doctype-public" select="''"/> <!--
intentionally blank -->
+    <xsl:with-param name="doctype-system" select="''"/> <!--
intentionally blank -->
     <xsl:with-param name="content">
       <xsl:choose>

@@ -207,6 +209,8 @@
     <xsl:with-param name="encoding" select="'utf-8'"/>
     <xsl:with-param name="indent" select="'yes'"/>
     <xsl:with-param name="quiet" select="$chunk.quietly"/>
+    <xsl:with-param name="doctype-public" select="''"/> <!--
intentionally blank -->
+    <xsl:with-param name="doctype-system" select="''"/> <!--
intentionally blank -->
     <xsl:with-param name="content">
       <plugin name="{$eclipse.plugin.name}"
         id="{$eclipse.plugin.id}"


...that said, I've never used the Eclipse output, so this is just a
guess based on what is in SVN...



Keith


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]