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] db4-upgrade.xsl dropping


Hi Jon,

Am Sonntag, 3. November 2013, 01:34:03 schrieb Jon Leech:
> [...] 
> > If I try your document with version 9783 it works.
> 
>      Thank you. That does help with this particular problem but introduces
> a new one: <varlistentry> elements containing e.g.
>      <term><parameter>x</parameter></term>
> in the DB4 source are converted to
>      <term>x</term>

I can confirm your analysis.

 
>      The changes between the revs 7660 and 9783 of db4-upgrade.xsl were
> large and it's not easy to figure out why this behavior change
> occurred, given my limited understanding of XSL. I suspect I'll be
> better off accepting the issues from one or the other version and
> fixing them up after the translation.

The DocBook schema allows these elements inside term. So if the stylesheet 
doesn't handle these elements correctly, it's a bug.

Could you add the following 3 lines into the latest db4-upgrade.xsl stylesheet 
and try it again?

-------------
 <xsl:template match="*" mode="clean-terms">
    <xsl:apply-templates select="." mode="copy"/>
 </xsl:template>
-------------

(You can add it below the <xsl:template match="glossterm|term"> template 
rule).

The above template rule just copies any element inside term unless it is a 
classsynopsis, cmdsynopsis, or any other "special" element. These are handled 
differently.

If it works for you, I can update the stylesheet in the SVN repository.


-- 
Gruß/Regards
  Thomas Schraitle



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