Doh! I'd forgotten to change the macro to call the new eclipse command.
<command name="docb.convertToEclipse">
<macro>
<sequence>
<command name="selectFile" parameter="saveDirectoryURL" />
<command name="docb.toHTML" parameter='"%_"' />
<!--^^^^^^-->
<!-- I'd forgotten to change this to docb.toEclipse -->
</sequence>
</macro>
</command>
Now it's generating the plugin.xml and eclipse.xml files, but putting them in
C:\programs\XMLmind_XML_Editor due to a limitation of the docbook xsls that
generate eclipse stuff. I'm trying to debug that by putting an xsl:message
terminate="yes" to get the value of $base.dir, but the error window doesn't
appear to give me the output of the message. It just says processing was
terminated by xsl:message.
David
-----Original Message-----
From: David Cramer (Tech Pubs)
Sent: Friday, September 19, 2003 5:07 PM
To: 'xmleditor-support at xmlmind.com'
Subject: Adding eclipse output to the DocBook menu
Hi there,
I'm trying to add eclipse help output to xslMenu.incl. I've put the latest
distribution in C:\programs\XMLmind_XML_Editor\config\docbook\xsl and it
generates other outputs fine. I've added the entries below to xslMenu.incl. It
generates the chunked html, but the toc.xml and plugin.xml files that the
docbook xsls generate for eclipse don't appear in the output direcory.
Is there something else I need to do? Also, the log stuff goes by pretty
fast--is that saved to a file somewhere? Or maybe I just need to be pointed to
the right section of the docs for editing the Convert Document entries in the
xslMenu.incl file.
XMLmind 2.4p1 on Windows XP.
Thanks,
David
<command name="docb.toEclipse">
<process>
<mkdir dir="resources" />
<copyDocument to="__doc.xml">
<resources match="(https|http|ftp)://.*" />
<resources match=".+" copyTo="resources" />
</copyDocument>
<mkdir dir="callouts" />
<copyProcessResources resources="@xsl/images/callouts/gif_callouts.list"
to="callouts" />
<copyProcessResources resources="xsl/css/html.css" to="html.css" />
<transform stylesheet="xsl/eclipse/eclipse.xsl"
file="__doc.xml" to="__doc.html" >
<parameter name="base.dir">%W%S</parameter>
<parameter name="chunk.first.sections">0</parameter>
<parameter name="chunk.section.depth">100</parameter>
<parameter name="toc.section.depth">3</parameter>
<parameter name="section.autolabel">1</parameter>
<parameter name="html.stylesheet">html.css</parameter>
<parameter name="callout.graphics">1</parameter>
<parameter name="callout.graphics.path">callouts/</parameter>
<parameter name="callout.graphics.extension">.gif</parameter>
</transform>
<!-- The real HTML file is index.html -->
<delete files="__doc.*" />
<upload base="%0/">
<copyFiles files="*.*" toDir="." />
<copyFiles files="resources/*" toDir="resources" />
<copyFiles files="callouts/*" toDir="callouts" />
</upload>
</process>
</command>
<command name="docb.convertToEclipse">
<macro>
<sequence>
<command name="selectFile" parameter="saveDirectoryURL" />
<command name="docb.toHTML" parameter='"%_"' />
</sequence>
</macro>
</command>