[PATCH xorg-docs 3/3] Add Makefile XML profiling support
Gaetan Nadon
memsize at videotron.ca
Mon Nov 8 16:31:11 PST 2010
On Fri, 2010-11-05 at 20:27 -0700, Alan Coopersmith wrote:
> When I tried building with this series, plus
> [PATCH sgml-doctools] Set stylesheet to provide XML profiling support
>
> I got:
> runtime error: file /usr/X11R7/share/sgml/X11/xorg.xsl line 254 element
> call-template
> The called template 'add-xml-base' was not found.
>
> (/usr/X11R7 being the --prefix I use for my git builds to keep them
> separate from the OS-packaged builds.)
>
One solution is to add the following import to xorg.xsl which contains
the missing template:
<!-- This file must be included, because xorg.xsl is using templates from it -->
<xsl:import href="http://docbook.sourceforge.net/release/xsl/current/common/stripns.xsl"/>
Another solution is to remove the following instructions:
<!-- xml:base is eventually added to the root element -->
<xsl:if test="not(../..) and $profile.baseuri.fixup">
<xsl:call-template name="add-xml-base"/>
</xsl:if>
The libxslt1.1 does not support adding an xml:base attribute to a node
set root element[0].
This is why I get the "cannot add @xml:base to node set root element.
Relative paths may not work."
warning message. Docbook v5 has namespace aware stylesheet in
docbook-xsl-ns. Removing theese instructions
makes the warning go away.
Would any of these solutions work for you?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.x.org/archives/xorg-devel/attachments/20101108/d25431b0/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
URL: <http://lists.x.org/archives/xorg-devel/attachments/20101108/d25431b0/attachment.pgp>
More information about the xorg-devel
mailing list