[docbook-apps] roundtrip - wordml2normalise.xsl/normalise-common.xsl - customizing possible?

2008-07-29 Thread Vittorio Muth
Hi all,

I'm not familiar with WordML nor DocBook but trying to convert 1 WordML file 
with ~200 pages to DocBook. (a good start...)

When running the XML pipeline WordML2DocBook I got errors at the end 
(blocks2dbk.xsl) with 35 different paragraph styles.
e.g. 'ERROR unknown-style: unknown paragraph style berschrift1 encountered'

Yes - the WordML file had a customized German 'MySpecialWord.dot' at the 
beginning...
I found out, that the template 'rnd:map-paragraph-style' is imported to 
wordml2normalise.xsl from 'normalise-common.xsl'.

Now the question:
Does it make sense to customize the file normalise-common.xsl to match the 
German styles which had been used in myWordFile.doc (based on mySpecialWord.dot 
and saved as myWordFile.xml)?

Or should I just replace those 35 styles with sed? ;-)

thanks in advance,
Vittorio



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [docbook-apps] roundtrip - wordml2normalise.xsl/normalise-common.xsl - cu...

2008-07-29 Thread DeanNelson
 
 
Vittorio,
 
I have converted quite a few Word docs and its never very clean - they are  
never well behaved ;-)
 
One thing that you might try is using Majix 
(_http://www.freedownloadscenter.com/Authors/TetraSix.html_ 
(http://www.freedownloadscenter.com/Authors/TetraSix.html) )  to convert from 
an RTF. There you can specify what to use when it 
encounters a  block that it doesn't recognize.
 
Or use 'sed' , but that taints the source ;-)
 
 
Regards,
 
Dean Nelson
 
In a message dated 7/29/2008 3:53:48 A.M. Pacific Daylight Time,  Vittorio.Mu
[EMAIL PROTECTED] writes:

Hi  all,

I'm not familiar with WordML nor DocBook but trying to convert 1  WordML file 
with ~200 pages to DocBook. (a good start...)

When running  the XML pipeline WordML2DocBook I got errors at the end 
(blocks2dbk.xsl) with  35 different paragraph styles.
e.g. 'ERROR unknown-style: unknown  paragraph style berschrift1 
encountered'

Yes - the WordML file had a  customized German 'MySpecialWord.dot' at the 
beginning...
I found out, that  the template 'rnd:map-paragraph-style' is imported to 
wordml2normalise.xsl  from 'normalise-common.xsl'.

Now the question:
Does it make sense to  customize the file normalise-common.xsl to match the 
German styles which had  been used in myWordFile.doc (based on 
mySpecialWord.dot and saved as  myWordFile.xml)?

Or should I just replace those 35 styles with sed?  ;-)

thanks in  advance,
Vittorio



-
To  unsubscribe, e-mail: [EMAIL PROTECTED]
For  additional commands, e-mail:  [EMAIL PROTECTED]





Regards,

Dean Nelson

Faith is acting before  feeling. - Rick Warren



**Get fantasy football with free live scoring. Sign up for 
FanHouse Fantasy Football today.  
(http://www.fanhouse.com/fantasyaffair?ncid=aolspr000520)