Bug 173615 - textproc/db2latex 0.8p1_1 has bad xls [patch]
Summary: textproc/db2latex 0.8p1_1 has bad xls [patch]
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Stefan Walter
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-13 21:50 UTC by marka
Modified: 2013-04-28 12:30 UTC (History)
0 users

See Also:


Attachments
file.diff (689 bytes, patch)
2012-11-13 21:50 UTC, marka
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description marka 2012-11-13 21:50:00 UTC
xsltproc doesn't like a param being defined within a param.

%make doc
expand Bv9ARM-book.xml |  /usr/local/bin/xsltproc --novalid --xinclude --nonet ../../doc/xsl/pre-latex.xsl - |  /usr/local/bin/xsltproc --novalid --xinclude --nonet ../../doc/xsl/isc-docbook-latex.xsl - |  /usr/bin/perl5 latex-fixup.pl >Bv9ARM.tex.tmp
################################################################################
 XSLT stylesheets DocBook - LaTeX 2e                                            
 Reqs: LaTeX 2e installation common packages                                    
################################################################################
 RELEASE : 0.8pre1
 VERSION : $Id: VERSION.xml,v 1.6 2004/01/31 12:47:11 j-devenish Exp $
     TAG : DB2LATEX_0_8PRE1 
     WWW : http://db2latex.sourceforge.net                                      
 SUMMARY : http://www.sourceforge.net/projects/db2latex                         
  AUTHOR : Ramon Casellas  casellas@infres.enst.fr                              
  AUTHOR : James Devenish  j-devenish@users.sf.net                              
   USING : libxslt/xsltproc
################################################################################
runtime error: file /usr/local/share/db2latex/xsl/lists.mod.xsl line 273 element param
Unexpected XSLT element 'param'.
runtime error: file /usr/local/share/db2latex/xsl/lists.mod.xsl line 274 element value-of
Variable 'object' has not been declared.
xmlXPathCompOpEval: parameter error
xmlXPathCompiledEval: evaluation failed
runtime error: file /usr/local/share/db2latex/xsl/lists.mod.xsl line 274 element value-of
XPath evaluation returned no result.
if test -s Bv9ARM.tex.tmp; then mv Bv9ARM.tex.tmp Bv9ARM.tex; else rm -f Bv9ARM.tex.tmp; exit 1; fi

How-To-Repeat: 
	Attempt to rebuild bind9 documentation.
Comment 1 Stefan Walter freebsd_committer freebsd_triage 2013-04-28 12:13:06 UTC
Responsible Changed
From-To: freebsd-ports-bugs->stefan

Take.
Comment 2 dfilter service freebsd_committer freebsd_triage 2013-04-28 12:24:39 UTC
Author: stefan
Date: Sun Apr 28 11:24:26 2013
New Revision: 316712
URL: http://svnweb.freebsd.org/changeset/ports/316712

Log:
  Fix a problem with nested <param> tags in the XSL stylesheet which xsltproc does
  not like and which prevents building the bind9 documentation.
  
  PR:		173615
  Submitted by:	Mark Andrews <marka@isc.org>

Added:
  head/textproc/db2latex/files/patch-xsl-lists.mod.xsl   (contents, props changed)
Modified:
  head/textproc/db2latex/Makefile   (contents, props changed)

Modified: head/textproc/db2latex/Makefile
==============================================================================
--- head/textproc/db2latex/Makefile	Sun Apr 28 10:00:25 2013	(r316711)
+++ head/textproc/db2latex/Makefile	Sun Apr 28 11:24:26 2013	(r316712)
@@ -8,7 +8,7 @@
 
 PORTNAME=	db2latex
 PORTVERSION=	0.8p1
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	textproc
 MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/0.8pre1
 DISTNAME=	${PORTNAME}-xsl-${PORTVERSION:S/p/pre/}

Added: head/textproc/db2latex/files/patch-xsl-lists.mod.xsl
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/textproc/db2latex/files/patch-xsl-lists.mod.xsl	Sun Apr 28 11:24:26 2013	(r316712)
@@ -0,0 +1,16 @@
+--- xsl/lists.mod.xsl.orig	2004-01-31 11:53:50.000000000 +0000
++++ xsl/lists.mod.xsl	2012-11-13 21:15:16.000000000 +0000
+@@ -269,10 +269,8 @@
+ 		</doc:notes>
+ 	</doc:template>
+ 	<xsl:template match="varlistentry">
+-		<xsl:param name="next.is.list">
+-			<xsl:param name="object" select="listitem/*[1]"/>
+-			<xsl:value-of select="count($object[self::itemizedlist or self::orderedlist or self::variablelist])"/>
+-		</xsl:param>
++		<xsl:param name="object" select="listitem/*[1]"/>
++		<xsl:param name="next.is.list" select="count($object[self::itemizedlist or self::orderedlist or self::variablelist])"/>
+ 		<xsl:variable name="id">
+ 			<xsl:call-template name="label.id"/>
+ 		</xsl:variable>
+
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 3 Stefan Walter freebsd_committer freebsd_triage 2013-04-28 12:24:55 UTC
State Changed
From-To: open->closed

Committed, thanks!