diff options
author | Rong-En Fan <rafan@FreeBSD.org> | 2008-10-05 10:05:14 +0000 |
---|---|---|
committer | Rong-En Fan <rafan@FreeBSD.org> | 2008-10-05 10:05:14 +0000 |
commit | 8aa95eecfa0ee290768b3d629994554464add9e1 (patch) | |
tree | bf4a4427f240f4828ec853224015810fbe951a02 /textproc/db2latex | |
parent | a6b24e07002c9a1fd8be7835f0daeff35d8bac7b (diff) | |
download | ports-8aa95eecfa0ee290768b3d629994554464add9e1.tar.gz ports-8aa95eecfa0ee290768b3d629994554464add9e1.zip |
Notes
Diffstat (limited to 'textproc/db2latex')
-rw-r--r-- | textproc/db2latex/Makefile | 1 | ||||
-rw-r--r-- | textproc/db2latex/files/patch-xsl-common-common.xsl | 92 |
2 files changed, 93 insertions, 0 deletions
diff --git a/textproc/db2latex/Makefile b/textproc/db2latex/Makefile index fe62cc199554..d03923a0bd82 100644 --- a/textproc/db2latex/Makefile +++ b/textproc/db2latex/Makefile @@ -8,6 +8,7 @@ PORTNAME= db2latex PORTVERSION= 0.8p1 +PORTREVISION= 1 CATEGORIES= textproc MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= ${PORTNAME} diff --git a/textproc/db2latex/files/patch-xsl-common-common.xsl b/textproc/db2latex/files/patch-xsl-common-common.xsl new file mode 100644 index 000000000000..23babdd6c7e5 --- /dev/null +++ b/textproc/db2latex/files/patch-xsl-common-common.xsl @@ -0,0 +1,92 @@ +--- xsl/common/common.xsl~ 2005-03-10 23:09:55.639189152 +0100 ++++ xsl/common/common.xsl 2005-03-10 23:10:50.762690340 +0100 +@@ -356,89 +356,6 @@ + <xsl:value-of select="count($anc.divs) + number($section.level)"/> + </xsl:template> + +-<xsl:template name="question.answer.label"> +- <xsl:variable name="deflabel"> +- <xsl:choose> +- <xsl:when test="ancestor-or-self::*[@defaultlabel]"> +- <xsl:value-of select="(ancestor-or-self::*[@defaultlabel])[last()] +- /@defaultlabel"/> +- </xsl:when> +- <xsl:otherwise> +- <xsl:value-of select="$qanda.defaultlabel"/> +- </xsl:otherwise> +- </xsl:choose> +- </xsl:variable> +- +- <xsl:variable name="label" select="@label"/> +- +-<!-- +- (hnr (hierarchical-number-recursive (normalize "qandadiv") node)) +- +- (parsect (ancestor-member node (section-element-list))) +- +- (defnum (if (and %qanda-inherit-numeration% +- %section-autolabel%) +- (if (node-list-empty? parsect) +- (section-autolabel-prefix node) +- (section-autolabel parsect)) +- "")) +- +- (hnumber (let loop ((numlist hnr) (number defnum) +- (sep (if (equal? defnum "") "" "."))) +- (if (null? numlist) +- number +- (loop (cdr numlist) +- (string-append number +- sep +- (number->string (car numlist))) +- ".")))) +- (cnumber (child-number (parent node))) +- (number (string-append hnumber +- (if (equal? hnumber "") +- "" +- ".") +- (number->string cnumber)))) +---> +- +- <xsl:choose> +- <xsl:when test="$deflabel = 'qanda'"> +- <xsl:call-template name="gentext"> +- <xsl:with-param name="key"> +- <xsl:choose> +- <xsl:when test="local-name(.) = 'question'">question</xsl:when> +- <xsl:when test="local-name(.) = 'answer'">answer</xsl:when> +- <xsl:when test="local-name(.) = 'qandadiv'">qandadiv</xsl:when> +- <xsl:otherwise>qandaset</xsl:otherwise> +- </xsl:choose> +- </xsl:with-param> +- </xsl:call-template> +- </xsl:when> +- <xsl:when test="$deflabel = 'label'"> +- <xsl:value-of select="$label"/> +- </xsl:when> +- <xsl:when test="$deflabel = 'number' +- and local-name(.) = 'question'"> +- <xsl:apply-templates select="ancestor::qandaset[1]" +- mode="number"/> +- <xsl:choose> +- <xsl:when test="ancestor::qandadiv"> +- <xsl:apply-templates select="ancestor::qandadiv[1]" +- mode="number"/> +- <xsl:apply-templates select="ancestor::qandaentry" +- mode="number"/> +- </xsl:when> +- <xsl:otherwise> +- <xsl:apply-templates select="ancestor::qandaentry" +- mode="number"/> +- </xsl:otherwise> +- </xsl:choose> +- </xsl:when> +- <xsl:otherwise> +- <!-- nothing --> +- </xsl:otherwise> +- </xsl:choose> +-</xsl:template> +- + <xsl:template match="qandaset" mode="number"> + <!-- FIXME: --> + </xsl:template> |