docbook-apps

  • 1.  roundtrip-stylesheets

    Posted 05-06-2008 16:12
    Hi all,

    I'm working with the roundtrip-stylesheets in order to create a
    docbook-XML-file out of a WordML-XML-file. But I have problems to use
    the variablelist-format.

    In the word-file I got 2 paragraphs. The first is formatted as
    variablelist-term

    and the second as
    variablelist

    the wordML-file looks like this - and I think this is ok:

    <w:p wsp:rsidR="00307CBA" wsp:rsidRPr="00420A71"
    wsp:rsidRDefault="004E1A46" wsp:rsidP="00307CBA">
    <w:pPr>
    <w:pStyle w:val="variablelist-term"/>
    <w:rPr>
    <w:lang w:val="EN-GB"/>
    </w:rPr>
    </w:pPr>
    <w:r wsp:rsidRPr="00420A71">
    <w:rPr>
    <w:lang w:val="EN-GB"/>
    </w:rPr>
    <w:t>Term 1</w:t>
    </w:r>
    </w:p>
    <w:p wsp:rsidR="0000014A" wsp:rsidRPr="00420A71"
    wsp:rsidRDefault="004E1A46" wsp:rsidP="00D062B8">
    <w:pPr>
    <w:pStyle w:val="variablelist"/>
    <w:rPr>
    <w:lang w:val="EN-GB"/>
    </w:rPr>
    </w:pPr>
    <w:r wsp:rsidRPr="00420A71">
    <w:rPr>
    <w:lang w:val="EN-GB"/>
    </w:rPr>
    <w:t>description of term 1</w:t>
    </w:r>
    </w:p>


    But if I do this:

    xsltproc /usr/share/docbook-xsl/roundtrip/wordml-normalise.xsl $1 | \
    xsltproc /usr/share/docbook-xsl/roundtrip/wordml-sections.xsl - | \
    xsltproc /usr/share/docbook-xsl/roundtrip/wordml-blocks.xsl - | \
    xsltproc /usr/share/docbook-xsl/roundtrip/wordml-final.xsl -

    I receive:

    No match found for variablelist-term
    No match found for variablelist

    All other stuff works fine but the variablelist not.

    Any hints to get the variablelist working? I use the following
    stylesheets:

    pages2normalise.xsl 7266 2007-08-22
    normalise2sections.xsl 7266 2007-08-22
    sections2blocks.xsl 7266 2007-08-22
    wordml2normalise.xsl 7266 2007-08-22

    Thanks in advance.

    Regards

    Robert