transformation fails when link/@xrefstyle encountered
Closed this issue · 0 comments
fsteimke commented
In a source document i used link/@xrefstyle
by mistake instead of xref/@xrefstyle
. Document is valid, but transformation failed with a type error. Reason is that tp:apply-localization-template
is called in links.xsl
which assumes that the context element is db:xref
.
Since DocBook 5.2 allows link/@xrefstyle
, it should be supported. If it is empty, it behaves like an xref
. If it is not empty, xrefstyle
is ignored. A Schematron rule should warn if an link
Element which is not empty has an xrefstyle
attribute. But in any case transformation must not fail.