[PATCH xorg-docs 3/3] Add Makefile XML profiling support

Gaetan Nadon memsize at videotron.ca
Sat Nov 6 12:55:30 PDT 2010


On Fri, 2010-11-05 at 20:27 -0700, Alan Coopersmith wrote:

> 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.

This is related to the xml:base attribute which is defined in the W3C
XML Base recommendation http://www.w3.org/TR/xmlbase/.
        
        The attribute xml:base may be inserted in XML documents to specify a base URI other 
        than the base URI of the document or external entity.

I found on the net a stylesheet that does the same thing as xorg.xsl: 

        http://svn.traduc.org/blame.php?repname=lfs&path=%2Ftrunk%2Fblfs%2Fstylesheets%2Flfs-xsl%2Fdocbook-xsl-snapshot%2Fcommon%2Fstripns.xsl&rev=659&sc=0


Our xorg stylesheet is calling an "add-xml-base" template that does not
exist. In the above stylesheet found on the next, this template is
defined in-line in the file.

        <xsl:template name="add-xml-base">
          <xsl:if test="not(@xml:base)">
            <xsl:variable name="base">
            [...]
        

When I build xorg-docs, I always get this warning:

        WARNING: cannot add @xml:base to node set root element.  Relative paths may not work.

There must be some differences in the docbook xls software packages or
the the version of the xsltproc that we use.

If you have run into this, most likely others will. Other packages such
as libSM would use the new version of xorg.xsl as well. Does it fail the
same way?

In any case, we need more users testing as there are quite a variety of
xsl packages out there.

Gaetan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.x.org/archives/xorg-devel/attachments/20101106/892a75b9/attachment.html>
-------------- 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/20101106/892a75b9/attachment.pgp>


More information about the xorg-devel mailing list