<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.26.0">
</HEAD>
<BODY>
On Fri, 2010-11-05 at 20:27 -0700, Alan Coopersmith wrote:<BR>
<BLOCKQUOTE TYPE=CITE>
<TT><FONT COLOR="#1a1a1a">I got:</FONT></TT><BR>
<TT><FONT COLOR="#1a1a1a">runtime error: file /usr/X11R7/share/sgml/X11/xorg.xsl line 254 element</FONT></TT><BR>
<TT><FONT COLOR="#1a1a1a">call-template</FONT></TT><BR>
<TT><FONT COLOR="#1a1a1a">The called template 'add-xml-base' was not found.</FONT></TT><BR>
</BLOCKQUOTE>
This is related to the xml:base attribute which is defined in the W3C XML Base recommendation <A HREF="http://www.w3.org/TR/xmlbase/.">http://www.w3.org/TR/xmlbase/.</A>
<BLOCKQUOTE>
<PRE>
The attribute <TT>xml:base </TT><A HREF="http://www.w3.org/TR/xmlbase/#dt-must">may</A> be inserted in XML documents to specify a base URI other
than the base URI of the document or external entity.
</PRE>
</BLOCKQUOTE>
I found on the net a stylesheet that does the same thing as xorg.xsl:
<BLOCKQUOTE>
<PRE>
<A HREF="http://svn.traduc.org/blame.php?repname=lfs&path=%2Ftrunk%2Fblfs%2Fstylesheets%2Flfs-xsl%2Fdocbook-xsl-snapshot%2Fcommon%2Fstripns.xsl&rev=659&sc=0">http://svn.traduc.org/blame.php?repname=lfs&path=%2Ftrunk%2Fblfs%2Fstylesheets%2Flfs-xsl%2Fdocbook-xsl-snapshot%2Fcommon%2Fstripns.xsl&rev=659&sc=0</A>
</PRE>
</BLOCKQUOTE>
<BR>
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.
<BLOCKQUOTE>
<PRE>
<TT><xsl:template name="add-xml-base"></TT>
<TT> <xsl:if test="not(@xml:base)"></TT>
<TT> <xsl:variable name="base"></TT>
[...]
</PRE>
</BLOCKQUOTE>
When I build xorg-docs, I always get this warning:
<BLOCKQUOTE>
<PRE>
WARNING: cannot add @xml:base to node set root element. Relative paths may not work.
</PRE>
</BLOCKQUOTE>
There must be some differences in the docbook xls software packages or the the version of the xsltproc that we use.<BR>
<BR>
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?<BR>
<BR>
In any case, we need more users testing as there are quite a variety of xsl packages out there.<BR>
<BR>
Gaetan
</BODY>
</HTML>