Ah, OK. I went through and replaced as suggested - progress transforming
a small article test doc. Next I worked around these errors:
- dbk2wp.xsl calls doc:make-column, which doesn't exist in dbk200.xsl.
- no templates for listitem/simpara and blockquote/para.
Now I'm generating an output file without errors. Don't
know much about the OpenDocument format, but looks like the
xml component of the .sxw package. Will try to figure out
what to do next to complete this leg of the 'trip' (open in OO).
This is really exciting stuff - it will be huge when it's done!
Steve Ball wrote:
Hi Denis,
OK - those are straight-forward bugs. Fixed in my working copy and will
be committed to the repository rsn. In the meantime, change "text" to
"content", "sum" to "doc:sum".
Now, the dbk2* stylesheets are new and I haven't had time to write up
some documentation. The dbk2wp.xsl stylesheet is a module imported by
the other dbk2* stylesheets. You should use dbk2wordml.xsl,
dbk2pages.xsl or dbk2ooo.xsl depending on which word processor you are
targetting the output for.
BTW, I'm working on a new system for the reverse conversion that will
handle OpenOffice.
HTHs,
Steve Ball
On 04/03/2007, at 11:38 AM, Denis Bradford wrote:
Sorry, sent the previous before finished. I meant to say, I tried this:
java com.icl.saxon.StyleSheet -r
org.apache.xml.resolver.tools.CatalogResolver -x
org.apache.xml.resolver.tools.ResolvingXMLReader
-o hr-resume.sxw
hr-resume-docbook.xml
roundtrip/dbk2wordml.xsl
Got this result:
Error at xsl:value-of on line 688 of
file:/opt/xml/xsl/docbook-xsl-1.72.0/roundtrip/dbk2wp.xsl:
Variable text has not been declared
Error at xsl:value-of on line 702 of
file:/opt/xml/xsl/docbook-xsl-1.72.0/roundtrip/dbk2wp.xsl:
Variable text has not been declared
Error at xsl:call-template on line 549 of
file:/opt/xml/xsl/docbook-xsl-1.72.0/roundtrip/dbk2wp.xsl:
No template exists named sum
Error at xsl:with-param on line 796 of
file:/opt/xml/xsl/docbook-xsl-1.72.0/roundtrip/dbk2wp.xsl:
Duplicate parameter name
Transformation failed: Failed to compile stylesheet. 4 errors detected.
I have an idea that I need to do something with one of the templates -
is that what I'm missing?
-------- Original Message --------
Subject: Roundtrip stylesheets how-to?
Date: Sat, 03 Mar 2007 19:14:08 -0500
From: Denis Bradford <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: [email protected]
References: <[EMAIL PROTECTED]>
Is there a description of the basic usage of the roundtrip stylesheets?
Forgive me if it's there - I have looked.
Failing that, maybe someone who's done it can steer me straight: for
starters, how about transforming a DocBook article to OpenOffice?
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]