Re: [PATCH xorg-docs 3/3] Add Makefile XML profiling support
On Sat, 2010-11-06 at 15:55 -0400, Gaetan Nadon wrote: 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=lfspath=%2Ftrunk%2Fblfs%2Fstylesheets%2Flfs-xsl%2Fdocbook-xsl-snapshot%2Fcommon%2Fstripns.xslrev=659sc=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? Just wondering if you had the same problem with other documents. In any case, we need more users testing as there are quite a variety of xsl packages out there. Gaetan ___ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel signature.asc Description: This is a digitally signed message part ___ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel
Re: [PATCH xorg-docs 3/3] Add Makefile XML profiling support
On Sun, Nov 28, 2010 at 5:39 PM, Gaetan Nadon mems...@videotron.ca wrote: On Sat, 2010-11-06 at 15:55 -0400, Gaetan Nadon wrote: 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=lfspath=%2Ftrunk%2Fblfs%2Fstylesheets%2Flfs-xsl%2Fdocbook-xsl-snapshot%2Fcommon%2Fstripns.xslrev=659sc=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? Just wondering if you had the same problem with other documents. In any case, we need more users testing as there are quite a variety of xsl packages out there. Alan, Which OS/distro do you get this on? Does tinderbox try to build documentation? Matt Matt ___ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel
Re: [PATCH xorg-docs 3/3] Add Makefile XML profiling support
Gaetan Nadon wrote: On Sat, 2010-11-06 at 15:55 -0400, Gaetan Nadon wrote: 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? Just wondering if you had the same problem with other documents. I have not tried again since. I was planning to get the 7.6 docs finished before trying that again - we'll have plenty of time to work out issues before the 7.7 release. Matt Dew wrote: Which OS/distro do you get this on? That would have been on the development builds of Solaris 11, which is what I do almost all my work on. (I also have Fedora 14 running in a VirtualBox, since that was easier than building my own FOP package for Solaris to generate the PDF docs, and allows me to occasionally test that I'm not breaking Linux.) -- -Alan Coopersmith-alan.coopersm...@oracle.com Oracle Solaris Platform Engineering: X Window System ___ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel
Re: [PATCH xorg-docs 3/3] Add Makefile XML profiling support
On Sun, Nov 28, 2010 at 7:01 PM, Alan Coopersmith alan.coopersm...@oracle.com wrote: Gaetan Nadon wrote: On Sat, 2010-11-06 at 15:55 -0400, Gaetan Nadon wrote: 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? Just wondering if you had the same problem with other documents. I have not tried again since. I was planning to get the 7.6 docs finished before trying that again - we'll have plenty of time to work out issues before the 7.7 release. Ok. are there any showstoppers for 7.6 as far as the documentation goes? Matt Dew wrote: Which OS/distro do you get this on? That would have been on the development builds of Solaris 11, which is what I do almost all my work on. (I also have Fedora 14 running in a VirtualBox, since that was easier than building my own FOP package for Solaris to generate the PDF docs, and allows me to occasionally test that I'm not breaking Linux.) Did the build fail on the fedora box? I ran it on fedora13 and it worked ok. I don't have access to a Solaris box so I'll need your help to figure this one out after the release. Matt ___ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel
Re: [PATCH xorg-docs 3/3] Add Makefile XML profiling support
Matt Dew wrote: On Sun, Nov 28, 2010 at 7:01 PM, Alan Coopersmith alan.coopersm...@oracle.com wrote: Gaetan Nadon wrote: On Sat, 2010-11-06 at 15:55 -0400, Gaetan Nadon wrote: 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? Just wondering if you had the same problem with other documents. I have not tried again since. I was planning to get the 7.6 docs finished before trying that again - we'll have plenty of time to work out issues before the 7.7 release. Ok. are there any showstoppers for 7.6 as far as the documentation goes? None that I'm aware of. I've not seen any reports of issues with the docs as posted on http://www.x.org/releases/X11R7.6-RC1/ (For that matter, I'm not aware of any remaining showstoppers, just need to release a few packages with build fixes that have been sitting in git for a while now with no complaints against them.) Matt Dew wrote: Which OS/distro do you get this on? That would have been on the development builds of Solaris 11, which is what I do almost all my work on. (I also have Fedora 14 running in a VirtualBox, since that was easier than building my own FOP package for Solaris to generate the PDF docs, and allows me to occasionally test that I'm not breaking Linux.) Did the build fail on the fedora box? I ran it on fedora13 and it worked ok. I don't remember off hand, sorry. -- -Alan Coopersmith-alan.coopersm...@oracle.com Oracle Solaris Platform Engineering: X Window System ___ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel
Re: [PATCH xorg-docs 3/3] Add Makefile XML profiling support
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? signature.asc Description: This is a digitally signed message part ___ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel
Re: [PATCH xorg-docs 3/3] Add Makefile XML profiling support
Hi! On Fri, 2010-11-05 at 21:22:24 -0400, Gaetan Nadon wrote: Each target type (html, pdf, ps, txt) needs its own stylesheet which all use the common xorg.xsl stylesheet. Signed-off-by: Gaetan Nadon mems...@videotron.ca diff --git a/xmlrules.in b/xmlrules.in index 41abb1b..d5556a9 100644 --- a/xmlrules.in +++ b/xmlrules.in @@ -32,10 +32,14 @@ if HAVE_XMLTO_TEXT xml_DATA += $(doc_sources:.xml=.txt) endif +# To use XML profiling, the document makefile should include profile.inc +# THe module xorg-sgml-doctools must be installed ^ small typo. regards, guillem ___ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel
Re: [PATCH xorg-docs 3/3] Add Makefile XML profiling support
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.) -- -Alan Coopersmith-alan.coopersm...@oracle.com Oracle Solaris Platform Engineering: X Window System ___ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel