openSUSE / dbxincluder

Transclusions for DocBook with XInclude 1.1
https://opensuse.github.io/dbxincluder
GNU General Public License v3.0
2 stars 3 forks source link

Implement inheriting transclusion attributes #6

Closed Vogtinator closed 8 years ago

Vogtinator commented 8 years ago

Although I don't see how it can be useful, the trans:suffix and trans:linkscope attribute can be inherited, but trans:idfixup can't.

tomschr commented 8 years ago

Why should trans:idfixup be inherited? Not sure if this makes any sense.

tomschr commented 8 years ago

I've opened a new thread on the DocBook mailinglist about the inheritance aspect, see https://lists.oasis-open.org/archives/docbook/201605/msg00002.html

Vogtinator commented 8 years ago

Why should trans:idfixup be inherited?

It isn't.

I've opened a new thread on the DocBook mailinglist about the inheritance aspect, see https://lists.oasis-open.org/archives/docbook/201605/msg00002.html

Inheriting trans:suffix makes at least some sense, as

<a trans:idfixup="suffix" trans:suffix="deep">
    <a trans:idfixup="suffix">
      <b xml:id="asdf"/>
      <xref linkend="asdf">
    </a>
</a>

will result in

<a>
    <a>
      <b xml:id="asdfdeepdeep"/>
      <xref linkend="asdfdeepdeep">
    </a>
</a>

I'm not sure how it can be practical.

Vogtinator commented 8 years ago

Implemented!