Opened 7 years ago
Last modified 7 years ago
#55946 closed defect
docbook-xsl installs namespace-aware templates (it should be non-namespace aware?) — at Version 2
Reported by: | macdice (Thomas Munro) | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | Cc: | ||
Port: | docbook-xsl |
Description (last modified by mf2k (Frank Schima))
Hello,
I am trying to use non-namespace DocBook to build the PostgreSQL documentation, but I suspect there may be a packaging bug in docbook-xsl. I see two ports:
docbook-xsl @1.79.2_1 (textproc) The docbook xsl stylesheets docbook-xsl-ns @1.76.1_1 (textproc) DocBook XSL NS (namespaced) Stylesheets
This appears to be like the way DocBook XSL is packaged in other distributions: a version without namespaces and a version with namespaces. For example, Debian and FreeBSD also have packages called docbook-xsl and docbook-xsl-ns. However, in the MacPorts docbook-xsl port I see that namespaces *are* used. For example /opt/local/share/xsl/docbook-xsl/common/labels.xsl I see templates with namespace-prefixed match attributes like these:
<xsl:template match="d:chapter" mode="label.markup"> <xsl:template match="d:appendix" mode="label.markup">
On a Debian or FreeBSD system, labels.xsl has those particular lines as:
<xsl:template match="chapter" mode="label.markup"> <xsl:template match="appendix" mode="label.markup">
On those other systems, the docbook-xsl-ns package installs a version with those d: prefixes under a separate docbook-ns directory.
I think the MacPorts package may be accidentally installing a namespace-aware version in docbook-xsl. I have no idea how to fix that or if my attempt at an analysis is correct, because I know next to nothing about DocBook or XSL.
For what it is worth, here is the thread on the PostgreSQL documentation mailing list, where we've been trying to work out how to get our documentation to build with a MacPorts installed DocBooks installation, which might make matters clearer:
Change History (2)
comment:1 Changed 7 years ago by mf2k (Frank Schima)
comment:2 Changed 7 years ago by mf2k (Frank Schima)
Description: | modified (diff) |
---|
In the future, please use WikiFormatting.