cvs: phpdoc /docbook/docbook-xsl/fo admon.xsl annotations.xsl autoidx-kimber.xsl autoidx-kosek.xsl autoidx-ng.xsl autoidx.xsl autotoc.xsl axf.xsl
biblio.xsl block.xsl callout.xsl component.xsl division.xsl docbook.xsl ebnf.xsl fo-patch-for-fop.xsl fo-rtf.xsl fo.xsl footnote.xsl fop.xsl
formal.xsl glossary.xsl graphics.xsl highlight.xsl htmltbl.xsl index.xsl info.xsl inline.xsl keywords.xsl lists.xsl math.xsl pagesetup.xsl param.xsl
passivetex.xsl pi.xsl profile-docbook.xsl qandaset.xsl refentry.xsl sections.xsl spaces.xsl synop.xsl table.xsl task.xsl titlepage.templates.xml
titlepage.xsl toc.xsl verbatim.xsl xep.xsl xref.xsl

From: Date: Tue, 30 Jan 2007 18:11:32 +0000
Subject: cvs: phpdoc /docbook/docbook-xsl/fo admon.xsl annotations.xsl autoidx-kimber.xsl autoidx-kosek.xsl autoidx-ng.xsl autoidx.xsl autotoc.xsl axf.xsl
biblio.xsl block.xsl callout.xsl component.xsl division.xsl docbook.xsl ebnf.xsl fo-patch-for-fop.xsl fo-rtf.xsl fo.xsl footnote.xsl fop.xsl
formal.xsl glossary.xsl graphics.xsl highlight.xsl htmltbl.xsl index.xsl info.xsl inline.xsl keywords.xsl lists.xsl math.xsl pagesetup.xsl param.xsl
passivetex.xsl pi.xsl profile-docbook.xsl qandaset.xsl refentry.xsl sections.xsl spaces.xsl synop.xsl table.xsl task.xsl titlepage.templates.xml
titlepage.xsl toc.xsl verbatim.xsl xep.xsl xref.xsl
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969375101@lists.php.net to get a copy of this message
bjori Tue Jan 30 18:11:32 2007 UTC Added files: /phpdoc/docbook/docbook-xsl/fo annotations.xsl titlepage.templates.xml Modified files: /phpdoc/docbook/docbook-xsl/fo admon.xsl autoidx-kimber.xsl autoidx-kosek.xsl autoidx-ng.xsl autoidx.xsl autotoc.xsl axf.xsl biblio.xsl block.xsl callout.xsl component.xsl division.xsl docbook.xsl ebnf.xsl fo-patch-for-fop.xsl fo-rtf.xsl fo.xsl footnote.xsl fop.xsl formal.xsl glossary.xsl graphics.xsl highlight.xsl htmltbl.xsl index.xsl info.xsl inline.xsl keywords.xsl lists.xsl math.xsl pagesetup.xsl param.xsl passivetex.xsl pi.xsl profile-docbook.xsl qandaset.xsl refentry.xsl sections.xsl spaces.xsl synop.xsl table.xsl task.xsl titlepage.xsl toc.xsl verbatim.xsl xep.xsl xref.xsl Log: Upgrade to docbook-xsl 1.72.0

http://cvs.php.net/viewvc.cgi/phpdoc/docbook/docbook-xsl/fo/admon.xsl?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/docbook/docbook-xsl/fo/admon.xsl diff -u phpdoc/docbook/docbook-xsl/fo/admon.xsl:1.1 phpdoc/docbook/docbook-xsl/fo/admon.xsl:1.2 --- phpdoc/docbook/docbook-xsl/fo/admon.xsl:1.1 Mon Jan 22 15:54:42 2007 +++ phpdoc/docbook/docbook-xsl/fo/admon.xsl Tue Jan 30 18:11:31 2007 @@ -4,7 +4,7 @@ version='1.0'> <!-- ******************************************************************** - $Id: admon.xsl,v 1.1 2007/01/22 15:54:42 bjori Exp $ + $Id: admon.xsl,v 1.2 2007/01/30 18:11:31 bjori Exp $ ******************************************************************** This file is part of the XSL DocBook Stylesheet distribution. @@ -35,11 +35,11 @@ <xsl:variable name="filename"> <xsl:value-of select="$admon.graphics.path"/> <xsl:choose> - <xsl:when test="name($node)='note'">note</xsl:when> - <xsl:when test="name($node)='warning'">warning</xsl:when> - <xsl:when test="name($node)='caution'">caution</xsl:when> - <xsl:when test="name($node)='tip'">tip</xsl:when> - <xsl:when test="name($node)='important'">important</xsl:when> + <xsl:when test="local-name($node)='note'">note</xsl:when> + <xsl:when test="local-name($node)='warning'">warning</xsl:when> + <xsl:when test="local-name($node)='caution'">caution</xsl:when> + <xsl:when test="local-name($node)='tip'">tip</xsl:when> + <xsl:when test="local-name($node)='important'">important</xsl:when> <xsl:otherwise>note</xsl:otherwise> </xsl:choose> <xsl:value-of select="$admon.graphics.extension"/> @@ -83,7 +83,7 @@ </fo:block> </fo:list-item-label> <fo:list-item-body start-indent="body-start()"> - <xsl:if test="$admon.textlabel != 0 or title"> + <xsl:if test="$admon.textlabel != 0 or title or info/title"> <fo:block xsl:use-attribute-sets="admonition.title.properties"> <xsl:apply-templates select="." mode="object.title.markup"/> </fo:block> @@ -104,7 +104,7 @@ <fo:block id="{$id}" xsl:use-attribute-sets="nongraphical.admonition.properties"> - <xsl:if test="$admon.textlabel != 0 or title"> + <xsl:if test="$admon.textlabel != 0 or title or info/title"> <fo:block keep-with-next.within-column='always' xsl:use-attribute-sets="admonition.title.properties"> <xsl:apply-templates select="." mode="object.title.markup"/> http://cvs.php.net/viewvc.cgi/phpdoc/docbook/docbook-xsl/fo/autoidx-kimber.xsl?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/docbook/docbook-xsl/fo/autoidx-kimber.xsl diff -u phpdoc/docbook/docbook-xsl/fo/autoidx-kimber.xsl:1.1 phpdoc/docbook/docbook-xsl/fo/autoidx-kimber.xsl:1.2 --- phpdoc/docbook/docbook-xsl/fo/autoidx-kimber.xsl:1.1 Mon Jan 22 15:54:42 2007 +++ phpdoc/docbook/docbook-xsl/fo/autoidx-kimber.xsl Tue Jan 30 18:11:31 2007 @@ -21,7 +21,7 @@ version="1.0"> <!-- ******************************************************************** - $Id: autoidx-kimber.xsl,v 1.1 2007/01/22 15:54:42 bjori Exp $ + $Id: autoidx-kimber.xsl,v 1.2 2007/01/30 18:11:31 bjori Exp $ ******************************************************************** This file is part of the DocBook XSL Stylesheet distribution. @@ -152,7 +152,7 @@ <xsl:variable name="label" select="k:getIndexGroupLabel(&lang;, $key)"/> - <xsl:if test="key('k-group', $label)[&scope;] + <xsl:if test="key('k-group', $key)[&scope;] [count(.|key('primary', &primary;)[&scope;][1]) = 1]"> <fo:block> <xsl:call-template name="indexdiv.title"> http://cvs.php.net/viewvc.cgi/phpdoc/docbook/docbook-xsl/fo/autoidx-kosek.xsl?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/docbook/docbook-xsl/fo/autoidx-kosek.xsl diff -u phpdoc/docbook/docbook-xsl/fo/autoidx-kosek.xsl:1.1 phpdoc/docbook/docbook-xsl/fo/autoidx-kosek.xsl:1.2 --- phpdoc/docbook/docbook-xsl/fo/autoidx-kosek.xsl:1.1 Mon Jan 22 15:54:42 2007 +++ phpdoc/docbook/docbook-xsl/fo/autoidx-kosek.xsl Tue Jan 30 18:11:31 2007 @@ -26,7 +26,7 @@ version="1.0"> <!-- ******************************************************************** - $Id: autoidx-kosek.xsl,v 1.1 2007/01/22 15:54:42 bjori Exp $ + $Id: autoidx-kosek.xsl,v 1.2 2007/01/30 18:11:31 bjori Exp $ ******************************************************************** This file is part of the DocBook XSL Stylesheet distribution. http://cvs.php.net/viewvc.cgi/phpdoc/docbook/docbook-xsl/fo/autoidx-ng.xsl?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/docbook/docbook-xsl/fo/autoidx-ng.xsl diff -u phpdoc/docbook/docbook-xsl/fo/autoidx-ng.xsl:1.1 phpdoc/docbook/docbook-xsl/fo/autoidx-ng.xsl:1.2 --- phpdoc/docbook/docbook-xsl/fo/autoidx-ng.xsl:1.1 Mon Jan 22 15:54:42 2007 +++ phpdoc/docbook/docbook-xsl/fo/autoidx-ng.xsl Tue Jan 30 18:11:31 2007 @@ -3,7 +3,7 @@ version="1.0"> <!-- ******************************************************************** - $Id: autoidx-ng.xsl,v 1.1 2007/01/22 15:54:42 bjori Exp $ + $Id: autoidx-ng.xsl,v 1.2 2007/01/30 18:11:31 bjori Exp $ ******************************************************************** This file is part of the DocBook XSL Stylesheet distribution. http://cvs.php.net/viewvc.cgi/phpdoc/docbook/docbook-xsl/fo/autoidx.xsl?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/docbook/docbook-xsl/fo/autoidx.xsl diff -u phpdoc/docbook/docbook-xsl/fo/autoidx.xsl:1.1 phpdoc/docbook/docbook-xsl/fo/autoidx.xsl:1.2 --- phpdoc/docbook/docbook-xsl/fo/autoidx.xsl:1.1 Mon Jan 22 15:54:42 2007 +++ phpdoc/docbook/docbook-xsl/fo/autoidx.xsl Tue Jan 30 18:11:31 2007 @@ -1,18 +1,7 @@ <?xml version="1.0"?> <!DOCTYPE xsl:stylesheet [ - -<!ENTITY lowercase "'Aa&#192;&#224;&#193;&#225;&#194;&#226;&#195;&#227;&#196;&#228;&#197;&#229;&#256;&#257;&#258;&#259;&#260;&#261;&#461;&#462;&#478;&#479;&#480;&#481;&#506;&#507;&#512;&#513;&#514;&#515;&#550;&#551;&#7680;&#7681;&#7834;&#7840;&#7841;&#7842;&#7843;&#7844;&#7845;&#7846;&#7847;&#7848;&#7849;&#7850;&#7851;&#7852;&#7853;&#7854;&#7855;&#7856;&#7857;&#7858;&#7859;&#7860;&#7861;&#7862;&#7863;Bb&#384;&#385;&#595;&#386;&#387;&#7682;&#7683;&#7684;&#7685;&#7686;&#7687;Cc&#199;&#231;&#262;&#263;&#264;&#265;&#266;&#267;&#268;&#269;&#391;&#392;&#597;&#7688;&#7689;Dd&#270;&#271;&#272;&#273;&#394;&#599;&#395;&#396;&#453;&#498;&#545;&#598;&#7690;&#7691;&#7692;&#7693;&#7694;&#7695;&#7696;&#7697;&#7698;&#7699;Ee&#200;&#232;&#201;&#233;&#202;&#234;&#203;&#235;&#274;&#275;&#276;&#277;&#278;&#279;&#280;&#281;&#282;&#283;&#516;&#517;&#518;&#519;&#552;&#553;&#7700;&#7701;&#7702;&#7703;&#7704;&#7705;&#7706;&#7707;&#7708;&#7709;&#7864;&#7865;&#7866;&#7867;&#7868;&#7869;&#7870;&#7871;! &#7872;&#7873;&#7874;&#7875;&#7876;&#7877;&#7878;&#7879;Ff&#401;&#402;&#7710;&#7711;Gg&#284;&#285;&#286;&#287;&#288;&#289;&#290;&#291;&#403;&#608;&#484;&#485;&#486;&#487;&#500;&#501;&#7712;&#7713;Hh&#292;&#293;&#294;&#295;&#542;&#543;&#614;&#7714;&#7715;&#7716;&#7717;&#7718;&#7719;&#7720;&#7721;&#7722;&#7723;&#7830;Ii&#204;&#236;&#205;&#237;&#206;&#238;&#207;&#239;&#296;&#297;&#298;&#299;&#300;&#301;&#302;&#303;&#304;&#407;&#616;&#463;&#464;&#520;&#521;&#522;&#523;&#7724;&#7725;&#7726;&#7727;&#7880;&#7881;&#7882;&#7883;Jj&#308;&#309;&#496;&#669;Kk&#310;&#311;&#408;&#409;&#488;&#489;&#7728;&#7729;&#7730;&#7731;&#7732;&#7733;Ll&#313;&#314;&#315;&#316;&#317;&#318;&#319;&#320;&#321;&#322;&#410;&#456;&#564;&#619;&#620;&#621;&#7734;&#7735;&#7736;&#7737;&#7738;&#7739;&#7740;&#7741;Mm&#625;&#7742;&#7743;&#7744;&#7745;&#7746;&#7747;Nn&#209;&#241;&#323;&#324;&#325;&#326;&#327;&#328;&#413;&#626;&#414;&#544;&#459;&#504;&#505;&#565;&#627;&#7748;&#7749;&#7750;&#7751;&#7752;&#7753;&#7754;! &#7755;Oo&#210;&#242;&#211;&#243;&#212;&#244;&#213;&#245;&#214;&#246;& #216;&#248;&#332;&#333;&#334;&#335;&#336;&#337;&#415;&#416;&#417;&#465;&#466;&#490;&#491;&#492;&#493;&#510;&#511;&#524;&#525;&#526;&#527;&#554;&#555;&#556;&#557;&#558;&#559;&#560;&#561;&#7756;&#7757;&#7758;&#7759;&#7760;&#7761;&#7762;&#7763;&#7884;&#7885;&#7886;&#7887;&#7888;&#7889;&#7890;&#7891;&#7892;&#7893;&#7894;&#7895;&#7896;&#7897;&#7898;&#7899;&#7900;&#7901;&#7902;&#7903;&#7904;&#7905;&#7906;&#7907;Pp&#420;&#421;&#7764;&#7765;&#7766;&#7767;Qq&#672;Rr&#340;&#341;&#342;&#343;&#344;&#345;&#528;&#529;&#530;&#531;&#636;&#637;&#638;&#7768;&#7769;&#7770;&#7771;&#7772;&#7773;&#7774;&#7775;Ss&#346;&#347;&#348;&#349;&#350;&#351;&#352;&#353;&#536;&#537;&#642;&#7776;&#7777;&#7778;&#7779;&#7780;&#7781;&#7782;&#7783;&#7784;&#7785;Tt&#354;&#355;&#356;&#357;&#358;&#359;&#427;&#428;&#429;&#430;&#648;&#538;&#539;&#566;&#7786;&#7787;&#7788;&#7789;&#7790;&#7791;&#7792;&#7793;&#7831;Uu&#217;&#249;&#218;&#250;&#219;&#251;&#220;&#252;&#360;&#361;&#362;&#363;&#364;&#365;&#366;&#367;&#368;&#3! 69;&#370;&#371;&#431;&#432;&#467;&#468;&#469;&#470;&#471;&#472;&#473;&#474;&#475;&#476;&#532;&#533;&#534;&#535;&#7794;&#7795;&#7796;&#7797;&#7798;&#7799;&#7800;&#7801;&#7802;&#7803;&#7908;&#7909;&#7910;&#7911;&#7912;&#7913;&#7914;&#7915;&#7916;&#7917;&#7918;&#7919;&#7920;&#7921;Vv&#434;&#651;&#7804;&#7805;&#7806;&#7807;Ww&#372;&#373;&#7808;&#7809;&#7810;&#7811;&#7812;&#7813;&#7814;&#7815;&#7816;&#7817;&#7832;Xx&#7818;&#7819;&#7820;&#7821;Yy&#221;&#253;&#255;&#376;&#374;&#375;&#435;&#436;&#562;&#563;&#7822;&#7823;&#7833;&#7922;&#7923;&#7924;&#7925;&#7926;&#7927;&#7928;&#7929;Zz&#377;&#378;&#379;&#380;&#381;&#382;&#437;&#438;&#548;&#549;&#656;&#657;&#7824;&#7825;&#7826;&#7827;&#7828;&#7829;&#7829;'"> -<!ENTITY uppercase "'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBCCCCCCCCCCCCCCCCCDDDDDDDDDDDDDDDDDDDDDDDDEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEFFFFFFGGGGGGGGGGGGGGGGGGGGHHHHHHHHHHHHHHHHHHHHIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIJJJJJJKKKKKKKKKKKKKKLLLLLLLLLLLLLLLLLLLLLLLLLLMMMMMMMMMNNNNNNNNNNNNNNNNNNNNNNNNNNNOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOPPPPPPPPQQQRRRRRRRRRRRRRRRRRRRRRRRSSSSSSSSSSSSSSSSSSSSSSSTTTTTTTTTTTTTTTTTTTTTTTTTUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUVVVVVVVVWWWWWWWWWWWWWWWXXXXXXYYYYYYYYYYYYYYYYYYYYYYYZZZZZZZZZZZZZZZZZZZZZ'"> - - -<!ENTITY primary 'normalize-space(concat(primary/@sortas, primary[not(@sortas) or @sortas = ""]))'> -<!ENTITY secondary 'normalize-space(concat(secondary/@sortas, secondary[not(@sortas) or @sortas = ""]))'> -<!ENTITY tertiary 'normalize-space(concat(tertiary/@sortas, tertiary[not(@sortas) or @sortas = ""]))'> - -<!ENTITY sep '" "'> -<!ENTITY scope 'count(ancestor::node()|$scope) = count(ancestor::node()) - and ($role = @role or $type = @type or - (string-length($role) = 0 and string-length($type) = 0))'> +<!ENTITY % common.entities SYSTEM "../common/entities.ent"> +%common.entities; ]> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format" @@ -24,7 +13,7 @@ version="1.0"> <!-- ******************************************************************** - $Id: autoidx.xsl,v 1.1 2007/01/22 15:54:42 bjori Exp $ + $Id: autoidx.xsl,v 1.2 2007/01/30 18:11:31 bjori Exp $ ******************************************************************** This file is part of the DocBook XSL Stylesheet distribution. @@ -678,12 +667,13 @@ <xsl:call-template name="object.id"/> </xsl:variable> - <fo:basic-link internal-destination="{$id}"> + <fo:basic-link internal-destination="{$id}" + xsl:use-attribute-sets="index.page.number.properties"> <fo:page-number-citation ref-id="{$id}"/> </fo:basic-link> - <xsl:if test="key('endofrange', @id)[&scope;]"> - <xsl:apply-templates select="key('endofrange', @id)[&scope;][last()]" + <xsl:if test="key('endofrange', $id)[&scope;]"> + <xsl:apply-templates select="key('endofrange', $id)[&scope;][last()]" mode="reference"> <xsl:with-param name="scope" select="$scope"/> <xsl:with-param name="role" select="$role"/> @@ -718,7 +708,8 @@ </xsl:call-template> </xsl:variable> - <fo:basic-link internal-destination="{$id}"> + <fo:basic-link internal-destination="{$id}" + xsl:use-attribute-sets="index.page.number.properties"> <fo:page-number-citation ref-id="{$id}"/> </fo:basic-link> @@ -742,7 +733,8 @@ </xsl:call-template> </xsl:variable> - <fo:basic-link internal-destination="{$id}"> + <fo:basic-link internal-destination="{$id}" + xsl:use-attribute-sets="index.page.number.properties"> <fo:page-number-citation ref-id="{$id}"/> </fo:basic-link> </xsl:otherwise> @@ -769,7 +761,8 @@ </xsl:call-template> </xsl:variable> - <fo:basic-link internal-destination="{$id}"> + <fo:basic-link internal-destination="{$id}" + xsl:use-attribute-sets="index.page.number.properties"> <fo:page-number-citation ref-id="{$id}"/> </fo:basic-link> </xsl:template> @@ -862,7 +855,7 @@ <xsl:param name="type" select="''"/> <xsl:text>&lt;</xsl:text> - <xsl:value-of select="name(.)"/> + <xsl:value-of select="local-name(.)"/> <xsl:text>&gt;&#10;</xsl:text> <xsl:apply-templates mode="index-markup"> <xsl:with-param name="scope" select="$scope"/> @@ -1086,7 +1079,8 @@ <xsl:text>&lt;link linkend="</xsl:text> <xsl:value-of select="@startref"/> <xsl:text>"&gt;</xsl:text> - <fo:basic-link internal-destination="{@startref}"> + <fo:basic-link internal-destination="{@startref}" + xsl:use-attribute-sets="index.page.number.properties"> <fo:page-number-citation ref-id="{@startref}"/> <xsl:text>-</xsl:text> <fo:page-number-citation ref-id="{$id}"/> @@ -1096,15 +1090,16 @@ </xsl:when> <xsl:otherwise> <xsl:text>&lt;phrase role="pageno"&gt;</xsl:text> - <xsl:if test="@id"> + <xsl:if test="$id"> <xsl:text>&lt;link linkend="</xsl:text> <xsl:value-of select="$id"/> <xsl:text>"&gt;</xsl:text> </xsl:if> - <fo:basic-link internal-destination="{$id}"> + <fo:basic-link internal-destination="{$id}" + xsl:use-attribute-sets="index.page.number.properties"> <fo:page-number-citation ref-id="{$id}"/> </fo:basic-link> - <xsl:if test="@id"> + <xsl:if test="$id"> <xsl:text>&lt;/link&gt;</xsl:text> </xsl:if> <xsl:text>&lt;/phrase&gt;&#10;</xsl:text> @@ -1131,15 +1126,16 @@ </xsl:variable> <xsl:text>&lt;phrase fole="pageno"&gt;</xsl:text> - <xsl:if test="$target[1]/@id"> + <xsl:if test="$target[1]/@id or $target[1]/@xml:id"> <xsl:text>&lt;link linkend="</xsl:text> <xsl:value-of select="$id"/> <xsl:text>"&gt;</xsl:text> </xsl:if> - <fo:basic-link internal-destination="{$id}"> + <fo:basic-link internal-destination="{$id}" + xsl:use-attribute-sets="index.page.number.properties"> <fo:page-number-citation ref-id="{$id}"/> </fo:basic-link> - <xsl:if test="$target[1]/@id"> + <xsl:if test="$target[1]/@id or $target[1]/@xml:id"> <xsl:text>&lt;/link&gt;</xsl:text> </xsl:if> <xsl:text>&lt;/phrase&gt;&#10;</xsl:text> @@ -1162,15 +1158,16 @@ </xsl:variable> <xsl:text>&lt;phrase role="pageno"&gt;</xsl:text> - <xsl:if test="$target[1]/@id"> + <xsl:if test="$target[1]/@id or target[1]/@xml:id"> <xsl:text>&lt;link linkend="</xsl:text> <xsl:value-of select="$id"/> <xsl:text>"&gt;</xsl:text> </xsl:if> - <fo:basic-link internal-destination="{$id}"> + <fo:basic-link internal-destination="{$id}" + xsl:use-attribute-sets="index.page.number.properties"> <fo:page-number-citation ref-id="{$id}"/> </fo:basic-link> - <xsl:if test="$target[1]/@id"> + <xsl:if test="$target[1]/@id or target[1]/@xml:id"> <xsl:text>&lt;/link&gt;</xsl:text> </xsl:if> <xsl:text>&lt;/phrase&gt;&#10;</xsl:text> http://cvs.php.net/viewvc.cgi/phpdoc/docbook/docbook-xsl/fo/autotoc.xsl?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/docbook/docbook-xsl/fo/autotoc.xsl diff -u phpdoc/docbook/docbook-xsl/fo/autotoc.xsl:1.1 phpdoc/docbook/docbook-xsl/fo/autotoc.xsl:1.2 --- phpdoc/docbook/docbook-xsl/fo/autotoc.xsl:1.1 Mon Jan 22 15:54:42 2007 +++ phpdoc/docbook/docbook-xsl/fo/autotoc.xsl Tue Jan 30 18:11:31 2007 @@ -5,7 +5,7 @@ version='1.0'> <!-- ******************************************************************** - $Id: autotoc.xsl,v 1.1 2007/01/22 15:54:42 bjori Exp $ + $Id: autotoc.xsl,v 1.2 2007/01/30 18:11:31 bjori Exp $ ******************************************************************** This file is part of the XSL DocBook Stylesheet distribution. @@ -182,6 +182,8 @@ <!-- ==================================================================== --> <xsl:template name="toc.line"> + <xsl:param name="toc-context" select="NOTANODE"/> + <xsl:variable name="id"> <xsl:call-template name="object.id"/> </xsl:variable> @@ -264,7 +266,9 @@ </xsl:call-template> </xsl:variable> - <xsl:call-template name="toc.line"/> + <xsl:call-template name="toc.line"> + <xsl:with-param name="toc-context" select="$toc-context"/> + </xsl:call-template> <xsl:variable name="nodes" select="qandadiv|qandaentry"/> @@ -287,7 +291,7 @@ <xsl:template match="question" mode="toc"> <xsl:variable name="firstchunk"> - <xsl:apply-templates select="(*[name(.)!='label'])[1]/node()"/> + <xsl:apply-templates select="(*[local-name(.)!='label'])[1]/node()"/> </xsl:variable> <xsl:variable name="deflabel"> @@ -357,7 +361,9 @@ </xsl:call-template> </xsl:variable> - <xsl:call-template name="toc.line"/> + <xsl:call-template name="toc.line"> + <xsl:with-param name="toc-context" select="$toc-context"/> + </xsl:call-template> <xsl:variable name="nodes" select="glossary|bibliography|preface|chapter |reference|part|article|appendix|index"/> @@ -392,7 +398,9 @@ </xsl:call-template> </xsl:variable> - <xsl:call-template name="toc.line"/> + <xsl:call-template name="toc.line"> + <xsl:with-param name="toc-context" select="$toc-context"/> + </xsl:call-template> <xsl:variable name="nodes" select="chapter|appendix|preface|reference| refentry|article|index|glossary| @@ -430,7 +438,9 @@ <xsl:variable name="depth.from.context" select="count(ancestor::*)-count($toc-context/ancestor::*)"/> - <xsl:call-template name="toc.line"/> + <xsl:call-template name="toc.line"> + <xsl:with-param name="toc-context" select="$toc-context"/> + </xsl:call-template> <xsl:if test="$toc.section.depth > 0 and $toc.max.depth > $depth.from.context @@ -450,7 +460,9 @@ <xsl:template match="refentry" mode="toc"> <xsl:param name="toc-context" select="."/> - <xsl:call-template name="toc.line"/> + <xsl:call-template name="toc.line"> + <xsl:with-param name="toc-context" select="$toc-context"/> + </xsl:call-template> </xsl:template> <xsl:template match="preface|chapter|appendix|article" @@ -467,7 +479,9 @@ </xsl:call-template> </xsl:variable> - <xsl:call-template name="toc.line"/> + <xsl:call-template name="toc.line"> + <xsl:with-param name="toc-context" select="$toc-context"/> + </xsl:call-template> <xsl:variable name="nodes" select="section|sect1 |simplesect[$simplesect.in.toc != 0] @@ -503,7 +517,9 @@ </xsl:call-template> </xsl:variable> - <xsl:call-template name="toc.line"/> + <xsl:call-template name="toc.line"> + <xsl:with-param name="toc-context" select="$toc-context"/> + </xsl:call-template> <xsl:variable name="depth.from.context" select="count(ancestor::*)-count($toc-context/ancestor::*)"/> @@ -535,7 +551,9 @@ </xsl:call-template> </xsl:variable> - <xsl:call-template name="toc.line"/> + <xsl:call-template name="toc.line"> + <xsl:with-param name="toc-context" select="$toc-context"/> + </xsl:call-template> <xsl:variable name="reldepth" select="count(ancestor::*)-count($toc-context/ancestor::*)"/> @@ -572,7 +590,9 @@ </xsl:call-template> </xsl:variable> - <xsl:call-template name="toc.line"/> + <xsl:call-template name="toc.line"> + <xsl:with-param name="toc-context" select="$toc-context"/> + </xsl:call-template> <xsl:variable name="reldepth" select="count(ancestor::*)-count($toc-context/ancestor::*)"/> @@ -609,7 +629,9 @@ </xsl:call-template> </xsl:variable> - <xsl:call-template name="toc.line"/> + <xsl:call-template name="toc.line"> + <xsl:with-param name="toc-context" select="$toc-context"/> + </xsl:call-template> <xsl:variable name="reldepth" select="count(ancestor::*)-count($toc-context/ancestor::*)"/> @@ -636,7 +658,9 @@ <xsl:template match="sect5|simplesect" mode="toc"> <xsl:param name="toc-context" select="."/> - <xsl:call-template name="toc.line"/> + <xsl:call-template name="toc.line"> + <xsl:with-param name="toc-context" select="$toc-context"/> + </xsl:call-template> </xsl:template> <xsl:template name="set.toc.indent"> @@ -684,7 +708,9 @@ <xsl:variable name="depth.from.context" select="count(ancestor::*)-count($toc-context/ancestor::*)"/> <xsl:if test="$toc.section.depth &gt;= $depth"> - <xsl:call-template name="toc.line"/> + <xsl:call-template name="toc.line"> + <xsl:with-param name="toc-context" select="$toc-context"/> + </xsl:call-template> <xsl:if test="$toc.section.depth > $depth and $toc.max.depth > $depth.from.context @@ -708,14 +734,18 @@ mode="toc"> <xsl:param name="toc-context" select="."/> - <xsl:call-template name="toc.line"/> + <xsl:call-template name="toc.line"> + <xsl:with-param name="toc-context" select="$toc-context"/> + </xsl:call-template> </xsl:template> <xsl:template match="index" mode="toc"> <xsl:param name="toc-context" select="."/> <xsl:if test="* or $generate.index != 0"> - <xsl:call-template name="toc.line"/> + <xsl:call-template name="toc.line"> + <xsl:with-param name="toc-context" select="$toc-context"/> + </xsl:call-template> </xsl:if> </xsl:template> @@ -764,7 +794,10 @@ </xsl:template> <xsl:template match="figure|table|example|equation|procedure" mode="toc"> - <xsl:call-template name="toc.line"/> + <xsl:param name="toc-context" select="."/> + <xsl:call-template name="toc.line"> + <xsl:with-param name="toc-context" select="$toc-context"/> + </xsl:call-template> </xsl:template> <!-- ==================================================================== --> http://cvs.php.net/viewvc.cgi/phpdoc/docbook/docbook-xsl/fo/axf.xsl?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/docbook/docbook-xsl/fo/axf.xsl diff -u phpdoc/docbook/docbook-xsl/fo/axf.xsl:1.1 phpdoc/docbook/docbook-xsl/fo/axf.xsl:1.2 --- phpdoc/docbook/docbook-xsl/fo/axf.xsl:1.1 Mon Jan 22 15:54:42 2007 +++ phpdoc/docbook/docbook-xsl/fo/axf.xsl Tue Jan 30 18:11:31 2007 @@ -5,7 +5,7 @@ version='1.0'> <!-- ******************************************************************** - $Id: axf.xsl,v 1.1 2007/01/22 15:54:42 bjori Exp $ + $Id: axf.xsl,v 1.2 2007/01/30 18:11:31 bjori Exp $ ******************************************************************** --> <xsl:template name="axf-document-information"> @@ -83,4 +83,28 @@ </xsl:template> +<!-- These properties are added to fo:simple-page-master --> +<xsl:template name="axf-page-master-properties"> + <xsl:param name="page.master" select="''"/> + + <xsl:if test="$crop.marks != 0"> + <xsl:attribute name="axf:printer-marks">crop</xsl:attribute> + <xsl:attribute name="axf:bleed"><xsl:value-of + select="$crop.mark.bleed"/></xsl:attribute> + <xsl:attribute name="axf:printer-marks-line-width"><xsl:value-of + select="$crop.mark.width"/></xsl:attribute> + <xsl:attribute name="axf:crop-offset"><xsl:value-of + select="$crop.mark.offset"/></xsl:attribute> + </xsl:if> + + <xsl:call-template name="user-axf-page-master-properties"> + <xsl:with-param name="page.master" select="$page.master"/> + </xsl:call-template> + +</xsl:template> + +<xsl:template name="user-axf-page-master-properties"> + <xsl:param name="page.master" select="''"/> +</xsl:template> + </xsl:stylesheet> http://cvs.php.net/viewvc.cgi/phpdoc/docbook/docbook-xsl/fo/biblio.xsl?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/docbook/docbook-xsl/fo/biblio.xsl diff -u phpdoc/docbook/docbook-xsl/fo/biblio.xsl:1.1 phpdoc/docbook/docbook-xsl/fo/biblio.xsl:1.2 --- phpdoc/docbook/docbook-xsl/fo/biblio.xsl:1.1 Mon Jan 22 15:54:42 2007 +++ phpdoc/docbook/docbook-xsl/fo/biblio.xsl Tue Jan 30 18:11:31 2007 @@ -4,7 +4,7 @@ version='1.0'> <!-- ******************************************************************** - $Id: biblio.xsl,v 1.1 2007/01/22 15:54:42 bjori Exp $ + $Id: biblio.xsl,v 1.2 2007/01/30 18:11:31 bjori Exp $ ******************************************************************** This file is part of the XSL DocBook Stylesheet distribution. @@ -95,6 +95,7 @@ </xsl:template> <xsl:template match="bibliography/bibliographyinfo"></xsl:template> +<xsl:template match="bibliography/info"></xsl:template> <xsl:template match="bibliography/title"></xsl:template> <xsl:template match="bibliography/subtitle"></xsl:template> <xsl:template match="bibliography/titleabbrev"></xsl:template> @@ -132,6 +133,7 @@ </xsl:if> <xsl:apply-templates select="*[not(self::blockinfo) + and not(self::info) and not(self::title) and not(self::titleabbrev)]"/> </fo:block> @@ -151,7 +153,8 @@ <xsl:choose> <xsl:when test="string(.) = ''"> <xsl:variable name="bib" select="document($bibliography.collection,.)"/> - <xsl:variable name="entry" select="$bib/bibliography/*[@id=$id][1]"/> + <xsl:variable name="entry" select="$bib/bibliography/ + *[@id=$id or @xml:id=$id][1]"/> <xsl:choose> <xsl:when test="$entry"> <xsl:choose> @@ -202,7 +205,8 @@ <xsl:choose> <xsl:when test="string(.) = ''"> <xsl:variable name="bib" select="document($bibliography.collection,.)"/> - <xsl:variable name="entry" select="$bib/bibliography/*[@id=$id][1]"/> + <xsl:variable name="entry" select="$bib/bibliography/ + *[@id=$id or @xml:id=$id][1]"/> <xsl:choose> <xsl:when test="$entry"> <xsl:choose> @@ -261,9 +265,9 @@ <xsl:value-of select="$node/@xreflabel"/> <xsl:text>] </xsl:text> </xsl:when> - <xsl:when test="$node/@id"> + <xsl:when test="$node/@id or $node/@xml:id"> <xsl:text>[</xsl:text> - <xsl:value-of select="$node/@id"/> + <xsl:value-of select="($node/@id|$node/@xml:id)[1]"/> <xsl:text>] </xsl:text> </xsl:when> <xsl:otherwise><!-- nop --></xsl:otherwise> @@ -316,7 +320,8 @@ </fo:inline> </xsl:template> -<xsl:template match="artheader|articleinfo" mode="bibliography.mode"> +<xsl:template match="artheader|articleinfo|article/info" + mode="bibliography.mode"> <fo:inline> <xsl:apply-templates mode="bibliography.mode"/> <xsl:value-of select="$biblioentry.item.separator"/> http://cvs.php.net/viewvc.cgi/phpdoc/docbook/docbook-xsl/fo/block.xsl?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/docbook/docbook-xsl/fo/block.xsl diff -u phpdoc/docbook/docbook-xsl/fo/block.xsl:1.1 phpdoc/docbook/docbook-xsl/fo/block.xsl:1.2 --- phpdoc/docbook/docbook-xsl/fo/block.xsl:1.1 Mon Jan 22 15:54:42 2007 +++ phpdoc/docbook/docbook-xsl/fo/block.xsl Tue Jan 30 18:11:31 2007 @@ -4,7 +4,7 @@ version='1.0'> <!-- ******************************************************************** - $Id: block.xsl,v 1.1 2007/01/22 15:54:42 bjori Exp $ + $Id: block.xsl,v 1.2 2007/01/30 18:11:31 bjori Exp $ ******************************************************************** This file is part of the XSL DocBook Stylesheet distribution. @@ -16,7 +16,7 @@ <!-- ==================================================================== --> <!-- What should we do about styling blockinfo? --> -<xsl:template match="blockinfo"> +<xsl:template match="blockinfo|info"> <!-- suppress --> </xsl:template> @@ -24,9 +24,7 @@ <xsl:template name="block.object"> <fo:block> - <xsl:if test="@id"> - <xsl:attribute name="id"><xsl:value-of select="@id"/></xsl:attribute> - </xsl:if> + <xsl:call-template name="anchor"/> <xsl:apply-templates/> </fo:block> </xsl:template> @@ -42,23 +40,24 @@ <xsl:template match="simpara"> <fo:block xsl:use-attribute-sets="normal.para.spacing"> - <xsl:if test="@id"> - <xsl:attribute name="id"><xsl:value-of select="@id"/></xsl:attribute> - </xsl:if> + <xsl:call-template name="anchor"/> <xsl:apply-templates/> </fo:block> </xsl:template> <xsl:template match="formalpara"> <fo:block xsl:use-attribute-sets="normal.para.spacing"> - <xsl:if test="@id"> - <xsl:attribute name="id"><xsl:value-of select="@id"/></xsl:attribute> - </xsl:if> + <xsl:call-template name="anchor"/> <xsl:apply-templates/> </fo:block> </xsl:template> -<xsl:template match="formalpara/title"> +<!-- Only use title from info --> +<xsl:template match="formalpara/info"> + <xsl:apply-templates select="title"/> +</xsl:template> + +<xsl:template match="formalpara/title|formalpara/info/title"> <xsl:variable name="titleStr"> <xsl:apply-templates/> </xsl:variable> @@ -90,7 +89,7 @@ <fo:block xsl:use-attribute-sets="blockquote.properties"> <xsl:call-template name="anchor"/> <fo:block> - <xsl:if test="title"> + <xsl:if test="title|info/title"> <fo:block xsl:use-attribute-sets="formal.title.properties"> <xsl:apply-templates select="." mode="object.title.markup"/> </fo:block> @@ -263,10 +262,11 @@ <xsl:otherwise> <xsl:variable name="content"> <fo:block xsl:use-attribute-sets="sidebar.properties" - id="{$id}"> - <xsl:call-template name="sidebar.titlepage"/> + id="{$id}"> + <xsl:call-template name="sidebar.titlepage"/> <xsl:apply-templates select="node()[not(self::title) and - not(self::sidebarinfo)]"/> + not(self::info) and + not(self::sidebarinfo)]"/> </fo:block> </xsl:variable> @@ -326,9 +326,9 @@ </xsl:template> -<xsl:template match="sidebar/title|sidebarinfo"/> +<xsl:template match="sidebar/title|sidebarinfo|sidebar/info"/> -<xsl:template match="sidebar/title|sidebarinfo/title" +<xsl:template match="sidebar/title|sidebarinfo/title|sidebar/info/title" mode="titlepage.mode" priority="1"> <fo:block xsl:use-attribute-sets="sidebar.title.properties"> <xsl:apply-templates/> @@ -399,14 +399,12 @@ <xsl:template match="abstract"> <fo:block xsl:use-attribute-sets="abstract.properties"> - <xsl:if test="@id"> - <xsl:attribute name="id"><xsl:value-of select="@id"/></xsl:attribute> - </xsl:if> + <xsl:call-template name="anchor"/> <xsl:apply-templates/> </fo:block> </xsl:template> -<xsl:template match="abstract/title"> +<xsl:template match="abstract/title|abstract/info/title"> <fo:block xsl:use-attribute-sets="abstract.title.properties"> <xsl:apply-templates/> </fo:block> @@ -506,9 +504,7 @@ <xsl:template match="revhistory"> <fo:table table-layout="fixed" xsl:use-attribute-sets="revhistory.table.properties"> - <xsl:if test="@id"> - <xsl:attribute name="id"><xsl:value-of select="@id"/></xsl:attribute> - </xsl:if> + <xsl:call-template name="anchor"/> <fo:table-column column-number="1" column-width="proportional-column-width(1)"/> <fo:table-column column-number="2" column-width="proportional-column-width(1)"/> <fo:table-column column-number="3" column-width="proportional-column-width(1)"/> @@ -535,9 +531,7 @@ <fo:table-row> <fo:table-cell xsl:use-attribute-sets="revhistory.table.cell.properties"> <fo:block> - <xsl:if test="@id"> - <xsl:attribute name="id"><xsl:value-of select="@id"/></xsl:attribute> - </xsl:if> + <xsl:call-template name="anchor"/> <xsl:if test="$revnumber"> <xsl:call-template name="gentext"> <xsl:with-param name="key" select="'Revision'"/> @@ -602,9 +596,7 @@ <xsl:template match="ackno"> <fo:block xsl:use-attribute-sets="normal.para.spacing"> - <xsl:if test="@id"> - <xsl:attribute name="id"><xsl:value-of select="@id"/></xsl:attribute> - </xsl:if> + <xsl:call-template name="anchor"/> <xsl:apply-templates/> </fo:block> </xsl:template> http://cvs.php.net/viewvc.cgi/phpdoc/docbook/docbook-xsl/fo/callout.xsl?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/docbook/docbook-xsl/fo/callout.xsl diff -u phpdoc/docbook/docbook-xsl/fo/callout.xsl:1.1 phpdoc/docbook/docbook-xsl/fo/callout.xsl:1.2 --- phpdoc/docbook/docbook-xsl/fo/callout.xsl:1.1 Mon Jan 22 15:54:42 2007 +++ phpdoc/docbook/docbook-xsl/fo/callout.xsl Tue Jan 30 18:11:31 2007 @@ -8,7 +8,7 @@ version='1.0'> <!-- ******************************************************************** - $Id: callout.xsl,v 1.1 2007/01/22 15:54:42 bjori Exp $ + $Id: callout.xsl,v 1.2 2007/01/30 18:11:31 bjori Exp $ ******************************************************************** This file is part of the XSL DocBook Stylesheet distribution. @@ -84,7 +84,8 @@ </xsl:template> <xsl:template match="co"> - <fo:inline id="{@id}"> + <fo:inline> + <xsl:call-template name="anchor"/> <xsl:apply-templates select="." mode="callout-bug"/> </fo:inline> </xsl:template> @@ -94,7 +95,6 @@ <!-- "over there" as if it were "right here" --> <xsl:variable name="co" select="key('id', @linkend)"/> - <xsl:variable name="id" select="@id"/> <xsl:choose> <xsl:when test="not($co)"> <xsl:message> @@ -110,11 +110,7 @@ </xsl:when> <xsl:otherwise> <fo:inline> - <xsl:if test="$id != ''"> - <xsl:attribute name="id"> - <xsl:value-of select="$id"/> - </xsl:attribute> - </xsl:if> + <xsl:call-template name="anchor"/> <xsl:apply-templates select="$co" mode="callout-bug"/> </fo:inline> </xsl:otherwise> http://cvs.php.net/viewvc.cgi/phpdoc/docbook/docbook-xsl/fo/component.xsl?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/docbook/docbook-xsl/fo/component.xsl diff -u phpdoc/docbook/docbook-xsl/fo/component.xsl:1.1 phpdoc/docbook/docbook-xsl/fo/component.xsl:1.2 --- phpdoc/docbook/docbook-xsl/fo/component.xsl:1.1 Mon Jan 22 15:54:42 2007 +++ phpdoc/docbook/docbook-xsl/fo/component.xsl Tue Jan 30 18:11:31 2007 @@ -5,7 +5,7 @@ version='1.0'> <!-- ******************************************************************** - $Id: component.xsl,v 1.1 2007/01/22 15:54:42 bjori Exp $ + $Id: component.xsl,v 1.2 2007/01/30 18:11:31 bjori Exp $ ******************************************************************** This file is part of the XSL DocBook Stylesheet distribution. @@ -366,6 +366,7 @@ </xsl:template> <xsl:template match="preface/docinfo|prefaceinfo"></xsl:template> +<xsl:template match="preface/info"></xsl:template> <xsl:template match="preface/title"></xsl:template> <xsl:template match="preface/titleabbrev"></xsl:template> <xsl:template match="preface/subtitle"></xsl:template> @@ -455,6 +456,7 @@ </xsl:template> <xsl:template match="chapter/docinfo|chapterinfo"></xsl:template> +<xsl:template match="chapter/info"></xsl:template> <xsl:template match="chapter/title"></xsl:template> <xsl:template match="chapter/titleabbrev"></xsl:template> <xsl:template match="chapter/subtitle"></xsl:template> @@ -545,6 +547,7 @@ </xsl:template> <xsl:template match="appendix/docinfo|appendixinfo"></xsl:template> +<xsl:template match="appendix/info"></xsl:template> <xsl:template match="appendix/title"></xsl:template> <xsl:template match="appendix/titleabbrev"></xsl:template> <xsl:template match="appendix/subtitle"></xsl:template> @@ -636,6 +639,7 @@ <xsl:template match="article/artheader"></xsl:template> <xsl:template match="article/articleinfo"></xsl:template> +<xsl:template match="article/info"></xsl:template> <xsl:template match="article/title"></xsl:template> <xsl:template match="article/subtitle"></xsl:template> <xsl:template match="article/titleabbrev"></xsl:template> http://cvs.php.net/viewvc.cgi/phpdoc/docbook/docbook-xsl/fo/division.xsl?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/docbook/docbook-xsl/fo/division.xsl diff -u phpdoc/docbook/docbook-xsl/fo/division.xsl:1.1 phpdoc/docbook/docbook-xsl/fo/division.xsl:1.2 --- phpdoc/docbook/docbook-xsl/fo/division.xsl:1.1 Mon Jan 22 15:54:42 2007 +++ phpdoc/docbook/docbook-xsl/fo/division.xsl Tue Jan 30 18:11:31 2007 @@ -5,7 +5,7 @@ version='1.0'> <!-- ******************************************************************** - $Id: division.xsl,v 1.1 2007/01/22 15:54:42 bjori Exp $ + $Id: division.xsl,v 1.2 2007/01/30 18:11:31 bjori Exp $ ******************************************************************** This file is part of the XSL DocBook Stylesheet distribution. http://cvs.php.net/viewvc.cgi/phpdoc/docbook/docbook-xsl/fo/docbook.xsl?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/docbook/docbook-xsl/fo/docbook.xsl diff -u phpdoc/docbook/docbook-xsl/fo/docbook.xsl:1.1 phpdoc/docbook/docbook-xsl/fo/docbook.xsl:1.2 --- phpdoc/docbook/docbook-xsl/fo/docbook.xsl:1.1 Mon Jan 22 15:54:42 2007 +++ phpdoc/docbook/docbook-xsl/fo/docbook.xsl Tue Jan 30 18:11:31 2007 @@ -13,7 +13,7 @@ <xsl:output method="xml" indent="no"/> <!-- ******************************************************************** - $Id: docbook.xsl,v 1.1 2007/01/22 15:54:42 bjori Exp $ + $Id: docbook.xsl,v 1.2 2007/01/30 18:11:31 bjori Exp $ ******************************************************************** This file is part of the XSL DocBook Stylesheet distribution. @@ -72,8 +72,8 @@ <xsl:include href="pi.xsl"/> <xsl:include href="spaces.xsl"/> <xsl:include href="ebnf.xsl"/> -<xsl:include href="docbookng.xsl"/> <xsl:include href="../html/chunker.xsl"/> +<xsl:include href="annotations.xsl"/> <xsl:include href="../common/stripns.xsl"/> <xsl:include href="fop.xsl"/> http://cvs.php.net/viewvc.cgi/phpdoc/docbook/docbook-xsl/fo/ebnf.xsl?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/docbook/docbook-xsl/fo/ebnf.xsl diff -u phpdoc/docbook/docbook-xsl/fo/ebnf.xsl:1.1 phpdoc/docbook/docbook-xsl/fo/ebnf.xsl:1.2 --- phpdoc/docbook/docbook-xsl/fo/ebnf.xsl:1.1 Mon Jan 22 15:54:42 2007 +++ phpdoc/docbook/docbook-xsl/fo/ebnf.xsl Tue Jan 30 18:11:31 2007 @@ -6,7 +6,7 @@ version='1.0'> <!-- ******************************************************************** - $Id: ebnf.xsl,v 1.1 2007/01/22 15:54:42 bjori Exp $ + $Id: ebnf.xsl,v 1.2 2007/01/30 18:11:31 bjori Exp $ ******************************************************************** This file is part of the XSL DocBook Stylesheet distribution. @@ -18,7 +18,7 @@ <doc:reference xmlns=""> <referenceinfo> <releaseinfo role="meta"> -$Id: ebnf.xsl,v 1.1 2007/01/22 15:54:42 bjori Exp $ +$Id: ebnf.xsl,v 1.2 2007/01/30 18:11:31 bjori Exp $ </releaseinfo> <author><surname>Walsh</surname> <firstname>Norman</firstname></author> http://cvs.php.net/viewvc.cgi/phpdoc/docbook/docbook-xsl/fo/fo-patch-for-fop.xsl?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/docbook/docbook-xsl/fo/fo-patch-for-fop.xsl diff -u phpdoc/docbook/docbook-xsl/fo/fo-patch-for-fop.xsl:1.1 phpdoc/docbook/docbook-xsl/fo/fo-patch-for-fop.xsl:1.2 --- phpdoc/docbook/docbook-xsl/fo/fo-patch-for-fop.xsl:1.1 Mon Jan 22 15:54:42 2007 +++ phpdoc/docbook/docbook-xsl/fo/fo-patch-for-fop.xsl Tue Jan 30 18:11:31 2007 @@ -5,7 +5,7 @@ version="1.0"> <!-- ******************************************************************** - $Id: fo-patch-for-fop.xsl,v 1.1 2007/01/22 15:54:42 bjori Exp $ + $Id: fo-patch-for-fop.xsl,v 1.2 2007/01/30 18:11:31 bjori Exp $ ******************************************************************** This file is part of the DocBook XSL Stylesheet distribution. http://cvs.php.net/viewvc.cgi/phpdoc/docbook/docbook-xsl/fo/fo-rtf.xsl?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/docbook/docbook-xsl/fo/fo-rtf.xsl diff -u phpdoc/docbook/docbook-xsl/fo/fo-rtf.xsl:1.1 phpdoc/docbook/docbook-xsl/fo/fo-rtf.xsl:1.2 --- phpdoc/docbook/docbook-xsl/fo/fo-rtf.xsl:1.1 Mon Jan 22 15:54:42 2007 +++ phpdoc/docbook/docbook-xsl/fo/fo-rtf.xsl Tue Jan 30 18:11:31 2007 @@ -7,7 +7,7 @@ version="1.0"> <!-- ******************************************************************** - $Id: fo-rtf.xsl,v 1.1 2007/01/22 15:54:42 bjori Exp $ + $Id: fo-rtf.xsl,v 1.2 2007/01/30 18:11:31 bjori Exp $ ******************************************************************** This file is part of the DocBook XSL Stylesheet distribution. http://cvs.php.net/viewvc.cgi/phpdoc/docbook/docbook-xsl/fo/fo.xsl?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/docbook/docbook-xsl/fo/fo.xsl diff -u phpdoc/docbook/docbook-xsl/fo/fo.xsl:1.1 phpdoc/docbook/docbook-xsl/fo/fo.xsl:1.2 --- phpdoc/docbook/docbook-xsl/fo/fo.xsl:1.1 Mon Jan 22 15:54:42 2007 +++ phpdoc/docbook/docbook-xsl/fo/fo.xsl Tue Jan 30 18:11:31 2007 @@ -4,7 +4,7 @@ version='1.0'> <!-- ******************************************************************** - $Id: fo.xsl,v 1.1 2007/01/22 15:54:42 bjori Exp $ + $Id: fo.xsl,v 1.2 2007/01/30 18:11:31 bjori Exp $ ******************************************************************** This file is part of the XSL DocBook Stylesheet distribution. http://cvs.php.net/viewvc.cgi/phpdoc/docbook/docbook-xsl/fo/footnote.xsl?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/docbook/docbook-xsl/fo/footnote.xsl diff -u phpdoc/docbook/docbook-xsl/fo/footnote.xsl:1.1 phpdoc/docbook/docbook-xsl/fo/footnote.xsl:1.2 --- phpdoc/docbook/docbook-xsl/fo/footnote.xsl:1.1 Mon Jan 22 15:54:42 2007 +++ phpdoc/docbook/docbook-xsl/fo/footnote.xsl Tue Jan 30 18:11:31 2007 @@ -6,7 +6,7 @@ version='1.0'> <!-- ******************************************************************** - $Id: footnote.xsl,v 1.1 2007/01/22 15:54:42 bjori Exp $ + $Id: footnote.xsl,v 1.2 2007/01/30 18:11:31 bjori Exp $ ******************************************************************** This file is part of the XSL DocBook Stylesheet distribution. http://cvs.php.net/viewvc.cgi/phpdoc/docbook/docbook-xsl/fo/fop.xsl?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/docbook/docbook-xsl/fo/fop.xsl diff -u phpdoc/docbook/docbook-xsl/fo/fop.xsl:1.1 phpdoc/docbook/docbook-xsl/fo/fop.xsl:1.2 --- phpdoc/docbook/docbook-xsl/fo/fop.xsl:1.1 Mon Jan 22 15:54:42 2007 +++ phpdoc/docbook/docbook-xsl/fo/fop.xsl Tue Jan 30 18:11:31 2007 @@ -5,7 +5,7 @@ version='1.0'> <!-- ******************************************************************** - $Id: fop.xsl,v 1.1 2007/01/22 15:54:42 bjori Exp $ + $Id: fop.xsl,v 1.2 2007/01/30 18:11:31 bjori Exp $ ******************************************************************** (c) Stephane Bline Peregrine Systems 2001 Driver file to allow pdf bookmarking (based on fop implementation). @@ -23,8 +23,11 @@ "'aaaccccddeeeeeegggghhiiiiijklllllnnnnooorrrsssstttuuuuuuwyzzzAAACCCCDDEEEEEEGGGGHHIIIIIJKLLLLLNNNNOOORRRSSSSTTTUUUUUUWYYZZZ'"/> <xsl:template match="*" mode="fop.outline"> - <xsl:if test="@id"> - <fox:destination internal-destination="{@id}"/> + <xsl:variable name="id"> + <xsl:value-of select="(@id|@xml:id)[1]"/> + </xsl:variable> + <xsl:if test="$id != ''"> + <fox:destination internal-destination="{$id}"/> </xsl:if> <xsl:apply-templates select="*" mode="fop.outline"/> </xsl:template> http://cvs.php.net/viewvc.cgi/phpdoc/docbook/docbook-xsl/fo/formal.xsl?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/docbook/docbook-xsl/fo/formal.xsl diff -u phpdoc/docbook/docbook-xsl/fo/formal.xsl:1.1 phpdoc/docbook/docbook-xsl/fo/formal.xsl:1.2 --- phpdoc/docbook/docbook-xsl/fo/formal.xsl:1.1 Mon Jan 22 15:54:42 2007 +++ phpdoc/docbook/docbook-xsl/fo/formal.xsl Tue Jan 30 18:11:31 2007 @@ -4,7 +4,7 @@ version='1.0'> <!-- ******************************************************************** - $Id: formal.xsl,v 1.1 2007/01/22 15:54:42 bjori Exp $ + $Id: formal.xsl,v 1.2 2007/01/30 18:11:31 bjori Exp $ ******************************************************************** This file is part of the XSL DocBook Stylesheet distribution. http://cvs.php.net/viewvc.cgi/phpdoc/docbook/docbook-xsl/fo/glossary.xsl?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/docbook/docbook-xsl/fo/glossary.xsl diff -u phpdoc/docbook/docbook-xsl/fo/glossary.xsl:1.1 phpdoc/docbook/docbook-xsl/fo/glossary.xsl:1.2 --- phpdoc/docbook/docbook-xsl/fo/glossary.xsl:1.1 Mon Jan 22 15:54:42 2007 +++ phpdoc/docbook/docbook-xsl/fo/glossary.xsl Tue Jan 30 18:11:31 2007 @@ -1,10 +1,14 @@ <?xml version='1.0'?> +<!DOCTYPE xsl:stylesheet [ +<!ENTITY % common.entities SYSTEM "../common/entities.ent"> +%common.entities; +]> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format" version='1.0'> <!-- ******************************************************************** - $Id: glossary.xsl,v 1.1 2007/01/22 15:54:42 bjori Exp $ + $Id: glossary.xsl,v 1.2 2007/01/30 18:11:31 bjori Exp $ ******************************************************************** This file is part of the XSL DocBook Stylesheet distribution. @@ -64,6 +68,10 @@ </xsl:choose> </xsl:variable> + <xsl:variable name="language"> + <xsl:call-template name="l10n.language"/> + </xsl:variable> + <fo:block id="{$id}"> <xsl:call-template name="glossary.titlepage"/> </fo:block> @@ -81,17 +89,50 @@ <fo:list-block provisional-distance-between-starts="{$width}" provisional-label-separation="{$glossterm.separation}" xsl:use-attribute-sets="normal.para.spacing"> - <xsl:apply-templates select="$entries" mode="glossary.as.list"/> + <xsl:choose> + <xsl:when test="$glossary.sort != 0"> + <xsl:apply-templates select="$entries" mode="glossary.as.list"> + <xsl:sort lang="{$language}" + select="translate(glossterm, &lowercase;, + &uppercase;)"/> + </xsl:apply-templates> + </xsl:when> + <xsl:otherwise> + <xsl:apply-templates select="$entries" mode="glossary.as.list"/> + </xsl:otherwise> + </xsl:choose> </fo:list-block> </xsl:if> </xsl:when> <xsl:when test="$presentation = 'blocks'"> <xsl:apply-templates select="$divs" mode="glossary.as.blocks"/> - <xsl:apply-templates select="$entries" mode="glossary.as.blocks"/> + <xsl:choose> + <xsl:when test="$glossary.sort != 0"> + <xsl:apply-templates select="$entries" mode="glossary.as.blocks"> + <xsl:sort lang="{$language}" + select="translate(glossterm, &lowercase;, + &uppercase;)"/> + </xsl:apply-templates> + </xsl:when> + <xsl:otherwise> + <xsl:apply-templates select="$entries" mode="glossary.as.blocks"/> + </xsl:otherwise> + </xsl:choose> </xsl:when> <xsl:when test="$glossary.as.blocks != 0"> <xsl:apply-templates select="$divs" mode="glossary.as.blocks"/> - <xsl:apply-templates select="$entries" mode="glossary.as.blocks"/> + <xsl:choose> + <xsl:when test="$glossary.sort != 0"> + <xsl:apply-templates select="$entries" mode="glossary.as.blocks"> + <xsl:sort lang="{$language}" + select="translate(glossterm, &lowercase;, + &uppercase;)"/> + </xsl:apply-templates> + </xsl:when> + <xsl:otherwise> + <xsl:apply-templates select="$entries" mode="glossary.as.blocks"/> + </xsl:otherwise> + </xsl:choose> </xsl:when> <xsl:otherwise> <xsl:apply-templates select="$divs" mode="glossary.as.list"> @@ -101,7 +142,18 @@ <fo:list-block provisional-distance-between-starts="{$width}" provisional-label-separation="{$glossterm.separation}" xsl:use-attribute-sets="normal.para.spacing"> - <xsl:apply-templates select="$entries" mode="glossary.as.list"/> + <xsl:choose> + <xsl:when test="$glossary.sort != 0"> + <xsl:apply-templates select="$entries" mode="glossary.as.list"> + <xsl:sort lang="{$language}" + select="translate(glossterm, &lowercase;, + &uppercase;)"/> + </xsl:apply-templates> + </xsl:when> + <xsl:otherwise> + <xsl:apply-templates select="$entries" mode="glossary.as.list"/> + </xsl:otherwise> + </xsl:choose> </fo:list-block> </xsl:if> </xsl:otherwise> @@ -122,6 +174,7 @@ <xsl:attribute name="language"> <xsl:call-template name="l10n.language"/> </xsl:attribute> + <xsl:attribute name="format"> <xsl:call-template name="page.number.format"> <xsl:with-param name="master-reference" select="$master-reference"/> @@ -175,6 +228,7 @@ </xsl:template> <xsl:template match="glossary/glossaryinfo"></xsl:template> +<xsl:template match="glossary/info"></xsl:template> <xsl:template match="glossary/title"></xsl:template> <xsl:template match="glossary/subtitle"></xsl:template> <xsl:template match="glossary/titleabbrev"></xsl:template> @@ -209,8 +263,12 @@ </xsl:choose> </xsl:variable> - <xsl:if test="title"> - <xsl:apply-templates select="title" mode="list.title.mode"/> + <xsl:variable name="language"> + <xsl:call-template name="l10n.language"/> + </xsl:variable> + + <xsl:if test="title or info/title"> + <xsl:apply-templates select="(title|info/title)[1]" mode="list.title.mode"/> </xsl:if> <xsl:choose> @@ -218,20 +276,64 @@ <fo:list-block provisional-distance-between-starts="{$width}" provisional-label-separation="{$glossterm.separation}" xsl:use-attribute-sets="normal.para.spacing"> - <xsl:apply-templates mode="glossary.as.list" select="glossentry"/> + <xsl:choose> + <xsl:when test="$glossary.sort != 0"> + <xsl:apply-templates select="glossentry" mode="glossary.as.list"> + <xsl:sort lang="{$language}" + select="translate(glossterm, &lowercase;, + &uppercase;)"/> + </xsl:apply-templates> + </xsl:when> + <xsl:otherwise> + <xsl:apply-templates select="glossentry" mode="glossary.as.list"/> + </xsl:otherwise> + </xsl:choose> </fo:list-block> </xsl:when> <xsl:when test="$presentation = 'blocks'"> - <xsl:apply-templates mode="glossary.as.blocks" select="glossentry"/> + <xsl:choose> + <xsl:when test="$glossary.sort != 0"> + <xsl:apply-templates select="glossentry" mode="glossary.as.blocks"> + <xsl:sort lang="{$language}" + select="translate(glossterm, &lowercase;, + &uppercase;)"/> + </xsl:apply-templates> + </xsl:when> + <xsl:otherwise> + <xsl:apply-templates select="glossentry" mode="glossary.as.blocks"/> + </xsl:otherwise> + </xsl:choose> </xsl:when> <xsl:when test="$glosslist.as.blocks != 0"> - <xsl:apply-templates mode="glossary.as.blocks" select="glossentry"/> + <xsl:choose> + <xsl:when test="$glossary.sort != 0"> + <xsl:apply-templates select="glossentry" mode="glossary.as.blocks"> + <xsl:sort lang="{$language}" + select="translate(glossterm, &lowercase;, + &uppercase;)"/> + </xsl:apply-templates> + </xsl:when> + <xsl:otherwise> + <xsl:apply-templates select="glossentry" mode="glossary.as.blocks"/> + </xsl:otherwise> + </xsl:choose> </xsl:when> <xsl:otherwise> <fo:list-block provisional-distance-between-starts="{$width}" provisional-label-separation="{$glossterm.separation}" xsl:use-attribute-sets="normal.para.spacing"> - <xsl:apply-templates mode="glossary.as.list" select="glossentry"/> + <xsl:choose> + <xsl:when test="$glossary.sort != 0"> + <xsl:apply-templates select="glossentry" mode="glossary.as.list"> + <xsl:sort lang="{$language}" + select="translate(glossterm, &lowercase;, + &uppercase;)"/> + </xsl:apply-templates> + </xsl:when> + <xsl:otherwise> + <xsl:apply-templates select="glossentry" mode="glossary.as.list"/> + </xsl:otherwise> + </xsl:choose> </fo:list-block> </xsl:otherwise> </xsl:choose> @@ -300,6 +402,10 @@ </xsl:choose> </xsl:variable> + <xsl:variable name="language"> + <xsl:call-template name="l10n.language"/> + </xsl:variable> + <xsl:if test="$glossary.collection = ''"> <xsl:message> <xsl:text>Warning: processing automatic glossary </xsl:text> @@ -362,40 +468,84 @@ <fo:list-block provisional-distance-between-starts="{$width}" provisional-label-separation="{$glossterm.separation}" xsl:use-attribute-sets="normal.para.spacing"> - <xsl:for-each select="$collection//glossentry"> - <xsl:variable name="cterm" select="glossterm"/> - <xsl:if test="$terms[@baseform = $cterm or . = $cterm]"> - <xsl:apply-templates select="." mode="auto-glossary-as-list"/> - </xsl:if> - </xsl:for-each> + <xsl:choose> + <xsl:when test="$glossary.sort != 0"> + <xsl:for-each select="$collection//glossentry"> + <xsl:sort lang="{$language}" + select="translate(glossterm, &lowercase;, + &uppercase;)"/> + <xsl:variable name="cterm" select="glossterm"/> + <xsl:if test="$terms[@baseform = $cterm or . = $cterm]"> + <xsl:apply-templates select="." + mode="auto-glossary-as-list"/> + </xsl:if> + </xsl:for-each> + </xsl:when> + <xsl:otherwise> + <xsl:for-each select="$collection//glossentry"> + <xsl:variable name="cterm" select="glossterm"/> + <xsl:if test="$terms[@baseform = $cterm or . = $cterm]"> + <xsl:apply-templates select="." + mode="auto-glossary-as-list"/> + </xsl:if> + </xsl:for-each> + </xsl:otherwise> + </xsl:choose> </fo:list-block> </xsl:when> - <xsl:when test="$presentation = 'blocks'"> - <xsl:for-each select="$collection//glossentry"> - <xsl:variable name="cterm" select="glossterm"/> - <xsl:if test="$terms[@baseform = $cterm or . = $cterm]"> - <xsl:apply-templates select="." mode="auto-glossary-as-blocks"/> - </xsl:if> - </xsl:for-each> - </xsl:when> - <xsl:when test="$glossary.as.blocks != 0"> - <xsl:for-each select="$collection//glossentry"> - <xsl:variable name="cterm" select="glossterm"/> - <xsl:if test="$terms[@baseform = $cterm or . = $cterm]"> - <xsl:apply-templates select="." mode="auto-glossary-as-blocks"/> - </xsl:if> - </xsl:for-each> + <xsl:when test="$presentation = 'blocks' or + $glossary.as.blocks != 0"> + <xsl:choose> + <xsl:when test="$glossary.sort != 0"> + <xsl:for-each select="$collection//glossentry"> + <xsl:sort lang="{$language}" + select="translate(glossterm, &lowercase;, + &uppercase;)"/> + <xsl:variable name="cterm" select="glossterm"/> + <xsl:if test="$terms[@baseform = $cterm or . = $cterm]"> + <xsl:apply-templates select="." + mode="auto-glossary-as-blocks"/> + </xsl:if> + </xsl:for-each> + </xsl:when> + <xsl:otherwise> + <xsl:for-each select="$collection//glossentry"> + <xsl:variable name="cterm" select="glossterm"/> + <xsl:if test="$terms[@baseform = $cterm or . = $cterm]"> + <xsl:apply-templates select="." + mode="auto-glossary-as-blocks"/> + </xsl:if> + </xsl:for-each> + </xsl:otherwise> + </xsl:choose> </xsl:when> <xsl:otherwise> <fo:list-block provisional-distance-between-starts="{$width}" provisional-label-separation="{$glossterm.separation}" xsl:use-attribute-sets="normal.para.spacing"> - <xsl:for-each select="$collection//glossentry"> - <xsl:variable name="cterm" select="glossterm"/> - <xsl:if test="$terms[@baseform = $cterm or . = $cterm]"> - <xsl:apply-templates select="." mode="auto-glossary-as-list"/> - </xsl:if> - </xsl:for-each> + <xsl:choose> + <xsl:when test="$glossary.sort != 0"> + <xsl:for-each select="$collection//glossentry"> + <xsl:sort lang="{$language}" + select="translate(glossterm, &lowercase;, + &uppercase;)"/> + <xsl:variable name="cterm" select="glossterm"/> + <xsl:if test="$terms[@baseform = $cterm or . = $cterm]"> + <xsl:apply-templates select="." + mode="auto-glossary-as-list"/> + </xsl:if> + </xsl:for-each> + </xsl:when> + <xsl:otherwise> + <xsl:for-each select="$collection//glossentry"> + <xsl:variable name="cterm" select="glossterm"/> + <xsl:if test="$terms[@baseform = $cterm or . = $cterm]"> + <xsl:apply-templates select="." + mode="auto-glossary-as-list"/> + </xsl:if> + </xsl:for-each> + </xsl:otherwise> + </xsl:choose> </fo:list-block> </xsl:otherwise> </xsl:choose> @@ -405,7 +555,7 @@ <xsl:template match="book/glossary[@role='auto']| part/glossary[@role='auto']| - /glossary[@role='auto']" priority="2.5"> + /glossary[@role='auto']" priority="2.5"> <xsl:variable name="id"><xsl:call-template name="object.id"/></xsl:variable> <xsl:variable name="master-reference"> @@ -480,6 +630,10 @@ <xsl:param name="width" select="$glossterm.width"/> <xsl:param name="terms" select="."/> + <xsl:variable name="language"> + <xsl:call-template name="l10n.language"/> + </xsl:variable> + <xsl:variable name="preamble" select="*[not(self::title or self::subtitle @@ -492,12 +646,26 @@ <fo:list-block provisional-distance-between-starts="{$width}" provisional-label-separation="{$glossterm.separation}" xsl:use-attribute-sets="normal.para.spacing"> - <xsl:for-each select="glossentry"> - <xsl:variable name="cterm" select="glossterm"/> - <xsl:if test="$terms[@baseform = $cterm or . = $cterm]"> - <xsl:apply-templates select="." mode="auto-glossary-as-list"/> - </xsl:if> - </xsl:for-each> + <xsl:choose> + <xsl:when test="$glossary.sort != 0"> + <xsl:for-each select="glossentry"> + <xsl:sort lang="{$language}" + select="translate(glossterm, &lowercase;, &uppercase;)"/> + <xsl:variable name="cterm" select="glossterm"/> + <xsl:if test="$terms[@baseform = $cterm or . = $cterm]"> + <xsl:apply-templates select="." mode="auto-glossary-as-list"/> + </xsl:if> + </xsl:for-each> + </xsl:when> + <xsl:otherwise> + <xsl:for-each select="glossentry"> + <xsl:variable name="cterm" select="glossterm"/> + <xsl:if test="$terms[@baseform = $cterm or . = $cterm]"> + <xsl:apply-templates select="." mode="auto-glossary-as-list"/> + </xsl:if> + </xsl:for-each> + </xsl:otherwise> + </xsl:choose> </fo:list-block> </xsl:template> @@ -508,6 +676,10 @@ <xsl:template match="glossdiv" mode="auto-glossary-as-blocks"> <xsl:param name="terms" select="."/> + <xsl:variable name="language"> + <xsl:call-template name="l10n.language"/> + </xsl:variable> + <xsl:variable name="preamble" select="*[not(self::title or self::subtitle @@ -517,12 +689,27 @@ <xsl:apply-templates select="$preamble"/> - <xsl:for-each select="glossentry"> - <xsl:variable name="cterm" select="glossterm"/> - <xsl:if test="$terms[@baseform = $cterm or . = $cterm]"> - <xsl:apply-templates select="." mode="auto-glossary-as-blocks"/> - </xsl:if> - </xsl:for-each> + <xsl:choose> + <xsl:when test="$glossary.sort != 0"> + <xsl:for-each select="glossentry"> + <xsl:sort lang="{$language}" + select="translate(glossterm, &lowercase;, &uppercase;)"/> + <xsl:variable name="cterm" select="glossterm"/> + <xsl:if test="$terms[@baseform = $cterm or . = $cterm]"> + <xsl:apply-templates select="." mode="auto-glossary-as-blocks"/> + </xsl:if> + </xsl:for-each> + </xsl:when> + <xsl:otherwise> + <xsl:for-each select="glossentry"> + <xsl:variable name="cterm" select="glossterm"/> + <xsl:if test="$terms[@baseform = $cterm or . = $cterm]"> + <xsl:apply-templates select="." mode="auto-glossary-as-blocks"/> + </xsl:if> + </xsl:for-each> + </xsl:otherwise> + </xsl:choose> + </xsl:template> <xsl:template match="glossentry" mode="auto-glossary-as-blocks"> @@ -536,6 +723,11 @@ <xsl:param name="width" select="$glossterm.width"/> <xsl:variable name="entries" select="glossentry"/> + + <xsl:variable name="language"> + <xsl:call-template name="l10n.language"/> + </xsl:variable> + <xsl:variable name="preamble" select="*[not(self::title or self::subtitle @@ -548,7 +740,18 @@ <fo:list-block provisional-distance-between-starts="{$width}" provisional-label-separation="{$glossterm.separation}" xsl:use-attribute-sets="normal.para.spacing"> - <xsl:apply-templates select="$entries" mode="glossary.as.list"/> + <xsl:choose> + <xsl:when test="$glossary.sort != 0"> + <xsl:apply-templates select="$entries" mode="glossary.as.list"> + <xsl:sort lang="{$language}" + select="translate(glossterm, &lowercase;, + &uppercase;)"/> + </xsl:apply-templates> + </xsl:when> + <xsl:otherwise> + <xsl:apply-templates select="$entries" mode="glossary.as.list"/> + </xsl:otherwise> + </xsl:choose> </fo:list-block> </xsl:template> @@ -582,13 +785,16 @@ <xsl:when test="$glossentry.show.acronym = 'primary'"> <xsl:choose> <xsl:when test="acronym|abbrev"> - <xsl:apply-templates select="acronym|abbrev" mode="glossary.as.list"/> + <xsl:apply-templates select="acronym|abbrev" + mode="glossary.as.list"/> <xsl:text> (</xsl:text> - <xsl:apply-templates select="glossterm" mode="glossary.as.list"/> + <xsl:apply-templates select="glossterm" + mode="glossary.as.list"/> <xsl:text>)</xsl:text> </xsl:when> <xsl:otherwise> - <xsl:apply-templates select="glossterm" mode="glossary.as.list"/> + <xsl:apply-templates select="glossterm" + mode="glossary.as.list"/> </xsl:otherwise> </xsl:choose> </xsl:when> @@ -598,7 +804,8 @@ <xsl:if test="acronym|abbrev"> <xsl:text> (</xsl:text> - <xsl:apply-templates select="acronym|abbrev" mode="glossary.as.list"/> + <xsl:apply-templates select="acronym|abbrev" + mode="glossary.as.list"/> <xsl:text>)</xsl:text> </xsl:if> </xsl:when> @@ -753,11 +960,26 @@ or self::subtitle or self::glossentry)]"/> + <xsl:variable name="language"> + <xsl:call-template name="l10n.language"/> + </xsl:variable> + <xsl:call-template name="glossdiv.titlepage"/> <xsl:apply-templates select="$preamble"/> - <xsl:apply-templates select="$entries" mode="glossary.as.blocks"/> + <xsl:choose> + <xsl:when test="$glossary.sort != 0"> + <xsl:apply-templates select="$entries" mode="glossary.as.blocks"> + <xsl:sort lang="{$language}" + select="translate(glossterm, &lowercase;, + &uppercase;)"/> + </xsl:apply-templates> + </xsl:when> + <xsl:otherwise> + <xsl:apply-templates select="$entries" mode="glossary.as.blocks"/> + </xsl:otherwise> + </xsl:choose> </xsl:template> <!-- http://cvs.php.net/viewvc.cgi/phpdoc/docbook/docbook-xsl/fo/graphics.xsl?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/docbook/docbook-xsl/fo/graphics.xsl diff -u phpdoc/docbook/docbook-xsl/fo/graphics.xsl:1.1 phpdoc/docbook/docbook-xsl/fo/graphics.xsl:1.2 --- phpdoc/docbook/docbook-xsl/fo/graphics.xsl:1.1 Mon Jan 22 15:54:42 2007 +++ phpdoc/docbook/docbook-xsl/fo/graphics.xsl Tue Jan 30 18:11:31 2007 @@ -14,7 +14,7 @@ version='1.0'> <!-- ******************************************************************** - $Id: graphics.xsl,v 1.1 2007/01/22 15:54:42 bjori Exp $ + $Id: graphics.xsl,v 1.2 2007/01/30 18:11:31 bjori Exp $ ******************************************************************** This file is part of the XSL DocBook Stylesheet distribution. http://cvs.php.net/viewvc.cgi/phpdoc/docbook/docbook-xsl/fo/highlight.xsl?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/docbook/docbook-xsl/fo/highlight.xsl diff -u phpdoc/docbook/docbook-xsl/fo/highlight.xsl:1.1 phpdoc/docbook/docbook-xsl/fo/highlight.xsl:1.2 --- phpdoc/docbook/docbook-xsl/fo/highlight.xsl:1.1 Mon Jan 22 15:54:42 2007 +++ phpdoc/docbook/docbook-xsl/fo/highlight.xsl Tue Jan 30 18:11:31 2007 @@ -6,7 +6,7 @@ version='1.0'> <!-- ******************************************************************** - $Id: highlight.xsl,v 1.1 2007/01/22 15:54:42 bjori Exp $ + $Id: highlight.xsl,v 1.2 2007/01/30 18:11:31 bjori Exp $ ******************************************************************** This file is part of the XSL DocBook Stylesheet distribution. http://cvs.php.net/viewvc.cgi/phpdoc/docbook/docbook-xsl/fo/htmltbl.xsl?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/docbook/docbook-xsl/fo/htmltbl.xsl diff -u phpdoc/docbook/docbook-xsl/fo/htmltbl.xsl:1.1 phpdoc/docbook/docbook-xsl/fo/htmltbl.xsl:1.2 --- phpdoc/docbook/docbook-xsl/fo/htmltbl.xsl:1.1 Mon Jan 22 15:54:42 2007 +++ phpdoc/docbook/docbook-xsl/fo/htmltbl.xsl Tue Jan 30 18:11:31 2007 @@ -4,7 +4,7 @@ version="1.0"> <!-- ******************************************************************** - $Id: htmltbl.xsl,v 1.1 2007/01/22 15:54:42 bjori Exp $ + $Id: htmltbl.xsl,v 1.2 2007/01/30 18:11:31 bjori Exp $ ******************************************************************** This file is part of the XSL DocBook Stylesheet distribution. http://cvs.php.net/viewvc.cgi/phpdoc/docbook/docbook-xsl/fo/index.xsl?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/docbook/docbook-xsl/fo/index.xsl diff -u phpdoc/docbook/docbook-xsl/fo/index.xsl:1.1 phpdoc/docbook/docbook-xsl/fo/index.xsl:1.2 --- phpdoc/docbook/docbook-xsl/fo/index.xsl:1.1 Mon Jan 22 15:54:42 2007 +++ phpdoc/docbook/docbook-xsl/fo/index.xsl Tue Jan 30 18:11:31 2007 @@ -10,7 +10,7 @@ version='1.0'> <!-- ******************************************************************** - $Id: index.xsl,v 1.1 2007/01/22 15:54:42 bjori Exp $ + $Id: index.xsl,v 1.2 2007/01/30 18:11:31 bjori Exp $ ******************************************************************** This file is part of the XSL DocBook Stylesheet distribution. @@ -249,6 +249,8 @@ </xsl:if> </xsl:template> +<xsl:template match="index/indexinfo"></xsl:template> +<xsl:template match="index/info"></xsl:template> <xsl:template match="index/title"></xsl:template> <xsl:template match="index/subtitle"></xsl:template> <xsl:template match="index/titleabbrev"></xsl:template> @@ -344,9 +346,7 @@ <xsl:choose> <xsl:when test="$xep.extensions != 0"> <rx:begin-index-range> - <xsl:attribute name="id"> - <xsl:value-of select="@id"/> - </xsl:attribute> + <xsl:call-template name="anchor"/> <xsl:attribute name="rx:key"> <xsl:value-of select="&primary;"/> <xsl:if test="@significance='preferred'"><xsl:value-of select="$significant.flag"/></xsl:if> @@ -468,7 +468,7 @@ <xsl:variable name="parent" select="local-name($parentnode)"/> - <xsl:variable name="block.parents" select="'|answer|appendix|appendixinfo|article|articleinfo|bibliodiv|bibliography|bibliographyinfo|blockinfo|blockquote|bookinfo|callout|caution|chapter|chapterinfo|dedication|example|figure|formalpara|funcsynopsisinfo|glossary|glossaryinfo|glossdef|glossdiv|glossentry|highlights|important|index|indexinfo|informalexample|informalfigure|informaltable|itemizedlist|legalnotice|listitem|msgexplan|msgtext|note|objectinfo|orderedlist|partinfo|partintro|preface|prefaceinfo|procedure|qandadiv|qandaset|question|refentry|refentryinfo|referenceinfo|refmeta|refmiscinfo|refsect1|refsect1info|refsect2|refsect2info|refsect3|refsect3info|refsection|refsectioninfo|refsynopsisdiv|refsynopsisdivinfo|revdescription|screeninfo|sect1|sect1info|sect2|sect2info|sect3|sect3info|sect4|sect4info|sect5|sect5info|section|sectioninfo|setindex|setindexinfo|setinfo|sidebar|sidebarinfo|simplesect|step|table|task|taskprerequisites|taskrelated|tasksummary|tip|variablelist! |warning|'"/> + <xsl:variable name="block.parents" select="'|answer|appendix|appendixinfo|article|articleinfo|bibliodiv|bibliography|bibliographyinfo|blockinfo|blockquote|bookinfo|callout|caution|chapter|chapterinfo|dedication|example|figure|formalpara|funcsynopsisinfo|glossary|glossaryinfo|glossdef|glossdiv|glossentry|highlights|important|index|indexinfo|info|informalexample|informalfigure|informaltable|itemizedlist|legalnotice|listitem|msgexplan|msgtext|note|objectinfo|orderedlist|partinfo|partintro|preface|prefaceinfo|procedure|qandadiv|qandaset|question|refentry|refentryinfo|referenceinfo|refmeta|refmiscinfo|refsect1|refsect1info|refsect2|refsect2info|refsect3|refsect3info|refsection|refsectioninfo|refsynopsisdiv|refsynopsisdivinfo|revdescription|screeninfo|sect1|sect1info|sect2|sect2info|sect3|sect3info|sect4|sect4info|sect5|sect5info|section|sectioninfo|setindex|setindexinfo|setinfo|sidebar|sidebarinfo|simplesect|step|table|task|taskprerequisites|taskrelated|tasksummary|tip|variabl! elist|warning|'"/> <xsl:choose> <xsl:when test="contains($parent, $block.parents)">fo:block</xsl:when> http://cvs.php.net/viewvc.cgi/phpdoc/docbook/docbook-xsl/fo/info.xsl?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/docbook/docbook-xsl/fo/info.xsl diff -u phpdoc/docbook/docbook-xsl/fo/info.xsl:1.1 phpdoc/docbook/docbook-xsl/fo/info.xsl:1.2 --- phpdoc/docbook/docbook-xsl/fo/info.xsl:1.1 Mon Jan 22 15:54:42 2007 +++ phpdoc/docbook/docbook-xsl/fo/info.xsl Tue Jan 30 18:11:31 2007 @@ -4,7 +4,7 @@ version='1.0'> <!-- ******************************************************************** - $Id: info.xsl,v 1.1 2007/01/22 15:54:42 bjori Exp $ + $Id: info.xsl,v 1.2 2007/01/30 18:11:31 bjori Exp $ ******************************************************************** This file is part of the XSL DocBook Stylesheet distribution. http://cvs.php.net/viewvc.cgi/phpdoc/docbook/docbook-xsl/fo/inline.xsl?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/docbook/docbook-xsl/fo/inline.xsl diff -u phpdoc/docbook/docbook-xsl/fo/inline.xsl:1.1 phpdoc/docbook/docbook-xsl/fo/inline.xsl:1.2 --- phpdoc/docbook/docbook-xsl/fo/inline.xsl:1.1 Mon Jan 22 15:54:42 2007 +++ phpdoc/docbook/docbook-xsl/fo/inline.xsl Tue Jan 30 18:11:31 2007 @@ -19,7 +19,7 @@ version='1.0'> <!-- ******************************************************************** - $Id: inline.xsl,v 1.1 2007/01/22 15:54:42 bjori Exp $ + $Id: inline.xsl,v 1.2 2007/01/30 18:11:31 bjori Exp $ ******************************************************************** This file is part of the XSL DocBook Stylesheet distribution. @@ -33,66 +33,108 @@ <xsl:param name="content"> <xsl:apply-templates/> </xsl:param> + <xsl:param name="linkend" select="$node/@linkend"/> + <xsl:param name="xhref" select="$node/@xlink:href"/> <xsl:choose> - <xsl:when test="$node/@xlink:type='simple' and $node/@xlink:href"> - <fo:basic-link> - <xsl:attribute name="href"> + <xsl:when test="$xhref + and (not($node/@xlink:type) or + $node/@xlink:type='simple')"> + + <!-- Is it a local idref or a uri? --> + <xsl:variable name="is.idref"> + <xsl:choose> + <!-- if the href starts with # and does not contain an "(" --> + <!-- or if the href starts with #xpointer(id(, it's just an ID --> + <xsl:when test="starts-with($xhref,'#') + and (not(contains($xhref,'&#40;')) + or starts-with($xhref, + '#xpointer&#40;id&#40;'))">1</xsl:when> + <xsl:otherwise>0</xsl:otherwise> + </xsl:choose> + </xsl:variable> + + <xsl:choose> + <xsl:when test="$is.idref = 1"> + + <xsl:variable name="idref"> + <xsl:call-template name="xpointer.idref"> + <xsl:with-param name="xpointer" select="$xhref"/> + </xsl:call-template> + </xsl:variable> + + <xsl:variable name="targets" select="key('id',$idref)"/> + <xsl:variable name="target" select="$targets[1]"/> + + <xsl:call-template name="check.id.unique"> + <xsl:with-param name="linkend" select="$idref"/> + </xsl:call-template> + <xsl:choose> - <!-- if the href starts with # and does not contain an "(" --> - <!-- or if the href starts with #xpointer(id(, it's just an ID --> - <xsl:when test="starts-with(@xlink:href,'#') - and (not(contains(@xlink:href,'&#40;')) - or starts-with(@xlink:href,'#xpointer&#40;id&#40;'))"> - <xsl:variable name="idref"> - <xsl:call-template name="xpointer.idref"> - <xsl:with-param name="xpointer" select="@xlink:href"/> - </xsl:call-template> - </xsl:variable> - - <xsl:variable name="targets" select="key('id',$idref)"/> - <xsl:variable name="target" select="$targets[1]"/> - - <xsl:call-template name="check.id.unique"> - <xsl:with-param name="linkend" select="@linkend"/> - </xsl:call-template> - - <xsl:choose> - <xsl:when test="count($target) = 0"> - <xsl:message> - <xsl:text>XLink to nonexistent id: </xsl:text> - <xsl:value-of select="$idref"/> - </xsl:message> - <xsl:text>???</xsl:text> - </xsl:when> - <xsl:otherwise> - <xsl:attribute name="internal-destination"> - <xsl:value-of select="$target/@id"/> - </xsl:attribute> - </xsl:otherwise> - </xsl:choose> + <xsl:when test="count($target) = 0"> + <xsl:message> + <xsl:text>XLink to nonexistent id: </xsl:text> + <xsl:value-of select="$idref"/> + </xsl:message> + <xsl:copy-of select="$content"/> </xsl:when> - <!-- otherwise it's a URI --> <xsl:otherwise> - <xsl:attribute name="internal-destination"> - <xsl:value-of select="@xlink:href"/> - </xsl:attribute> + <fo:basic-link internal-destination="{$idref}"> + <xsl:copy-of select="$content"/> + </fo:basic-link> </xsl:otherwise> </xsl:choose> - </xsl:attribute> - <xsl:copy-of select="$content"/> - </fo:basic-link> + </xsl:when> + + <!-- otherwise it's a URI --> + <xsl:otherwise> + <fo:basic-link external-destination="url({$xhref})"> + <xsl:copy-of select="$content"/> + </fo:basic-link> + </xsl:otherwise> + </xsl:choose> + </xsl:when> + + <xsl:when test="$linkend"> + <xsl:variable name="targets" select="key('id',$linkend)"/> + <xsl:variable name="target" select="$targets[1]"/> + + <xsl:call-template name="check.id.unique"> + <xsl:with-param name="linkend" select="$linkend"/> + </xsl:call-template> + + <xsl:choose> + <xsl:when test="count($target) = 0"> + <xsl:message> + <xsl:text>XLink to nonexistent id: </xsl:text> + <xsl:value-of select="$linkend"/> + </xsl:message> + <xsl:copy-of select="$content"/> + </xsl:when> + + <xsl:otherwise> + <fo:basic-link internal-destination="{$linkend}"> + <xsl:copy-of select="$content"/> + </fo:basic-link> + </xsl:otherwise> + </xsl:choose> </xsl:when> + <xsl:otherwise> <xsl:copy-of select="$content"/> </xsl:otherwise> </xsl:choose> + </xsl:template> <xsl:template name="inline.charseq"> <xsl:param name="content"> - <xsl:apply-templates/> + <xsl:call-template name="simple.xlink"> + <xsl:with-param name="content"> + <xsl:apply-templates/> + </xsl:with-param> + </xsl:call-template> </xsl:param> <xsl:choose> @@ -115,8 +157,13 @@ <xsl:template name="inline.monoseq"> <xsl:param name="content"> - <xsl:apply-templates/> + <xsl:call-template name="simple.xlink"> + <xsl:with-param name="content"> + <xsl:apply-templates/> + </xsl:with-param> + </xsl:call-template> </xsl:param> + <fo:inline xsl:use-attribute-sets="monospace.properties"> <xsl:if test="@dir"> <xsl:attribute name="direction"> @@ -132,8 +179,13 @@ <xsl:template name="inline.boldseq"> <xsl:param name="content"> - <xsl:apply-templates/> + <xsl:call-template name="simple.xlink"> + <xsl:with-param name="content"> + <xsl:apply-templates/> + </xsl:with-param> + </xsl:call-template> </xsl:param> + <fo:inline font-weight="bold"> <xsl:if test="@dir"> <xsl:attribute name="direction"> @@ -149,14 +201,15 @@ <xsl:template name="inline.italicseq"> <xsl:param name="content"> - <xsl:apply-templates/> + <xsl:call-template name="simple.xlink"> + <xsl:with-param name="content"> + <xsl:apply-templates/> + </xsl:with-param> + </xsl:call-template> </xsl:param> + <fo:inline font-style="italic"> - <xsl:if test="@id"> - <xsl:attribute name="id"> - <xsl:value-of select="@id"/> - </xsl:attribute> - </xsl:if> + <xsl:call-template name="anchor"/> <xsl:if test="@dir"> <xsl:attribute name="direction"> <xsl:choose> @@ -171,14 +224,15 @@ <xsl:template name="inline.boldmonoseq"> <xsl:param name="content"> - <xsl:apply-templates/> + <xsl:call-template name="simple.xlink"> + <xsl:with-param name="content"> + <xsl:apply-templates/> + </xsl:with-param> + </xsl:call-template> </xsl:param> + <fo:inline font-weight="bold" xsl:use-attribute-sets="monospace.properties"> - <xsl:if test="@id"> - <xsl:attribute name="id"> - <xsl:value-of select="@id"/> - </xsl:attribute> - </xsl:if> + <xsl:call-template name="anchor"/> <xsl:if test="@dir"> <xsl:attribute name="direction"> <xsl:choose> @@ -193,14 +247,15 @@ <xsl:template name="inline.italicmonoseq"> <xsl:param name="content"> - <xsl:apply-templates/> + <xsl:call-template name="simple.xlink"> + <xsl:with-param name="content"> + <xsl:apply-templates/> + </xsl:with-param> + </xsl:call-template> </xsl:param> + <fo:inline font-style="italic" xsl:use-attribute-sets="monospace.properties"> - <xsl:if test="@id"> - <xsl:attribute name="id"> - <xsl:value-of select="@id"/> - </xsl:attribute> - </xsl:if> + <xsl:call-template name="anchor"/> <xsl:if test="@dir"> <xsl:attribute name="direction"> <xsl:choose> @@ -215,15 +270,15 @@ <xsl:template name="inline.superscriptseq"> <xsl:param name="content"> - <xsl:apply-templates/> + <xsl:call-template name="simple.xlink"> + <xsl:with-param name="content"> + <xsl:apply-templates/> + </xsl:with-param> + </xsl:call-template> </xsl:param> <fo:inline xsl:use-attribute-sets="superscript.properties"> - <xsl:if test="@id"> - <xsl:attribute name="id"> - <xsl:value-of select="@id"/> - </xsl:attribute> - </xsl:if> + <xsl:call-template name="anchor"/> <xsl:if test="@dir"> <xsl:attribute name="direction"> <xsl:choose> @@ -246,15 +301,15 @@ <xsl:template name="inline.subscriptseq"> <xsl:param name="content"> - <xsl:apply-templates/> + <xsl:call-template name="simple.xlink"> + <xsl:with-param name="content"> + <xsl:apply-templates/> + </xsl:with-param> + </xsl:call-template> </xsl:param> <fo:inline xsl:use-attribute-sets="subscript.properties"> - <xsl:if test="@id"> - <xsl:attribute name="id"> - <xsl:value-of select="@id"/> - </xsl:attribute> - </xsl:if> + <xsl:call-template name="anchor"/> <xsl:if test="@dir"> <xsl:attribute name="direction"> <xsl:choose> @@ -279,15 +334,27 @@ <!-- some special cases --> <xsl:template match="author"> - <xsl:call-template name="person.name"/> + <xsl:call-template name="simple.xlink"> + <xsl:with-param name="content"> + <xsl:call-template name="person.name"/> + </xsl:with-param> + </xsl:call-template> </xsl:template> <xsl:template match="editor"> - <xsl:call-template name="person.name"/> + <xsl:call-template name="simple.xlink"> + <xsl:with-param name="content"> + <xsl:call-template name="person.name"/> + </xsl:with-param> + </xsl:call-template> </xsl:template> <xsl:template match="othercredit"> - <xsl:call-template name="person.name"/> + <xsl:call-template name="simple.xlink"> + <xsl:with-param name="content"> + <xsl:call-template name="person.name"/> + </xsl:with-param> + </xsl:call-template> </xsl:template> <xsl:template match="authorinitials"> @@ -560,7 +627,7 @@ <xsl:variable name="depth"> <xsl:call-template name="dot.count"> <xsl:with-param name="string"> - <xsl:number level="multiple"/> + <xsl:number level="multiple"/> </xsl:with-param> </xsl:call-template> </xsl:variable> @@ -722,14 +789,9 @@ </xsl:when> <xsl:otherwise> <xsl:variable name="id"> - <xsl:choose> - <xsl:when test="$cterm/@id"> - <xsl:value-of select="$cterm/@id"/> - </xsl:when> - <xsl:otherwise> - <xsl:value-of select="generate-id($cterm)"/> - </xsl:otherwise> - </xsl:choose> + <xsl:call-template name="object.id"> + <xsl:with-param name="object" select="$cterm"/> + </xsl:call-template> </xsl:variable> <fo:basic-link internal-destination="{$id}" xsl:use-attribute-sets="xref.properties"> @@ -943,10 +1005,6 @@ </xsl:for-each> </xsl:template> -<xsl:template match="orgname"> - <xsl:call-template name="inline.charseq"/> -</xsl:template> - <xsl:template match="uri"> <xsl:call-template name="inline.monoseq"/> </xsl:template> @@ -993,8 +1051,8 @@ <xsl:otherwise> <xsl:variable name="node" select="$nodelist[$count=position()]"/> <xsl:choose> - <xsl:when test="name($node)='guimenuitem' - or name($node)='guisubmenu'"> + <xsl:when test="local-name($node)='guimenuitem' + or local-name($node)='guisubmenu'"> <xsl:copy-of select="$mm.separator"/> </xsl:when> <xsl:otherwise> @@ -1021,13 +1079,25 @@ <xsl:template match="citation"> <!-- todo: integrate with bibliography collection --> <xsl:variable name="targets" select="(//biblioentry | //bibliomixed)[abbrev = string(current())]"/> + <xsl:variable name="target" select="$targets[1]"/> <xsl:choose> - <xsl:when test="$targets"> - <xsl:call-template name="xref"> - <xsl:with-param name="targets" select="$targets"/> - </xsl:call-template> + <!-- try automatic linking based on match to abbrev --> + <xsl:when test="$target and not(xref) and not(link)"> + + <xsl:text>[</xsl:text> + <fo:basic-link> + <xsl:attribute name="internal-destination"> + <xsl:call-template name="object.id"> + <xsl:with-param name="object" select="$target"/> + </xsl:call-template> + </xsl:attribute> + + <xsl:call-template name="inline.charseq"/> + </fo:basic-link> + <xsl:text>]</xsl:text> </xsl:when> + <xsl:otherwise> <xsl:text>[</xsl:text> <xsl:call-template name="inline.charseq"/> @@ -1087,29 +1157,37 @@ <!-- ==================================================================== --> <xsl:template match="personname"> - <xsl:call-template name="person.name"/> + <xsl:call-template name="simple.xlink"> + <xsl:with-param name="content"> + <xsl:call-template name="person.name"/> + </xsl:with-param> + </xsl:call-template> </xsl:template> <xsl:template match="jobtitle"> - <xsl:apply-templates/> + <xsl:call-template name="simple.xlink"> + <xsl:with-param name="content"> + <xsl:apply-templates/> + </xsl:with-param> + </xsl:call-template> </xsl:template> <!-- ==================================================================== --> <xsl:template match="org"> - <xsl:apply-templates/> + <xsl:call-template name="inline.charseq"/> </xsl:template> <xsl:template match="orgname"> - <xsl:apply-templates/> + <xsl:call-template name="inline.charseq"/> </xsl:template> <xsl:template match="orgdiv"> - <xsl:apply-templates/> + <xsl:call-template name="inline.charseq"/> </xsl:template> <xsl:template match="affiliation"> - <xsl:apply-templates/> + <xsl:call-template name="inline.charseq"/> </xsl:template> <!-- ==================================================================== --> http://cvs.php.net/viewvc.cgi/phpdoc/docbook/docbook-xsl/fo/keywords.xsl?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/docbook/docbook-xsl/fo/keywords.xsl diff -u phpdoc/docbook/docbook-xsl/fo/keywords.xsl:1.1 phpdoc/docbook/docbook-xsl/fo/keywords.xsl:1.2 --- phpdoc/docbook/docbook-xsl/fo/keywords.xsl:1.1 Mon Jan 22 15:54:42 2007 +++ phpdoc/docbook/docbook-xsl/fo/keywords.xsl Tue Jan 30 18:11:31 2007 @@ -4,7 +4,7 @@ version='1.0'> <!-- ******************************************************************** - $Id: keywords.xsl,v 1.1 2007/01/22 15:54:42 bjori Exp $ + $Id: keywords.xsl,v 1.2 2007/01/30 18:11:31 bjori Exp $ ******************************************************************** This file is part of the XSL DocBook Stylesheet distribution. http://cvs.php.net/viewvc.cgi/phpdoc/docbook/docbook-xsl/fo/lists.xsl?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/docbook/docbook-xsl/fo/lists.xsl diff -u phpdoc/docbook/docbook-xsl/fo/lists.xsl:1.1 phpdoc/docbook/docbook-xsl/fo/lists.xsl:1.2 --- phpdoc/docbook/docbook-xsl/fo/lists.xsl:1.1 Mon Jan 22 15:54:42 2007 +++ phpdoc/docbook/docbook-xsl/fo/lists.xsl Tue Jan 30 18:11:31 2007 @@ -4,7 +4,7 @@ version='1.0'> <!-- ******************************************************************** - $Id: lists.xsl,v 1.1 2007/01/22 15:54:42 bjori Exp $ + $Id: lists.xsl,v 1.2 2007/01/30 18:11:31 bjori Exp $ ******************************************************************** This file is part of the XSL DocBook Stylesheet distribution. @@ -587,7 +587,13 @@ </xsl:template> <xsl:template match="varlistentry/term"> - <fo:inline><xsl:apply-templates/></fo:inline> + <fo:inline> + <xsl:call-template name="simple.xlink"> + <xsl:with-param name="content"> + <xsl:apply-templates/> + </xsl:with-param> + </xsl:call-template> + </fo:inline> <xsl:choose> <xsl:when test="not(following-sibling::term)"/> <!-- do nothing --> <xsl:otherwise> @@ -875,7 +881,11 @@ </xsl:template> <xsl:template match="member"> - <xsl:apply-templates/> + <xsl:call-template name="simple.xlink"> + <xsl:with-param name="content"> + <xsl:apply-templates/> + </xsl:with-param> + </xsl:call-template> </xsl:template> <!-- ==================================================================== --> @@ -1142,8 +1152,9 @@ <fo:block id="{$id}" text-align="{$alignment}"> <!-- The above restores alignment altered by image align attribute --> - <xsl:if test="title"> - <xsl:apply-templates select="title" mode="list.title.mode"/> + <xsl:if test="title|info/title"> + <xsl:apply-templates select="(title|info/title)[1]" + mode="list.title.mode"/> </xsl:if> <!-- Preserve order of PIs and comments --> http://cvs.php.net/viewvc.cgi/phpdoc/docbook/docbook-xsl/fo/math.xsl?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/docbook/docbook-xsl/fo/math.xsl diff -u phpdoc/docbook/docbook-xsl/fo/math.xsl:1.1 phpdoc/docbook/docbook-xsl/fo/math.xsl:1.2 --- phpdoc/docbook/docbook-xsl/fo/math.xsl:1.1 Mon Jan 22 15:54:42 2007 +++ phpdoc/docbook/docbook-xsl/fo/math.xsl Tue Jan 30 18:11:31 2007 @@ -6,7 +6,7 @@ version='1.0'> <!-- ******************************************************************** - $Id: math.xsl,v 1.1 2007/01/22 15:54:42 bjori Exp $ + $Id: math.xsl,v 1.2 2007/01/30 18:11:31 bjori Exp $ ******************************************************************** This file is part of the XSL DocBook Stylesheet distribution. http://cvs.php.net/viewvc.cgi/phpdoc/docbook/docbook-xsl/fo/pagesetup.xsl?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/docbook/docbook-xsl/fo/pagesetup.xsl diff -u phpdoc/docbook/docbook-xsl/fo/pagesetup.xsl:1.1 phpdoc/docbook/docbook-xsl/fo/pagesetup.xsl:1.2 --- phpdoc/docbook/docbook-xsl/fo/pagesetup.xsl:1.1 Mon Jan 22 15:54:42 2007 +++ phpdoc/docbook/docbook-xsl/fo/pagesetup.xsl Tue Jan 30 18:11:31 2007 @@ -4,7 +4,7 @@ version="1.0"> <!-- ******************************************************************** - $Id: pagesetup.xsl,v 1.1 2007/01/22 15:54:42 bjori Exp $ + $Id: pagesetup.xsl,v 1.2 2007/01/30 18:11:31 bjori Exp $ ******************************************************************** This file is part of the DocBook XSL Stylesheet distribution. @@ -69,6 +69,11 @@ margin-bottom="{$page.margin.bottom}" margin-left="{$margin.left.outer}" margin-right="{$page.margin.inner}"> + <xsl:if test="$axf.extensions != 0"> + <xsl:call-template name="axf-page-master-properties"> + <xsl:with-param name="page.master">blank</xsl:with-param> + </xsl:call-template> + </xsl:if> <fo:region-body display-align="center" margin-bottom="{$body.margin.bottom}" margin-top="{$body.margin.top}"> @@ -92,6 +97,11 @@ margin-bottom="{$page.margin.bottom}" margin-left="{$margin.left.inner}" margin-right="{$page.margin.outer}"> + <xsl:if test="$axf.extensions != 0"> + <xsl:call-template name="axf-page-master-properties"> + <xsl:with-param name="page.master">blank</xsl:with-param> + </xsl:call-template> + </xsl:if> <fo:region-body margin-bottom="{$body.margin.bottom}" margin-top="{$body.margin.top}" column-gap="{$column.gap.titlepage}" @@ -112,6 +122,11 @@ margin-bottom="{$page.margin.bottom}" margin-left="{$margin.left.inner}" margin-right="{$page.margin.outer}"> + <xsl:if test="$axf.extensions != 0"> + <xsl:call-template name="axf-page-master-properties"> + <xsl:with-param name="page.master">blank</xsl:with-param> + </xsl:call-template> + </xsl:if> <fo:region-body margin-bottom="{$body.margin.bottom}" margin-top="{$body.margin.top}" column-gap="{$column.gap.titlepage}" @@ -132,6 +147,11 @@ margin-bottom="{$page.margin.bottom}" margin-left="{$margin.left.outer}" margin-right="{$page.margin.inner}"> + <xsl:if test="$axf.extensions != 0"> + <xsl:call-template name="axf-page-master-properties"> + <xsl:with-param name="page.master">blank</xsl:with-param> + </xsl:call-template> + </xsl:if> <fo:region-body margin-bottom="{$body.margin.bottom}" margin-top="{$body.margin.top}" column-gap="{$column.gap.titlepage}" @@ -153,6 +173,11 @@ margin-bottom="{$page.margin.bottom}" margin-left="{$margin.left.inner}" margin-right="{$page.margin.outer}"> + <xsl:if test="$axf.extensions != 0"> + <xsl:call-template name="axf-page-master-properties"> + <xsl:with-param name="page.master">blank</xsl:with-param> + </xsl:call-template> + </xsl:if> <fo:region-body margin-bottom="{$body.margin.bottom}" margin-top="{$body.margin.top}" column-gap="{$column.gap.lot}" @@ -173,6 +198,11 @@ margin-bottom="{$page.margin.bottom}" margin-left="{$margin.left.inner}" margin-right="{$page.margin.outer}"> + <xsl:if test="$axf.extensions != 0"> + <xsl:call-template name="axf-page-master-properties"> + <xsl:with-param name="page.master">blank</xsl:with-param> + </xsl:call-template> + </xsl:if> <fo:region-body margin-bottom="{$body.margin.bottom}" margin-top="{$body.margin.top}" column-gap="{$column.gap.lot}" @@ -193,6 +223,11 @@ margin-bottom="{$page.margin.bottom}" margin-left="{$margin.left.outer}" margin-right="{$page.margin.inner}"> + <xsl:if test="$axf.extensions != 0"> + <xsl:call-template name="axf-page-master-properties"> + <xsl:with-param name="page.master">blank</xsl:with-param> + </xsl:call-template> + </xsl:if> <fo:region-body margin-bottom="{$body.margin.bottom}" margin-top="{$body.margin.top}" column-gap="{$column.gap.lot}" @@ -214,6 +249,11 @@ margin-bottom="{$page.margin.bottom}" margin-left="{$margin.left.inner}" margin-right="{$page.margin.outer}"> + <xsl:if test="$axf.extensions != 0"> + <xsl:call-template name="axf-page-master-properties"> + <xsl:with-param name="page.master">blank</xsl:with-param> + </xsl:call-template> + </xsl:if> <fo:region-body margin-bottom="{$body.margin.bottom}" margin-top="{$body.margin.top}" column-gap="{$column.gap.front}" @@ -234,6 +274,11 @@ margin-bottom="{$page.margin.bottom}" margin-left="{$margin.left.inner}" margin-right="{$page.margin.outer}"> + <xsl:if test="$axf.extensions != 0"> + <xsl:call-template name="axf-page-master-properties"> + <xsl:with-param name="page.master">blank</xsl:with-param> + </xsl:call-template> + </xsl:if> <fo:region-body margin-bottom="{$body.margin.bottom}" margin-top="{$body.margin.top}" column-gap="{$column.gap.front}" @@ -254,6 +299,11 @@ margin-bottom="{$page.margin.bottom}" margin-left="{$margin.left.outer}" margin-right="{$page.margin.inner}"> + <xsl:if test="$axf.extensions != 0"> + <xsl:call-template name="axf-page-master-properties"> + <xsl:with-param name="page.master">blank</xsl:with-param> + </xsl:call-template> + </xsl:if> <fo:region-body margin-bottom="{$body.margin.bottom}" margin-top="{$body.margin.top}" column-gap="{$column.gap.front}" @@ -275,6 +325,11 @@ margin-bottom="{$page.margin.bottom}" margin-left="{$margin.left.inner}" margin-right="{$page.margin.outer}"> + <xsl:if test="$axf.extensions != 0"> + <xsl:call-template name="axf-page-master-properties"> + <xsl:with-param name="page.master">blank</xsl:with-param> + </xsl:call-template> + </xsl:if> <fo:region-body margin-bottom="{$body.margin.bottom}" margin-top="{$body.margin.top}" column-gap="{$column.gap.body}" @@ -295,6 +350,11 @@ margin-bottom="{$page.margin.bottom}" margin-left="{$margin.left.inner}" margin-right="{$page.margin.outer}"> + <xsl:if test="$axf.extensions != 0"> + <xsl:call-template name="axf-page-master-properties"> + <xsl:with-param name="page.master">blank</xsl:with-param> + </xsl:call-template> + </xsl:if> <fo:region-body margin-bottom="{$body.margin.bottom}" margin-top="{$body.margin.top}" column-gap="{$column.gap.body}" @@ -315,6 +375,11 @@ margin-bottom="{$page.margin.bottom}" margin-left="{$margin.left.outer}" margin-right="{$page.margin.inner}"> + <xsl:if test="$axf.extensions != 0"> + <xsl:call-template name="axf-page-master-properties"> + <xsl:with-param name="page.master">blank</xsl:with-param> + </xsl:call-template> + </xsl:if> <fo:region-body margin-bottom="{$body.margin.bottom}" margin-top="{$body.margin.top}" column-gap="{$column.gap.body}" @@ -336,6 +401,11 @@ margin-bottom="{$page.margin.bottom}" margin-left="{$margin.left.inner}" margin-right="{$page.margin.outer}"> + <xsl:if test="$axf.extensions != 0"> + <xsl:call-template name="axf-page-master-properties"> + <xsl:with-param name="page.master">blank</xsl:with-param> + </xsl:call-template> + </xsl:if> <fo:region-body margin-bottom="{$body.margin.bottom}" margin-top="{$body.margin.top}" column-gap="{$column.gap.back}" @@ -356,6 +426,11 @@ margin-bottom="{$page.margin.bottom}" margin-left="{$margin.left.inner}" margin-right="{$page.margin.outer}"> + <xsl:if test="$axf.extensions != 0"> + <xsl:call-template name="axf-page-master-properties"> + <xsl:with-param name="page.master">blank</xsl:with-param> + </xsl:call-template> + </xsl:if> <fo:region-body margin-bottom="{$body.margin.bottom}" margin-top="{$body.margin.top}" column-gap="{$column.gap.back}" @@ -376,6 +451,11 @@ margin-bottom="{$page.margin.bottom}" margin-left="{$margin.left.outer}" margin-right="{$page.margin.inner}"> + <xsl:if test="$axf.extensions != 0"> + <xsl:call-template name="axf-page-master-properties"> + <xsl:with-param name="page.master">blank</xsl:with-param> + </xsl:call-template> + </xsl:if> <fo:region-body margin-bottom="{$body.margin.bottom}" margin-top="{$body.margin.top}" column-gap="{$column.gap.back}" @@ -397,6 +477,11 @@ margin-bottom="{$page.margin.bottom}" margin-left="{$page.margin.inner}" margin-right="{$page.margin.outer}"> + <xsl:if test="$axf.extensions != 0"> + <xsl:call-template name="axf-page-master-properties"> + <xsl:with-param name="page.master">blank</xsl:with-param> + </xsl:call-template> + </xsl:if> <fo:region-body margin-bottom="{$body.margin.bottom}" margin-top="{$body.margin.top}" column-gap="{$column.gap.index}" @@ -417,6 +502,11 @@ margin-bottom="{$page.margin.bottom}" margin-left="{$page.margin.inner}" margin-right="{$page.margin.outer}"> + <xsl:if test="$axf.extensions != 0"> + <xsl:call-template name="axf-page-master-properties"> + <xsl:with-param name="page.master">blank</xsl:with-param> + </xsl:call-template> + </xsl:if> <fo:region-body margin-bottom="{$body.margin.bottom}" margin-top="{$body.margin.top}" column-gap="{$column.gap.index}" @@ -437,6 +527,11 @@ margin-bottom="{$page.margin.bottom}" margin-left="{$page.margin.outer}" margin-right="{$page.margin.inner}"> + <xsl:if test="$axf.extensions != 0"> + <xsl:call-template name="axf-page-master-properties"> + <xsl:with-param name="page.master">blank</xsl:with-param> + </xsl:call-template> + </xsl:if> <fo:region-body margin-bottom="{$body.margin.bottom}" margin-top="{$body.margin.top}" column-gap="{$column.gap.index}" @@ -459,6 +554,11 @@ margin-bottom="{$page.margin.bottom}" margin-left="{$margin.left.outer}" margin-right="{$page.margin.inner}"> + <xsl:if test="$axf.extensions != 0"> + <xsl:call-template name="axf-page-master-properties"> + <xsl:with-param name="page.master">blank</xsl:with-param> + </xsl:call-template> + </xsl:if> <fo:region-body margin-bottom="{$body.margin.bottom}" margin-top="{$body.margin.top}"> <xsl:if test="$draft.watermark.image != ''"> @@ -489,6 +589,11 @@ margin-bottom="{$page.margin.bottom}" margin-left="{$margin.left.inner}" margin-right="{$page.margin.outer}"> + <xsl:if test="$axf.extensions != 0"> + <xsl:call-template name="axf-page-master-properties"> + <xsl:with-param name="page.master">blank</xsl:with-param> + </xsl:call-template> + </xsl:if> <fo:region-body margin-bottom="{$body.margin.bottom}" margin-top="{$body.margin.top}" column-gap="{$column.gap.titlepage}" @@ -520,6 +625,11 @@ margin-bottom="{$page.margin.bottom}" margin-left="{$margin.left.inner}" margin-right="{$page.margin.outer}"> + <xsl:if test="$axf.extensions != 0"> + <xsl:call-template name="axf-page-master-properties"> + <xsl:with-param name="page.master">blank</xsl:with-param> + </xsl:call-template> + </xsl:if> <fo:region-body margin-bottom="{$body.margin.bottom}" margin-top="{$body.margin.top}" column-gap="{$column.gap.titlepage}" @@ -551,6 +661,11 @@ margin-bottom="{$page.margin.bottom}" margin-left="{$margin.left.outer}" margin-right="{$page.margin.inner}"> + <xsl:if test="$axf.extensions != 0"> + <xsl:call-template name="axf-page-master-properties"> + <xsl:with-param name="page.master">blank</xsl:with-param> + </xsl:call-template> + </xsl:if> <fo:region-body margin-bottom="{$body.margin.bottom}" margin-top="{$body.margin.top}" column-gap="{$column.gap.titlepage}" @@ -583,6 +698,11 @@ margin-bottom="{$page.margin.bottom}" margin-left="{$margin.left.inner}" margin-right="{$page.margin.outer}"> + <xsl:if test="$axf.extensions != 0"> + <xsl:call-template name="axf-page-master-properties"> + <xsl:with-param name="page.master">blank</xsl:with-param> + </xsl:call-template> + </xsl:if> <fo:region-body margin-bottom="{$body.margin.bottom}" margin-top="{$body.margin.top}" column-gap="{$column.gap.lot}" @@ -614,6 +734,11 @@ margin-bottom="{$page.margin.bottom}" margin-left="{$margin.left.inner}" margin-right="{$page.margin.outer}"> + <xsl:if test="$axf.extensions != 0"> + <xsl:call-template name="axf-page-master-properties"> + <xsl:with-param name="page.master">blank</xsl:with-param> + </xsl:call-template> + </xsl:if> <fo:region-body margin-bottom="{$body.margin.bottom}" margin-top="{$body.margin.top}" column-gap="{$column.gap.lot}" @@ -645,6 +770,11 @@ margin-bottom="{$page.margin.bottom}" margin-left="{$margin.left.outer}" margin-right="{$page.margin.inner}"> + <xsl:if test="$axf.extensions != 0"> + <xsl:call-template name="axf-page-master-properties"> + <xsl:with-param name="page.master">blank</xsl:with-param> + </xsl:call-template> + </xsl:if> <fo:region-body margin-bottom="{$body.margin.bottom}" margin-top="{$body.margin.top}" column-gap="{$column.gap.lot}" @@ -677,6 +807,11 @@ margin-bottom="{$page.margin.bottom}" margin-left="{$margin.left.inner}" margin-right="{$page.margin.outer}"> + <xsl:if test="$axf.extensions != 0"> + <xsl:call-template name="axf-page-master-properties"> + <xsl:with-param name="page.master">blank</xsl:with-param> + </xsl:call-template> + </xsl:if> <fo:region-body margin-bottom="{$body.margin.bottom}" margin-top="{$body.margin.top}" column-gap="{$column.gap.front}" @@ -708,6 +843,11 @@ margin-bottom="{$page.margin.bottom}" margin-left="{$margin.left.inner}" margin-right="{$page.margin.outer}"> + <xsl:if test="$axf.extensions != 0"> + <xsl:call-template name="axf-page-master-properties"> + <xsl:with-param name="page.master">blank</xsl:with-param> + </xsl:call-template> + </xsl:if> <fo:region-body margin-bottom="{$body.margin.bottom}" margin-top="{$body.margin.top}" column-gap="{$column.gap.front}" @@ -739,6 +879,11 @@ margin-bottom="{$page.margin.bottom}" margin-left="{$margin.left.outer}" margin-right="{$page.margin.inner}"> + <xsl:if test="$axf.extensions != 0"> + <xsl:call-template name="axf-page-master-properties"> + <xsl:with-param name="page.master">blank</xsl:with-param> + </xsl:call-template> + </xsl:if> <fo:region-body margin-bottom="{$body.margin.bottom}" margin-top="{$body.margin.top}" column-gap="{$column.gap.front}" @@ -771,6 +916,11 @@ margin-bottom="{$page.margin.bottom}" margin-left="{$margin.left.inner}" margin-right="{$page.margin.outer}"> + <xsl:if test="$axf.extensions != 0"> + <xsl:call-template name="axf-page-master-properties"> + <xsl:with-param name="page.master">blank</xsl:with-param> + </xsl:call-template> + </xsl:if> <fo:region-body margin-bottom="{$body.margin.bottom}" margin-top="{$body.margin.top}" column-gap="{$column.gap.body}" @@ -802,6 +952,11 @@ margin-bottom="{$page.margin.bottom}" margin-left="{$margin.left.inner}" margin-right="{$page.margin.outer}"> + <xsl:if test="$axf.extensions != 0"> + <xsl:call-template name="axf-page-master-properties"> + <xsl:with-param name="page.master">blank</xsl:with-param> + </xsl:call-template> + </xsl:if> <fo:region-body margin-bottom="{$body.margin.bottom}" margin-top="{$body.margin.top}" column-gap="{$column.gap.body}" @@ -833,6 +988,11 @@ margin-bottom="{$page.margin.bottom}" margin-left="{$margin.left.outer}" margin-right="{$page.margin.inner}"> + <xsl:if test="$axf.extensions != 0"> + <xsl:call-template name="axf-page-master-properties"> + <xsl:with-param name="page.master">blank</xsl:with-param> + </xsl:call-template> + </xsl:if> <fo:region-body margin-bottom="{$body.margin.bottom}" margin-top="{$body.margin.top}" column-gap="{$column.gap.body}" @@ -865,6 +1025,11 @@ margin-bottom="{$page.margin.bottom}" margin-left="{$margin.left.inner}" margin-right="{$page.margin.outer}"> + <xsl:if test="$axf.extensions != 0"> + <xsl:call-template name="axf-page-master-properties"> + <xsl:with-param name="page.master">blank</xsl:with-param> + </xsl:call-template> + </xsl:if> <fo:region-body margin-bottom="{$body.margin.bottom}" margin-top="{$body.margin.top}" column-gap="{$column.gap.back}" @@ -896,6 +1061,11 @@ margin-bottom="{$page.margin.bottom}" margin-left="{$margin.left.inner}" margin-right="{$page.margin.outer}"> + <xsl:if test="$axf.extensions != 0"> + <xsl:call-template name="axf-page-master-properties"> + <xsl:with-param name="page.master">blank</xsl:with-param> + </xsl:call-template> + </xsl:if> <fo:region-body margin-bottom="{$body.margin.bottom}" margin-top="{$body.margin.top}" column-gap="{$column.gap.back}" @@ -927,6 +1097,11 @@ margin-bottom="{$page.margin.bottom}" margin-left="{$margin.left.outer}" margin-right="{$page.margin.inner}"> + <xsl:if test="$axf.extensions != 0"> + <xsl:call-template name="axf-page-master-properties"> + <xsl:with-param name="page.master">blank</xsl:with-param> + </xsl:call-template> + </xsl:if> <fo:region-body margin-bottom="{$body.margin.bottom}" margin-top="{$body.margin.top}" column-gap="{$column.gap.back}" @@ -959,6 +1134,11 @@ margin-bottom="{$page.margin.bottom}" margin-left="{$page.margin.inner}" margin-right="{$page.margin.outer}"> + <xsl:if test="$axf.extensions != 0"> + <xsl:call-template name="axf-page-master-properties"> + <xsl:with-param name="page.master">blank</xsl:with-param> + </xsl:call-template> + </xsl:if> <fo:region-body margin-bottom="{$body.margin.bottom}" margin-top="{$body.margin.top}" column-gap="{$column.gap.index}" @@ -990,6 +1170,11 @@ margin-bottom="{$page.margin.bottom}" margin-left="{$page.margin.inner}" margin-right="{$page.margin.outer}"> + <xsl:if test="$axf.extensions != 0"> + <xsl:call-template name="axf-page-master-properties"> + <xsl:with-param name="page.master">blank</xsl:with-param> + </xsl:call-template> + </xsl:if> <fo:region-body margin-bottom="{$body.margin.bottom}" margin-top="{$body.margin.top}" column-gap="{$column.gap.index}" @@ -1021,6 +1206,11 @@ margin-bottom="{$page.margin.bottom}" margin-right="{$page.margin.inner}" margin-left="{$page.margin.outer}"> + <xsl:if test="$axf.extensions != 0"> + <xsl:call-template name="axf-page-master-properties"> + <xsl:with-param name="page.master">blank</xsl:with-param> + </xsl:call-template> + </xsl:if> <fo:region-body margin-bottom="{$body.margin.bottom}" margin-top="{$body.margin.top}" column-gap="{$column.gap.index}" @@ -1394,7 +1584,7 @@ <xsl:template match="*" mode="running.head.mode"> <xsl:param name="master-reference" select="'unknown'"/> - <xsl:param name="gentext-key" select="name(.)"/> + <xsl:param name="gentext-key" select="local-name(.)"/> <!-- remove -draft from reference --> <xsl:variable name="pageclass"> @@ -1739,7 +1929,7 @@ <xsl:template match="*" mode="running.foot.mode"> <xsl:param name="master-reference" select="'unknown'"/> - <xsl:param name="gentext-key" select="name(.)"/> + <xsl:param name="gentext-key" select="local-name(.)"/> <!-- remove -draft from reference --> <xsl:variable name="pageclass"> http://cvs.php.net/viewvc.cgi/phpdoc/docbook/docbook-xsl/fo/param.xsl?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/docbook/docbook-xsl/fo/param.xsl diff -u phpdoc/docbook/docbook-xsl/fo/param.xsl:1.1 phpdoc/docbook/docbook-xsl/fo/param.xsl:1.2 --- phpdoc/docbook/docbook-xsl/fo/param.xsl:1.1 Mon Jan 22 15:54:42 2007 +++ phpdoc/docbook/docbook-xsl/fo/param.xsl Tue Jan 30 18:11:31 2007 @@ -3,7 +3,7 @@ <!-- This file is generated from param.xweb; do not edit this file! --> <!-- ******************************************************************** - $Id: param.xsl,v 1.1 2007/01/22 15:54:42 bjori Exp $ + $Id: param.xsl,v 1.2 2007/01/30 18:11:31 bjori Exp $ ******************************************************************** This file is part of the XSL DocBook Stylesheet distribution. @@ -261,6 +261,7 @@ </xsl:param> <xsl:param name="glossary.as.blocks" select="0"/> <xsl:param name="glossary.collection" select="''"/> +<xsl:param name="glossary.sort" select="0"/> <xsl:param name="glossentry.show.acronym" select="'no'"/> <xsl:param name="glosslist.as.blocks" select="0"/> <xsl:param name="glossterm.auto.link" select="0"/> @@ -289,6 +290,8 @@ <xsl:param name="index.method" select="'basic'"/> <xsl:param name="index.on.role" select="0"/> <xsl:param name="index.on.type" select="0"/> +<xsl:attribute-set name="index.page.number.properties"> +</xsl:attribute-set> <xsl:attribute-set name="informalequation.properties" use-attribute-sets="informal.object.properties"/> <xsl:attribute-set name="informalexample.properties" use-attribute-sets="informal.object.properties"/> <xsl:attribute-set name="informalfigure.properties" use-attribute-sets="informal.object.properties"/> @@ -395,6 +398,7 @@ <xsl:param name="olink.base.uri" select="''"/> <xsl:param name="olink.debug" select="0"/> <xsl:attribute-set name="olink.properties"> + <xsl:attribute name="show-destination">replace</xsl:attribute> </xsl:attribute-set> <xsl:param name="olink.lang.fallback.sequence" select="''"/> <xsl:attribute-set name="orderedlist.properties" use-attribute-sets="list.block.properties"> @@ -838,9 +842,14 @@ <xsl:attribute name="space-after.optimum">1em</xsl:attribute> <xsl:attribute name="space-after.maximum">1.2em</xsl:attribute> <xsl:attribute name="hyphenate">false</xsl:attribute> + <xsl:attribute name="wrap-option">no-wrap</xsl:attribute> + <xsl:attribute name="white-space-collapse">false</xsl:attribute> + <xsl:attribute name="white-space-treatment">preserve</xsl:attribute> + <xsl:attribute name="linefeed-treatment">preserve</xsl:attribute> + <xsl:attribute name="text-align">start</xsl:attribute> </xsl:attribute-set> <xsl:param name="xep.extensions" select="0"/> -<xsl:attribute-set name="xep.index.item.properties"> +<xsl:attribute-set name="xep.index.item.properties" use-attribute-sets="index.page.number.properties"> <xsl:attribute name="merge-subsequent-page-numbers">true</xsl:attribute> <xsl:attribute name="link-back">true</xsl:attribute> </xsl:attribute-set> http://cvs.php.net/viewvc.cgi/phpdoc/docbook/docbook-xsl/fo/passivetex.xsl?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/docbook/docbook-xsl/fo/passivetex.xsl diff -u phpdoc/docbook/docbook-xsl/fo/passivetex.xsl:1.1 phpdoc/docbook/docbook-xsl/fo/passivetex.xsl:1.2 --- phpdoc/docbook/docbook-xsl/fo/passivetex.xsl:1.1 Mon Jan 22 15:54:42 2007 +++ phpdoc/docbook/docbook-xsl/fo/passivetex.xsl Tue Jan 30 18:11:31 2007 @@ -4,7 +4,7 @@ version='1.0'> <!-- ******************************************************************** - $Id: passivetex.xsl,v 1.1 2007/01/22 15:54:42 bjori Exp $ + $Id: passivetex.xsl,v 1.2 2007/01/30 18:11:31 bjori Exp $ ******************************************************************** This extension stops PassiveTeX from merging subsequent '-' to dashes. You must set passivetex.extensions to '1' if you want get http://cvs.php.net/viewvc.cgi/phpdoc/docbook/docbook-xsl/fo/pi.xsl?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/docbook/docbook-xsl/fo/pi.xsl diff -u phpdoc/docbook/docbook-xsl/fo/pi.xsl:1.1 phpdoc/docbook/docbook-xsl/fo/pi.xsl:1.2 --- phpdoc/docbook/docbook-xsl/fo/pi.xsl:1.1 Mon Jan 22 15:54:42 2007 +++ phpdoc/docbook/docbook-xsl/fo/pi.xsl Tue Jan 30 18:11:31 2007 @@ -4,7 +4,7 @@ version='1.0'> <!-- ******************************************************************** - $Id: pi.xsl,v 1.1 2007/01/22 15:54:42 bjori Exp $ + $Id: pi.xsl,v 1.2 2007/01/30 18:11:31 bjori Exp $ ******************************************************************** This file is part of the XSL DocBook Stylesheet distribution. http://cvs.php.net/viewvc.cgi/phpdoc/docbook/docbook-xsl/fo/profile-docbook.xsl?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/docbook/docbook-xsl/fo/profile-docbook.xsl diff -u phpdoc/docbook/docbook-xsl/fo/profile-docbook.xsl:1.1 phpdoc/docbook/docbook-xsl/fo/profile-docbook.xsl:1.2 --- phpdoc/docbook/docbook-xsl/fo/profile-docbook.xsl:1.1 Mon Jan 22 15:54:42 2007 +++ phpdoc/docbook/docbook-xsl/fo/profile-docbook.xsl Tue Jan 30 18:11:31 2007 @@ -9,7 +9,7 @@ <xsl:output method="xml" indent="no"/> <!-- ******************************************************************** - $Id: profile-docbook.xsl,v 1.1 2007/01/22 15:54:42 bjori Exp $ + $Id: profile-docbook.xsl,v 1.2 2007/01/30 18:11:31 bjori Exp $ ******************************************************************** This file is part of the XSL DocBook Stylesheet distribution. @@ -68,8 +68,8 @@ <xsl:include href="pi.xsl"/> <xsl:include href="spaces.xsl"/> <xsl:include href="ebnf.xsl"/> -<xsl:include href="docbookng.xsl"/> <xsl:include href="../html/chunker.xsl"/> +<xsl:include href="annotations.xsl"/> <xsl:include href="../common/stripns.xsl"/> <xsl:include href="fop.xsl"/> http://cvs.php.net/viewvc.cgi/phpdoc/docbook/docbook-xsl/fo/qandaset.xsl?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/docbook/docbook-xsl/fo/qandaset.xsl diff -u phpdoc/docbook/docbook-xsl/fo/qandaset.xsl:1.1 phpdoc/docbook/docbook-xsl/fo/qandaset.xsl:1.2 --- phpdoc/docbook/docbook-xsl/fo/qandaset.xsl:1.1 Mon Jan 22 15:54:42 2007 +++ phpdoc/docbook/docbook-xsl/fo/qandaset.xsl Tue Jan 30 18:11:31 2007 @@ -4,7 +4,7 @@ version='1.0'> <!-- ******************************************************************** - $Id: qandaset.xsl,v 1.1 2007/01/22 15:54:42 bjori Exp $ + $Id: qandaset.xsl,v 1.2 2007/01/30 18:11:31 bjori Exp $ ******************************************************************** This file is part of the XSL DocBook Stylesheet distribution. @@ -83,10 +83,10 @@ <xsl:call-template name="qandaset.toc.separator"/> - <xsl:apply-templates select="*[name(.) != 'title' - and name(.) != 'titleabbrev' - and name(.) != 'qandadiv' - and name(.) != 'qandaentry']"/> + <xsl:apply-templates select="*[local-name(.) != 'title' + and local-name(.) != 'titleabbrev' + and local-name(.) != 'qandadiv' + and local-name(.) != 'qandaentry']"/> <xsl:apply-templates select="qandadiv"/> <xsl:if test="qandaentry"> @@ -147,7 +147,7 @@ </xsl:call-template> </xsl:template> -<xsl:template match="qandaset/blockinfo"> +<xsl:template match="qandaset/blockinfo|qandaset/info"> <!-- what should this template really do? --> <xsl:apply-templates select="legalnotice" mode="titlepage.mode"/> </xsl:template> @@ -181,10 +181,10 @@ <fo:block id="{$id}"> <xsl:apply-templates select="(blockinfo/title|info/title|title)[1]"/> - <xsl:apply-templates select="*[name(.) != 'title' - and name(.) != 'titleabbrev' - and name(.) != 'qandadiv' - and name(.) != 'qandaentry']"/> + <xsl:apply-templates select="*[local-name(.) != 'title' + and local-name(.) != 'titleabbrev' + and local-name(.) != 'qandadiv' + and local-name(.) != 'qandaentry']"/> <fo:block> <xsl:apply-templates select="qandadiv"/> http://cvs.php.net/viewvc.cgi/phpdoc/docbook/docbook-xsl/fo/refentry.xsl?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/docbook/docbook-xsl/fo/refentry.xsl diff -u phpdoc/docbook/docbook-xsl/fo/refentry.xsl:1.1 phpdoc/docbook/docbook-xsl/fo/refentry.xsl:1.2 --- phpdoc/docbook/docbook-xsl/fo/refentry.xsl:1.1 Mon Jan 22 15:54:42 2007 +++ phpdoc/docbook/docbook-xsl/fo/refentry.xsl Tue Jan 30 18:11:31 2007 @@ -5,7 +5,7 @@ version='1.0'> <!-- ******************************************************************** - $Id: refentry.xsl,v 1.1 2007/01/22 15:54:42 bjori Exp $ + $Id: refentry.xsl,v 1.2 2007/01/30 18:11:31 bjori Exp $ ******************************************************************** This file is part of the XSL DocBook Stylesheet distribution. @@ -174,6 +174,7 @@ </xsl:template> <xsl:template match="reference/docinfo|refentry/refentryinfo"></xsl:template> +<xsl:template match="reference/info"></xsl:template> <xsl:template match="reference/title"></xsl:template> <xsl:template match="reference/subtitle"></xsl:template> @@ -616,6 +617,11 @@ </fo:block> </xsl:template> +<xsl:template match="refsectioninfo|refsection/info"></xsl:template> +<xsl:template match="refsect1info|refsect1/info"></xsl:template> +<xsl:template match="refsect2info|refsect2/info"></xsl:template> +<xsl:template match="refsect3info|refsect3/info"></xsl:template> + <!-- ==================================================================== --> </xsl:stylesheet> http://cvs.php.net/viewvc.cgi/phpdoc/docbook/docbook-xsl/fo/sections.xsl?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/docbook/docbook-xsl/fo/sections.xsl diff -u phpdoc/docbook/docbook-xsl/fo/sections.xsl:1.1 phpdoc/docbook/docbook-xsl/fo/sections.xsl:1.2 --- phpdoc/docbook/docbook-xsl/fo/sections.xsl:1.1 Mon Jan 22 15:54:42 2007 +++ phpdoc/docbook/docbook-xsl/fo/sections.xsl Tue Jan 30 18:11:31 2007 @@ -5,7 +5,7 @@ version='1.0'> <!-- ******************************************************************** - $Id: sections.xsl,v 1.1 2007/01/22 15:54:42 bjori Exp $ + $Id: sections.xsl,v 1.2 2007/01/30 18:11:31 bjori Exp $ ******************************************************************** This file is part of the XSL DocBook Stylesheet distribution. @@ -18,7 +18,7 @@ <xsl:template match="section"> <xsl:choose> - <xsl:when test="$rootid = @id"> + <xsl:when test="$rootid = @id or $rootid = @xml:id"> <xsl:call-template name="section.page.sequence"/> </xsl:when> <xsl:otherwise> @@ -546,35 +546,42 @@ </xsl:template> <xsl:template match="sectioninfo"></xsl:template> +<xsl:template match="section/info"></xsl:template> <xsl:template match="section/title"></xsl:template> <xsl:template match="section/titleabbrev"></xsl:template> <xsl:template match="section/subtitle"></xsl:template> <xsl:template match="sect1info"></xsl:template> +<xsl:template match="sect1/info"></xsl:template> <xsl:template match="sect1/title"></xsl:template> <xsl:template match="sect1/titleabbrev"></xsl:template> <xsl:template match="sect1/subtitle"></xsl:template> <xsl:template match="sect2info"></xsl:template> +<xsl:template match="sect2/info"></xsl:template> <xsl:template match="sect2/title"></xsl:template> <xsl:template match="sect2/titleabbrev"></xsl:template> <xsl:template match="sect2/subtitle"></xsl:template> <xsl:template match="sect3info"></xsl:template> +<xsl:template match="sect3/info"></xsl:template> <xsl:template match="sect3/title"></xsl:template> <xsl:template match="sect3/titleabbrev"></xsl:template> <xsl:template match="sect3/subtitle"></xsl:template> <xsl:template match="sect4info"></xsl:template> +<xsl:template match="sect4/info"></xsl:template> <xsl:template match="sect4/title"></xsl:template> <xsl:template match="sect4/titleabbrev"></xsl:template> <xsl:template match="sect4/subtitle"></xsl:template> <xsl:template match="sect5info"></xsl:template> +<xsl:template match="sect5/info"></xsl:template> <xsl:template match="sect5/title"></xsl:template> <xsl:template match="sect5/titleabbrev"></xsl:template> <xsl:template match="sect5/subtitle"></xsl:template> +<xsl:template match="simplesect/info"></xsl:template> <xsl:template match="simplesect/title"></xsl:template> <xsl:template match="simplesect/titleabbrev"></xsl:template> <xsl:template match="simplesect/subtitle"></xsl:template> http://cvs.php.net/viewvc.cgi/phpdoc/docbook/docbook-xsl/fo/spaces.xsl?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/docbook/docbook-xsl/fo/spaces.xsl diff -u phpdoc/docbook/docbook-xsl/fo/spaces.xsl:1.1 phpdoc/docbook/docbook-xsl/fo/spaces.xsl:1.2 --- phpdoc/docbook/docbook-xsl/fo/spaces.xsl:1.1 Mon Jan 22 15:54:42 2007 +++ phpdoc/docbook/docbook-xsl/fo/spaces.xsl Tue Jan 30 18:11:31 2007 @@ -4,7 +4,7 @@ version='1.0'> <!-- ******************************************************************** - $Id: spaces.xsl,v 1.1 2007/01/22 15:54:42 bjori Exp $ + $Id: spaces.xsl,v 1.2 2007/01/30 18:11:31 bjori Exp $ ******************************************************************** XSL-FO specification treats all space characters like ordinary spaces. We need to map them to fo:leader with different widths in order to http://cvs.php.net/viewvc.cgi/phpdoc/docbook/docbook-xsl/fo/synop.xsl?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/docbook/docbook-xsl/fo/synop.xsl diff -u phpdoc/docbook/docbook-xsl/fo/synop.xsl:1.1 phpdoc/docbook/docbook-xsl/fo/synop.xsl:1.2 --- phpdoc/docbook/docbook-xsl/fo/synop.xsl:1.1 Mon Jan 22 15:54:42 2007 +++ phpdoc/docbook/docbook-xsl/fo/synop.xsl Tue Jan 30 18:11:31 2007 @@ -8,7 +8,7 @@ version='1.0'> <!-- ******************************************************************** - $Id: synop.xsl,v 1.1 2007/01/22 15:54:42 bjori Exp $ + $Id: synop.xsl,v 1.2 2007/01/30 18:11:31 bjori Exp $ ******************************************************************** This file is part of the XSL DocBook Stylesheet distribution. @@ -283,7 +283,7 @@ </xsl:param> <!-- - <xsl:message>process <xsl:value-of select="name(.)"/> in <xsl:value-of select="$language"/></xsl:message> + <xsl:message>process <xsl:value-of select="local-name(.)"/> in <xsl:value-of select="$language"/></xsl:message> --> <xsl:choose> @@ -302,7 +302,7 @@ <xsl:otherwise> <xsl:message> <xsl:text>Unrecognized language on </xsl:text> - <xsl:value-of select="name(.)"/> + <xsl:value-of select="local-name(.)"/> <xsl:text>: </xsl:text> <xsl:value-of select="$language"/> </xsl:message> @@ -376,29 +376,29 @@ <xsl:apply-templates mode="java"/> </xsl:template> -<xsl:template match="modifier" mode="java"> +<xsl:template match="modifier|package" mode="java"> <xsl:apply-templates mode="java"/> - <xsl:if test="following-sibling::*"> - <xsl:text>&nbsp;</xsl:text> - </xsl:if> + <xsl:if test="following-sibling::*"> + <xsl:text>&nbsp;</xsl:text> + </xsl:if> </xsl:template> <xsl:template match="classname" mode="java"> - <xsl:if test="name(preceding-sibling::*[1]) = 'classname'"> + <xsl:if test="local-name(preceding-sibling::*[1]) = 'classname'"> <xsl:text>, </xsl:text> </xsl:if> <xsl:apply-templates mode="java"/> </xsl:template> <xsl:template match="interfacename" mode="java"> - <xsl:if test="name(preceding-sibling::*[1]) = 'interfacename'"> + <xsl:if test="local-name(preceding-sibling::*[1]) = 'interfacename'"> <xsl:text>, </xsl:text> </xsl:if> <xsl:apply-templates mode="java"/> </xsl:template> <xsl:template match="exceptionname" mode="java"> - <xsl:if test="name(preceding-sibling::*[1]) = 'exceptionname'"> + <xsl:if test="local-name(preceding-sibling::*[1]) = 'exceptionname'"> <xsl:text>, </xsl:text> </xsl:if> <xsl:apply-templates mode="java"/> @@ -459,15 +459,15 @@ <xsl:template mode="java" match="constructorsynopsis|destructorsynopsis|methodsynopsis"> - <xsl:variable name="start-modifiers" select="modifier[following-sibling::*[name(.) != 'modifier']]"/> - <xsl:variable name="notmod" select="*[name(.) != 'modifier']"/> - <xsl:variable name="end-modifiers" select="modifier[preceding-sibling::*[name(.) != 'modifier']]"/> + <xsl:variable name="start-modifiers" select="modifier[following-sibling::*[local-name(.) != 'modifier']]"/> + <xsl:variable name="notmod" select="*[local-name(.) != 'modifier']"/> + <xsl:variable name="end-modifiers" select="modifier[preceding-sibling::*[local-name(.) != 'modifier']]"/> <xsl:variable name="decl"> <xsl:text> </xsl:text> <xsl:apply-templates select="$start-modifiers" mode="java"/> <!-- type --> - <xsl:if test="name($notmod[1]) != 'methodname'"> + <xsl:if test="local-name($notmod[1]) != 'methodname'"> <xsl:apply-templates select="$notmod[1]" mode="java"/> </xsl:if> @@ -488,7 +488,7 @@ <xsl:text>&RE;&nbsp;&nbsp;&nbsp;&nbsp;throws&nbsp;</xsl:text> <xsl:apply-templates select="exceptionname" mode="java"/> </xsl:if> - <xsl:if test="modifier[preceding-sibling::*[name(.) != 'modifier']]"> + <xsl:if test="modifier[preceding-sibling::*[local-name(.) != 'modifier']]"> <xsl:text> </xsl:text> <xsl:apply-templates select="$end-modifiers" mode="java"/> </xsl:if> @@ -544,7 +544,7 @@ <xsl:apply-templates mode="cpp"/> </xsl:template> -<xsl:template match="modifier" mode="cpp"> +<xsl:template match="modifier|package" mode="cpp"> <xsl:apply-templates mode="cpp"/> <xsl:if test="following-sibling::*"> <xsl:text>&nbsp;</xsl:text> @@ -552,21 +552,21 @@ </xsl:template> <xsl:template match="classname" mode="cpp"> - <xsl:if test="name(preceding-sibling::*[1]) = 'classname'"> + <xsl:if test="local-name(preceding-sibling::*[1]) = 'classname'"> <xsl:text>, </xsl:text> </xsl:if> <xsl:apply-templates mode="cpp"/> </xsl:template> <xsl:template match="interfacename" mode="cpp"> - <xsl:if test="name(preceding-sibling::*[1]) = 'interfacename'"> + <xsl:if test="local-name(preceding-sibling::*[1]) = 'interfacename'"> <xsl:text>, </xsl:text> </xsl:if> <xsl:apply-templates mode="cpp"/> </xsl:template> <xsl:template match="exceptionname" mode="cpp"> - <xsl:if test="name(preceding-sibling::*[1]) = 'exceptionname'"> + <xsl:if test="local-name(preceding-sibling::*[1]) = 'exceptionname'"> <xsl:text>, </xsl:text> </xsl:if> <xsl:apply-templates mode="cpp"/> @@ -620,9 +620,9 @@ <xsl:template mode="cpp" match="constructorsynopsis|destructorsynopsis|methodsynopsis"> - <xsl:variable name="start-modifiers" select="modifier[following-sibling::*[name(.) != 'modifier']]"/> - <xsl:variable name="notmod" select="*[name(.) != 'modifier']"/> - <xsl:variable name="end-modifiers" select="modifier[preceding-sibling::*[name(.) != 'modifier']]"/> + <xsl:variable name="start-modifiers" select="modifier[following-sibling::*[local-name(.) != 'modifier']]"/> + <xsl:variable name="notmod" select="*[local-name(.) != 'modifier']"/> + <xsl:variable name="end-modifiers" select="modifier[preceding-sibling::*[local-name(.) != 'modifier']]"/> <fo:block wrap-option='no-wrap' white-space-collapse='false' @@ -632,7 +632,7 @@ <xsl:apply-templates select="$start-modifiers" mode="cpp"/> <!-- type --> - <xsl:if test="name($notmod[1]) != 'methodname'"> + <xsl:if test="local-name($notmod[1]) != 'methodname'"> <xsl:apply-templates select="$notmod[1]" mode="cpp"/> </xsl:if> @@ -644,7 +644,7 @@ <xsl:text>&RE;&nbsp;&nbsp;&nbsp;&nbsp;throws&nbsp;</xsl:text> <xsl:apply-templates select="exceptionname" mode="cpp"/> </xsl:if> - <xsl:if test="modifier[preceding-sibling::*[name(.) != 'modifier']]"> + <xsl:if test="modifier[preceding-sibling::*[local-name(.) != 'modifier']]"> <xsl:text> </xsl:text> <xsl:apply-templates select="$end-modifiers" mode="cpp"/> </xsl:if> @@ -701,7 +701,7 @@ <xsl:apply-templates mode="idl"/> </xsl:template> -<xsl:template match="modifier" mode="idl"> +<xsl:template match="modifier|package" mode="idl"> <xsl:apply-templates mode="idl"/> <xsl:if test="following-sibling::*"> <xsl:text>&nbsp;</xsl:text> @@ -709,21 +709,21 @@ </xsl:template> <xsl:template match="classname" mode="idl"> - <xsl:if test="name(preceding-sibling::*[1]) = 'classname'"> + <xsl:if test="local-name(preceding-sibling::*[1]) = 'classname'"> <xsl:text>, </xsl:text> </xsl:if> <xsl:apply-templates mode="idl"/> </xsl:template> <xsl:template match="interfacename" mode="idl"> - <xsl:if test="name(preceding-sibling::*[1]) = 'interfacename'"> + <xsl:if test="local-name(preceding-sibling::*[1]) = 'interfacename'"> <xsl:text>, </xsl:text> </xsl:if> <xsl:apply-templates mode="idl"/> </xsl:template> <xsl:template match="exceptionname" mode="idl"> - <xsl:if test="name(preceding-sibling::*[1]) = 'exceptionname'"> + <xsl:if test="local-name(preceding-sibling::*[1]) = 'exceptionname'"> <xsl:text>, </xsl:text> </xsl:if> <xsl:apply-templates mode="idl"/> @@ -777,9 +777,9 @@ <xsl:template mode="idl" match="constructorsynopsis|destructorsynopsis|methodsynopsis"> - <xsl:variable name="start-modifiers" select="modifier[following-sibling::*[name(.) != 'modifier']]"/> - <xsl:variable name="notmod" select="*[name(.) != 'modifier']"/> - <xsl:variable name="end-modifiers" select="modifier[preceding-sibling::*[name(.) != 'modifier']]"/> + <xsl:variable name="start-modifiers" select="modifier[following-sibling::*[local-name(.) != 'modifier']]"/> + <xsl:variable name="notmod" select="*[local-name(.) != 'modifier']"/> + <xsl:variable name="end-modifiers" select="modifier[preceding-sibling::*[local-name(.) != 'modifier']]"/> <fo:block wrap-option='no-wrap' white-space-collapse='false' @@ -789,7 +789,7 @@ <xsl:apply-templates select="$start-modifiers" mode="idl"/> <!-- type --> - <xsl:if test="name($notmod[1]) != 'methodname'"> + <xsl:if test="local-name($notmod[1]) != 'methodname'"> <xsl:apply-templates select="$notmod[1]" mode="idl"/> </xsl:if> @@ -802,7 +802,7 @@ <xsl:apply-templates select="exceptionname" mode="idl"/> <xsl:text>)</xsl:text> </xsl:if> - <xsl:if test="modifier[preceding-sibling::*[name(.) != 'modifier']]"> + <xsl:if test="modifier[preceding-sibling::*[local-name(.) != 'modifier']]"> <xsl:text> </xsl:text> <xsl:apply-templates select="$end-modifiers" mode="idl"/> </xsl:if> @@ -847,7 +847,7 @@ <xsl:apply-templates mode="perl"/> </xsl:template> -<xsl:template match="modifier" mode="perl"> +<xsl:template match="modifier|package" mode="perl"> <xsl:apply-templates mode="perl"/> <xsl:if test="following-sibling::*"> <xsl:text>&nbsp;</xsl:text> @@ -855,21 +855,21 @@ </xsl:template> <xsl:template match="classname" mode="perl"> - <xsl:if test="name(preceding-sibling::*[1]) = 'classname'"> + <xsl:if test="local-name(preceding-sibling::*[1]) = 'classname'"> <xsl:text>, </xsl:text> </xsl:if> <xsl:apply-templates mode="perl"/> </xsl:template> <xsl:template match="interfacename" mode="perl"> - <xsl:if test="name(preceding-sibling::*[1]) = 'interfacename'"> + <xsl:if test="local-name(preceding-sibling::*[1]) = 'interfacename'"> <xsl:text>, </xsl:text> </xsl:if> <xsl:apply-templates mode="perl"/> </xsl:template> <xsl:template match="exceptionname" mode="perl"> - <xsl:if test="name(preceding-sibling::*[1]) = 'exceptionname'"> + <xsl:if test="local-name(preceding-sibling::*[1]) = 'exceptionname'"> <xsl:text>, </xsl:text> </xsl:if> <xsl:apply-templates mode="perl"/> @@ -923,9 +923,9 @@ <xsl:template mode="perl" match="constructorsynopsis|destructorsynopsis|methodsynopsis"> - <xsl:variable name="start-modifiers" select="modifier[following-sibling::*[name(.) != 'modifier']]"/> - <xsl:variable name="notmod" select="*[name(.) != 'modifier']"/> - <xsl:variable name="end-modifiers" select="modifier[preceding-sibling::*[name(.) != 'modifier']]"/> + <xsl:variable name="start-modifiers" select="modifier[following-sibling::*[local-name(.) != 'modifier']]"/> + <xsl:variable name="notmod" select="*[local-name(.) != 'modifier']"/> + <xsl:variable name="end-modifiers" select="modifier[preceding-sibling::*[local-name(.) != 'modifier']]"/> <fo:block wrap-option='no-wrap' white-space-collapse='false' http://cvs.php.net/viewvc.cgi/phpdoc/docbook/docbook-xsl/fo/table.xsl?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/docbook/docbook-xsl/fo/table.xsl diff -u phpdoc/docbook/docbook-xsl/fo/table.xsl:1.1 phpdoc/docbook/docbook-xsl/fo/table.xsl:1.2 --- phpdoc/docbook/docbook-xsl/fo/table.xsl:1.1 Mon Jan 22 15:54:42 2007 +++ phpdoc/docbook/docbook-xsl/fo/table.xsl Tue Jan 30 18:11:31 2007 @@ -13,7 +13,7 @@ <xsl:include href="../common/table.xsl"/> <!-- ******************************************************************** - $Id: table.xsl,v 1.1 2007/01/22 15:54:42 bjori Exp $ + $Id: table.xsl,v 1.2 2007/01/30 18:11:31 bjori Exp $ ******************************************************************** This file is part of the XSL DocBook Stylesheet distribution. @@ -25,7 +25,7 @@ <doc:reference xmlns=""> <referenceinfo> <releaseinfo role="meta"> -$Id: table.xsl,v 1.1 2007/01/22 15:54:42 bjori Exp $ +$Id: table.xsl,v 1.2 2007/01/30 18:11:31 bjori Exp $ </releaseinfo> <author><surname>Walsh</surname> <firstname>Norman</firstname></author> @@ -247,7 +247,7 @@ <xsl:variable name="colsep"> <xsl:choose> <!-- If this is the last column, colsep never applies. --> - <xsl:when test="$colnum &gt;= ancestor::tgroup/@cols">0</xsl:when> + <xsl:when test="number($colnum) &gt;= ancestor::tgroup/@cols">0</xsl:when> <xsl:otherwise> <xsl:call-template name="inherited.table.attribute"> <xsl:with-param name="entry" select="NOT-AN-ELEMENT-NAME"/> @@ -272,7 +272,7 @@ </xsl:call-template> </xsl:if> - <xsl:if test="$colsep &gt; 0 and $colnum &lt; ancestor::tgroup/@cols"> + <xsl:if test="$colsep &gt; 0 and number($colnum) &lt; ancestor::tgroup/@cols"> <xsl:call-template name="border"> <xsl:with-param name="side" select="'right'"/> </xsl:call-template> @@ -686,36 +686,36 @@ <xsl:choose> <xsl:when test="contains($spans, '0')"> <xsl:call-template name="normal-row"> - <xsl:with-param name="spans" select="$spans"/> + <xsl:with-param name="spans" select="$spans"/> </xsl:call-template> </xsl:when> <xsl:otherwise> <!-- <xsl:message> - <xsl:text>Ignoring row: </xsl:text> - <xsl:value-of select="$spans"/> - <xsl:text> = </xsl:text> - <xsl:call-template name="consume-row"> - <xsl:with-param name="spans" select="$spans"/> - </xsl:call-template> + <xsl:text>Ignoring row: </xsl:text> + <xsl:value-of select="$spans"/> + <xsl:text> = </xsl:text> + <xsl:call-template name="consume-row"> + <xsl:with-param name="spans" select="$spans"/> + </xsl:call-template> </xsl:message> --> <xsl:if test="normalize-space(.//text()) != ''"> - <xsl:message>Warning: overlapped row contains content!</xsl:message> + <xsl:message>Warning: overlapped row contains content!</xsl:message> </xsl:if> <fo:table-row> - <xsl:comment> This row intentionally left blank </xsl:comment> - <fo:table-cell><fo:block/></fo:table-cell> + <xsl:comment> This row intentionally left blank </xsl:comment> + <fo:table-cell><fo:block/></fo:table-cell> </fo:table-row> <xsl:apply-templates select="following-sibling::row[1]"> - <xsl:with-param name="spans"> - <xsl:call-template name="consume-row"> - <xsl:with-param name="spans" select="$spans"/> - </xsl:call-template> - </xsl:with-param> + <xsl:with-param name="spans"> + <xsl:call-template name="consume-row"> + <xsl:with-param name="spans" select="$spans"/> + </xsl:call-template> + </xsl:with-param> </xsl:apply-templates> </xsl:otherwise> </xsl:choose> @@ -724,20 +724,9 @@ <xsl:template name="normal-row"> <xsl:param name="spans"/> - <xsl:variable name="bgcolor"> - <xsl:call-template name="dbfo-attribute"> - <xsl:with-param name="pis" select="processing-instruction('dbfo')"/> - <xsl:with-param name="attribute" select="'bgcolor'"/> - </xsl:call-template> - </xsl:variable> - <fo:table-row> + <xsl:call-template name="table.row.properties"/> <xsl:call-template name="anchor"/> - <xsl:if test="$bgcolor != ''"> - <xsl:attribute name="background-color"> - <xsl:value-of select="$bgcolor"/> - </xsl:attribute> - </xsl:if> <xsl:apply-templates select="(entry|entrytbl)[1]"> <xsl:with-param name="spans" select="$spans"/> @@ -757,6 +746,22 @@ </xsl:if> </xsl:template> +<!-- customize this template to add row properties --> +<xsl:template name="table.row.properties"> + <xsl:variable name="bgcolor"> + <xsl:call-template name="dbfo-attribute"> + <xsl:with-param name="pis" select="processing-instruction('dbfo')"/> + <xsl:with-param name="attribute" select="'bgcolor'"/> + </xsl:call-template> + </xsl:variable> + <xsl:if test="$bgcolor != ''"> + <xsl:attribute name="background-color"> + <xsl:value-of select="$bgcolor"/> + </xsl:attribute> + </xsl:if> + +</xsl:template> + <xsl:template match="entry|entrytbl" name="entry"> <xsl:param name="col" select="1"/> <xsl:param name="spans"/> @@ -874,7 +879,7 @@ </xsl:call-template> </xsl:when> - <xsl:when test="$entry.colnum &gt; $col"> + <xsl:when test="number($entry.colnum) &gt; $col"> <xsl:call-template name="empty.table.cell"> <xsl:with-param name="colnum" select="$col"/> </xsl:call-template> @@ -1186,7 +1191,7 @@ </xsl:call-template> </xsl:when> - <xsl:when test="$entry.colnum &gt; $col"> + <xsl:when test="number($entry.colnum) &gt; $col"> <xsl:text>0:</xsl:text> <xsl:call-template name="sentry"> <xsl:with-param name="col" select="$col+$entry.colspan"/> http://cvs.php.net/viewvc.cgi/phpdoc/docbook/docbook-xsl/fo/task.xsl?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/docbook/docbook-xsl/fo/task.xsl diff -u phpdoc/docbook/docbook-xsl/fo/task.xsl:1.1 phpdoc/docbook/docbook-xsl/fo/task.xsl:1.2 --- phpdoc/docbook/docbook-xsl/fo/task.xsl:1.1 Mon Jan 22 15:54:42 2007 +++ phpdoc/docbook/docbook-xsl/fo/task.xsl Tue Jan 30 18:11:31 2007 @@ -4,7 +4,7 @@ version="1.0"> <!-- ******************************************************************** - $Id: task.xsl,v 1.1 2007/01/22 15:54:42 bjori Exp $ + $Id: task.xsl,v 1.2 2007/01/30 18:11:31 bjori Exp $ ******************************************************************** This file is part of the XSL DocBook Stylesheet distribution. http://cvs.php.net/viewvc.cgi/phpdoc/docbook/docbook-xsl/fo/titlepage.xsl?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/docbook/docbook-xsl/fo/titlepage.xsl diff -u phpdoc/docbook/docbook-xsl/fo/titlepage.xsl:1.1 phpdoc/docbook/docbook-xsl/fo/titlepage.xsl:1.2 --- phpdoc/docbook/docbook-xsl/fo/titlepage.xsl:1.1 Mon Jan 22 15:54:42 2007 +++ phpdoc/docbook/docbook-xsl/fo/titlepage.xsl Tue Jan 30 18:11:31 2007 @@ -4,7 +4,7 @@ version='1.0'> <!-- ******************************************************************** - $Id: titlepage.xsl,v 1.1 2007/01/22 15:54:42 bjori Exp $ + $Id: titlepage.xsl,v 1.2 2007/01/30 18:11:31 bjori Exp $ ******************************************************************** This file is part of the XSL DocBook Stylesheet distribution. @@ -242,9 +242,7 @@ <xsl:template match="authorgroup" mode="titlepage.mode"> <fo:wrapper> - <xsl:if test="@id"> - <xsl:attribute name="id"><xsl:value-of select="@id"/></xsl:attribute> - </xsl:if> + <xsl:call-template name="anchor"/> <xsl:apply-templates mode="titlepage.mode"/> </fo:wrapper> </xsl:template> @@ -668,9 +666,7 @@ <xsl:template match="bookinfo/authorgroup|info/authorgroup" mode="titlepage.mode" priority="2"> <fo:block> - <xsl:if test="@id"> - <xsl:attribute name="id"><xsl:value-of select="@id"/></xsl:attribute> - </xsl:if> + <xsl:call-template name="anchor"/> <xsl:apply-templates mode="titlepage.mode"/> </fo:block> </xsl:template> http://cvs.php.net/viewvc.cgi/phpdoc/docbook/docbook-xsl/fo/toc.xsl?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/docbook/docbook-xsl/fo/toc.xsl diff -u phpdoc/docbook/docbook-xsl/fo/toc.xsl:1.1 phpdoc/docbook/docbook-xsl/fo/toc.xsl:1.2 --- phpdoc/docbook/docbook-xsl/fo/toc.xsl:1.1 Mon Jan 22 15:54:42 2007 +++ phpdoc/docbook/docbook-xsl/fo/toc.xsl Tue Jan 30 18:11:31 2007 @@ -4,7 +4,7 @@ version='1.0'> <!-- ******************************************************************** - $Id: toc.xsl,v 1.1 2007/01/22 15:54:42 bjori Exp $ + $Id: toc.xsl,v 1.2 2007/01/30 18:11:31 bjori Exp $ ******************************************************************** This file is part of the XSL DocBook Stylesheet distribution. http://cvs.php.net/viewvc.cgi/phpdoc/docbook/docbook-xsl/fo/verbatim.xsl?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/docbook/docbook-xsl/fo/verbatim.xsl diff -u phpdoc/docbook/docbook-xsl/fo/verbatim.xsl:1.1 phpdoc/docbook/docbook-xsl/fo/verbatim.xsl:1.2 --- phpdoc/docbook/docbook-xsl/fo/verbatim.xsl:1.1 Mon Jan 22 15:54:42 2007 +++ phpdoc/docbook/docbook-xsl/fo/verbatim.xsl Tue Jan 30 18:11:31 2007 @@ -9,7 +9,7 @@ version='1.0'> <!-- ******************************************************************** - $Id: verbatim.xsl,v 1.1 2007/01/22 15:54:42 bjori Exp $ + $Id: verbatim.xsl,v 1.2 2007/01/30 18:11:31 bjori Exp $ ******************************************************************** This file is part of the XSL DocBook Stylesheet distribution. @@ -49,9 +49,6 @@ <xsl:choose> <xsl:when test="$shade.verbatim != 0"> <fo:block id="{$id}" - white-space-collapse='false' - white-space-treatment='preserve' - linefeed-treatment='preserve' xsl:use-attribute-sets="monospace.verbatim.properties shade.verbatim.style"> <xsl:choose> <xsl:when test="$hyphenate.verbatim != 0 and function-available('exsl:node-set')"> @@ -65,9 +62,6 @@ </xsl:when> <xsl:otherwise> <fo:block id="{$id}" - white-space-collapse='false' - white-space-treatment='preserve' - linefeed-treatment="preserve" xsl:use-attribute-sets="monospace.verbatim.properties"> <xsl:choose> <xsl:when test="$hyphenate.verbatim != 0 and function-available('exsl:node-set')"> @@ -110,9 +104,6 @@ <xsl:choose> <xsl:when test="$shade.verbatim != 0"> <fo:block id="{$id}" - white-space-collapse='false' - white-space-treatment='preserve' - linefeed-treatment="preserve" xsl:use-attribute-sets="monospace.verbatim.properties shade.verbatim.style"> <xsl:copy-of select="$content"/> @@ -120,9 +111,6 @@ </xsl:when> <xsl:otherwise> <fo:block id="{$id}" - white-space-collapse='false' - white-space-treatment='preserve' - linefeed-treatment="preserve" xsl:use-attribute-sets="monospace.verbatim.properties"> <xsl:copy-of select="$content"/> </fo:block> @@ -133,22 +121,12 @@ <xsl:choose> <xsl:when test="$shade.verbatim != 0"> <fo:block id="{$id}" - wrap-option='no-wrap' - white-space-collapse='false' - white-space-treatment='preserve' - text-align='start' - linefeed-treatment="preserve" xsl:use-attribute-sets="verbatim.properties shade.verbatim.style"> <xsl:copy-of select="$content"/> </fo:block> </xsl:when> <xsl:otherwise> <fo:block id="{$id}" - wrap-option='no-wrap' - white-space-collapse='false' - white-space-treatment='preserve' - text-align='start' - linefeed-treatment="preserve" xsl:use-attribute-sets="verbatim.properties"> <xsl:copy-of select="$content"/> </fo:block> @@ -179,11 +157,7 @@ </xsl:choose> </xsl:variable> - <fo:block wrap-option='no-wrap' - white-space-collapse='false' - white-space-treatment='preserve' - linefeed-treatment="preserve" - xsl:use-attribute-sets="verbatim.properties"> + <fo:block xsl:use-attribute-sets="verbatim.properties"> <xsl:copy-of select="$content"/> </fo:block> </xsl:template> http://cvs.php.net/viewvc.cgi/phpdoc/docbook/docbook-xsl/fo/xep.xsl?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/docbook/docbook-xsl/fo/xep.xsl diff -u phpdoc/docbook/docbook-xsl/fo/xep.xsl:1.1 phpdoc/docbook/docbook-xsl/fo/xep.xsl:1.2 --- phpdoc/docbook/docbook-xsl/fo/xep.xsl:1.1 Mon Jan 22 15:54:42 2007 +++ phpdoc/docbook/docbook-xsl/fo/xep.xsl Tue Jan 30 18:11:31 2007 @@ -5,7 +5,7 @@ version='1.0'> <!-- ******************************************************************** - $Id: xep.xsl,v 1.1 2007/01/22 15:54:42 bjori Exp $ + $Id: xep.xsl,v 1.2 2007/01/30 18:11:31 bjori Exp $ ******************************************************************** (c) Stephane Bline Peregrine Systems 2001 Implementation of xep extensions: @@ -55,7 +55,9 @@ <xsl:element name="rx:meta-field"> <xsl:attribute name="name">creator</xsl:attribute> <xsl:attribute name="value"> - <xsl:text>DocBook XSL Stylesheets V</xsl:text> + <xsl:text>DocBook </xsl:text> + <xsl:value-of select="$DistroTitle"/> + <xsl:text> V</xsl:text> <xsl:value-of select="$VERSION"/> </xsl:attribute> </xsl:element> http://cvs.php.net/viewvc.cgi/phpdoc/docbook/docbook-xsl/fo/xref.xsl?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/docbook/docbook-xsl/fo/xref.xsl diff -u phpdoc/docbook/docbook-xsl/fo/xref.xsl:1.1 phpdoc/docbook/docbook-xsl/fo/xref.xsl:1.2 --- phpdoc/docbook/docbook-xsl/fo/xref.xsl:1.1 Mon Jan 22 15:54:42 2007 +++ phpdoc/docbook/docbook-xsl/fo/xref.xsl Tue Jan 30 18:11:31 2007 @@ -2,11 +2,12 @@ <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:exsl="http://exslt.org/common" + xmlns:xlink='http://www.w3.org/1999/xlink' exclude-result-prefixes="exsl" version='1.0'> <!-- ******************************************************************** - $Id: xref.xsl,v 1.1 2007/01/22 15:54:42 bjori Exp $ + $Id: xref.xsl,v 1.2 2007/01/30 18:11:31 bjori Exp $ ******************************************************************** This file is part of the XSL DocBook Stylesheet distribution. @@ -18,20 +19,31 @@ <!-- ==================================================================== --> <xsl:template match="anchor"> - <fo:inline id="{@id}"/> + <xsl:variable name="id"> + <xsl:call-template name="object.id"/> + </xsl:variable> + <fo:inline id="{$id}"/> </xsl:template> <!-- ==================================================================== --> <xsl:template match="xref" name="xref"> - <xsl:param name="targets" select="key('id',@linkend)"/> - <xsl:param name="target" select="$targets[1]"/> + <xsl:param name="xhref" select="@xlink:href"/> + <!-- is the @xlink:href a local idref link? --> + <xsl:param name="xlink.idref"> + <xsl:if test="starts-with($xhref,'#') + and (not(contains($xhref,'&#40;')) + or starts-with($xhref, '#xpointer&#40;id&#40;'))"> + <xsl:call-template name="xpointer.idref"> + <xsl:with-param name="xpointer" select="$xhref"/> + </xsl:call-template> + </xsl:if> + </xsl:param> + <xsl:param name="xlink.targets" select="key('id',$xlink.idref)"/> + <xsl:param name="linkend.targets" select="key('id',@linkend)"/> + <xsl:param name="target" select="($xlink.targets | $linkend.targets)[1]"/> <xsl:param name="refelem" select="local-name($target)"/> - <xsl:call-template name="check.id.unique"> - <xsl:with-param name="linkend" select="@linkend"/> - </xsl:call-template> - <xsl:variable name="xrefstyle"> <xsl:choose> <xsl:when test="@role and not(@xrefstyle) @@ -44,70 +56,72 @@ </xsl:choose> </xsl:variable> - <xsl:choose> - <xsl:when test="$refelem=''"> - <xsl:message> - <xsl:text>XRef to nonexistent id: </xsl:text> - <xsl:value-of select="@linkend"/> - </xsl:message> - <xsl:text>???</xsl:text> - </xsl:when> - - <xsl:when test="@endterm"> - <fo:basic-link internal-destination="{@linkend}" - xsl:use-attribute-sets="xref.properties"> - <xsl:variable name="etargets" select="key('id',@endterm)"/> - <xsl:variable name="etarget" select="$etargets[1]"/> - <xsl:choose> - <xsl:when test="count($etarget) = 0"> - <xsl:message> - <xsl:value-of select="count($etargets)"/> - <xsl:text>Endterm points to nonexistent ID: </xsl:text> - <xsl:value-of select="@endterm"/> - </xsl:message> - <xsl:text>???</xsl:text> - </xsl:when> - <xsl:otherwise> - <xsl:apply-templates select="$etarget" mode="endterm"/> - </xsl:otherwise> - </xsl:choose> - </fo:basic-link> - </xsl:when> - - <xsl:when test="$target/@xreflabel"> - <fo:basic-link internal-destination="{@linkend}" - xsl:use-attribute-sets="xref.properties"> - <xsl:call-template name="xref.xreflabel"> - <xsl:with-param name="target" select="$target"/> - </xsl:call-template> - </fo:basic-link> - </xsl:when> - - <xsl:otherwise> - <xsl:if test="not(parent::citation)"> - <xsl:apply-templates select="$target" mode="xref-to-prefix"/> - </xsl:if> - - <fo:basic-link internal-destination="{@linkend}" - xsl:use-attribute-sets="xref.properties"> - <xsl:apply-templates select="$target" mode="xref-to"> - <xsl:with-param name="referrer" select="."/> - <xsl:with-param name="xrefstyle" select="$xrefstyle"/> - </xsl:apply-templates> - </fo:basic-link> - - <xsl:if test="not(parent::citation)"> - <xsl:apply-templates select="$target" mode="xref-to-suffix"/> - </xsl:if> + <xsl:variable name="content"> + <fo:inline xsl:use-attribute-sets="xref.properties"> + <xsl:choose> + <xsl:when test="@endterm"> + <xsl:variable name="etargets" select="key('id',@endterm)"/> + <xsl:variable name="etarget" select="$etargets[1]"/> + <xsl:choose> + <xsl:when test="count($etarget) = 0"> + <xsl:message> + <xsl:value-of select="count($etargets)"/> + <xsl:text>Endterm points to nonexistent ID: </xsl:text> + <xsl:value-of select="@endterm"/> + </xsl:message> + <xsl:text>???</xsl:text> + </xsl:when> + <xsl:otherwise> + <xsl:apply-templates select="$etarget" mode="endterm"/> + </xsl:otherwise> + </xsl:choose> + </xsl:when> + + <xsl:when test="$target/@xreflabel"> + <xsl:call-template name="xref.xreflabel"> + <xsl:with-param name="target" select="$target"/> + </xsl:call-template> + </xsl:when> + + <xsl:when test="$target"> + <xsl:if test="not(parent::citation)"> + <xsl:apply-templates select="$target" mode="xref-to-prefix"/> + </xsl:if> + + <xsl:apply-templates select="$target" mode="xref-to"> + <xsl:with-param name="referrer" select="."/> + <xsl:with-param name="xrefstyle" select="$xrefstyle"/> + </xsl:apply-templates> + + <xsl:if test="not(parent::citation)"> + <xsl:apply-templates select="$target" mode="xref-to-suffix"/> + </xsl:if> + </xsl:when> + <xsl:otherwise> + <xsl:message> + <xsl:text>ERROR: xref linking to </xsl:text> + <xsl:value-of select="@linkend|@xlink:href"/> + <xsl:text> has no generated link text.</xsl:text> + </xsl:message> + <xsl:text>???</xsl:text> + </xsl:otherwise> + </xsl:choose> + </fo:inline> + </xsl:variable> - </xsl:otherwise> - </xsl:choose> + <!-- Convert it into an active link --> + <xsl:call-template name="simple.xlink"> + <xsl:with-param name="content" select="$content"/> + </xsl:call-template> <!-- Add standard page reference? --> <xsl:choose> - <!-- negative xrefstyle in instance turns it off --> + <xsl:when test="not($target)"> + <!-- page numbers only for local targets --> + </xsl:when> <xsl:when test="starts-with(normalize-space($xrefstyle), 'select:') and contains($xrefstyle, 'nopage')"> + <!-- negative xrefstyle in instance turns it off --> </xsl:when> <!-- positive xrefstyle already handles it --> <xsl:when test="not(starts-with(normalize-space($xrefstyle), 'select:') @@ -117,7 +131,7 @@ or $insert.xref.page.number = '1') or local-name($target) = 'para'"> <xsl:apply-templates select="$target" mode="page.citation"> - <xsl:with-param name="id" select="@linkend"/> + <xsl:with-param name="id" select="$target/@id|$target/@xml:id"/> </xsl:apply-templates> </xsl:when> </xsl:choose> @@ -420,8 +434,9 @@ <xsl:choose> <xsl:when test="string(.) = ''"> <xsl:variable name="bib" select="document($bibliography.collection,.)"/> - <xsl:variable name="id" select="@id"/> - <xsl:variable name="entry" select="$bib/bibliography/*[@id=$id][1]"/> + <xsl:variable name="id" select="(@id|@xml:id)[1]"/> + <xsl:variable name="entry" select="$bib/bibliography/ + *[@id=$id or @xml:id=$id][1]"/> <xsl:choose> <xsl:when test="$entry"> <xsl:choose> @@ -433,7 +448,7 @@ <xsl:apply-templates select="$entry/*[1]"/> </xsl:when> <xsl:otherwise> - <xsl:value-of select="@id"/> + <xsl:value-of select="(@id|@xml:id)[1]"/> </xsl:otherwise> </xsl:choose> </xsl:when> @@ -444,7 +459,7 @@ <xsl:text> found in </xsl:text> <xsl:value-of select="$bibliography.collection"/> </xsl:message> - <xsl:value-of select="@id"/> + <xsl:value-of select="(@id|@xml:id)[1]"/> </xsl:otherwise> </xsl:choose> </xsl:when> @@ -458,7 +473,7 @@ <xsl:apply-templates select="*[1]"/> </xsl:when> <xsl:otherwise> - <xsl:value-of select="@id"/> + <xsl:value-of select="(@id|@xml:id)[1]"/> </xsl:otherwise> </xsl:choose> </xsl:otherwise> @@ -755,10 +770,6 @@ <xsl:param name="targets" select="key('id',$linkend)"/> <xsl:param name="target" select="$targets[1]"/> - <xsl:call-template name="check.id.unique"> - <xsl:with-param name="linkend" select="$linkend"/> - </xsl:call-template> - <xsl:variable name="xrefstyle"> <xsl:choose> <xsl:when test="@role and not(@xrefstyle) @@ -771,49 +782,60 @@ </xsl:choose> </xsl:variable> - <fo:basic-link internal-destination="{$linkend}" - xsl:use-attribute-sets="xref.properties"> - <xsl:choose> - <xsl:when test="count(child::node()) &gt; 0"> - <!-- If it has content, use it --> - <xsl:apply-templates/> - </xsl:when> - <xsl:otherwise> - <!-- else look for an endterm --> - <xsl:choose> - <xsl:when test="@endterm"> - <xsl:variable name="etargets" select="key('id',@endterm)"/> - <xsl:variable name="etarget" select="$etargets[1]"/> - <xsl:choose> - <xsl:when test="count($etarget) = 0"> - <xsl:message> - <xsl:value-of select="count($etargets)"/> - <xsl:text>Endterm points to nonexistent ID: </xsl:text> - <xsl:value-of select="@endterm"/> - </xsl:message> - <xsl:text>???</xsl:text> - </xsl:when> - <xsl:otherwise> - <xsl:apply-templates select="$etarget" mode="endterm"/> - </xsl:otherwise> - </xsl:choose> - </xsl:when> + <xsl:variable name="content"> + <fo:inline xsl:use-attribute-sets="xref.properties"> + <xsl:choose> + <xsl:when test="count(child::node()) &gt; 0"> + <!-- If it has content, use it --> + <xsl:apply-templates/> + </xsl:when> + <xsl:otherwise> + <!-- else look for an endterm --> + <xsl:choose> + <xsl:when test="@endterm"> + <xsl:variable name="etargets" select="key('id',@endterm)"/> + <xsl:variable name="etarget" select="$etargets[1]"/> + <xsl:choose> + <xsl:when test="count($etarget) = 0"> + <xsl:message> + <xsl:value-of select="count($etargets)"/> + <xsl:text>Endterm points to nonexistent ID: </xsl:text> + <xsl:value-of select="@endterm"/> + </xsl:message> + <xsl:text>???</xsl:text> + </xsl:when> + <xsl:otherwise> + <xsl:apply-templates select="$etarget" mode="endterm"/> + </xsl:otherwise> + </xsl:choose> + </xsl:when> + + <xsl:otherwise> + <xsl:message> + <xsl:text>Link element has no content and no Endterm. </xsl:text> + <xsl:text>Nothing to show in the link to </xsl:text> + <xsl:value-of select="$target"/> + </xsl:message> + <xsl:text>???</xsl:text> + </xsl:otherwise> + </xsl:choose> + </xsl:otherwise> + </xsl:choose> + </fo:inline> + </xsl:variable> - <xsl:otherwise> - <xsl:message> - <xsl:text>Link element has no content and no Endterm. </xsl:text> - <xsl:text>Nothing to show in the link to </xsl:text> - <xsl:value-of select="$target"/> - </xsl:message> - <xsl:text>???</xsl:text> - </xsl:otherwise> - </xsl:choose> - </xsl:otherwise> - </xsl:choose> - </fo:basic-link> + <xsl:call-template name="simple.xlink"> + <xsl:with-param name="node" select="."/> + <xsl:with-param name="linkend" select="$linkend"/> + <xsl:with-param name="content" select="$content"/> + </xsl:call-template> <!-- Add standard page reference? --> <xsl:choose> + <!-- page numbering on link only enabled for @linkend --> + <!-- There is no link element in DB5 with xlink:href --> + <xsl:when test="not($linkend)"> + </xsl:when> <!-- negative xrefstyle in instance turns it off --> <xsl:when test="starts-with(normalize-space($xrefstyle), 'select:') and contains($xrefstyle, 'nopage')"> @@ -1061,8 +1083,7 @@ </xsl:when> <xsl:when test="$axf.extensions != 0"> <fo:basic-link external-destination="{$href}" - xsl:use-attribute-sets="olink.properties" - show-destination="replace"> + xsl:use-attribute-sets="olink.properties"> <xsl:copy-of select="$hottext"/> </fo:basic-link> <xsl:copy-of select="$olink.page.citation"/> @@ -1070,8 +1091,7 @@ </xsl:when> <xsl:otherwise> <fo:basic-link external-destination="{$href}" - xsl:use-attribute-sets="olink.properties" - show-destination="replace"> + xsl:use-attribute-sets="olink.properties"> <xsl:copy-of select="$hottext"/> </fo:basic-link> <xsl:copy-of select="$olink.page.citation"/> @@ -1234,7 +1254,10 @@ </xsl:template> <xsl:template match="*" mode="pagenumber.markup"> - <fo:page-number-citation ref-id="{@id}"/> + <xsl:variable name="id"> + <xsl:call-template name="object.id"/> + </xsl:variable> + <fo:page-number-citation ref-id="{$id}"/> </xsl:template> <!-- ==================================================================== --> http://cvs.php.net/viewvc.cgi/phpdoc/docbook/docbook-xsl/fo/annotations.xsl?view=markup&rev=1.1 Index: phpdoc/docbook/docbook-xsl/fo/annotations.xsl +++ phpdoc/docbook/docbook-xsl/fo/annotations.xsl <?xml version='1.0'?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format" version='1.0'> <!-- ******************************************************************** $Id: annotations.xsl,v 1.1 2007/01/30 18:11:31 bjori Exp $ ******************************************************************** This file is part of the XSL DocBook Stylesheet distribution. See ../README or http://nwalsh.com/docbook/xsl/ for copyright and other information. ******************************************************************** --> <xsl:template match="annotation"/> </xsl:stylesheet> http://cvs.php.net/viewvc.cgi/phpdoc/docbook/docbook-xsl/fo/titlepage.templates.xml?view=markup&rev=1.1 Index: phpdoc/docbook/docbook-xsl/fo/titlepage.templates.xml +++ phpdoc/docbook/docbook-xsl/fo/titlepage.templates.xml <!DOCTYPE t:templates [ <!ENTITY hsize0 "10pt"> <!ENTITY hsize1 "12pt"> <!ENTITY hsize2 "14.4pt"> <!ENTITY hsize3 "17.28pt"> <!ENTITY hsize4 "20.736pt"> <!ENTITY hsize5 "24.8832pt"> <!ENTITY hsize0space "7.5pt"> <!-- 0.75 * hsize0 --> <!ENTITY hsize1space "9pt"> <!-- 0.75 * hsize1 --> <!ENTITY hsize2space "10.8pt"> <!-- 0.75 * hsize2 --> <!ENTITY hsize3space "12.96pt"> <!-- 0.75 * hsize3 --> <!ENTITY hsize4space "15.552pt"> <!-- 0.75 * hsize4 --> <!ENTITY hsize5space "18.6624pt"> <!-- 0.75 * hsize5 --> ]> <t:templates xmlns:t="http://nwalsh.com/docbook/xsl/template/1.0" xmlns:param="http://nwalsh.com/docbook/xsl/template/1.0/param" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <!-- ******************************************************************** $Id: titlepage.templates.xml,v 1.1 2007/01/30 18:11:31 bjori Exp $ ******************************************************************** This file is part of the DocBook XSL Stylesheet distribution. See ../README or http://docbook.sf.net/ for copyright and other information. ******************************************************************** --> <!-- ==================================================================== --> <t:titlepage t:element="article" t:wrapper="fo:block" font-family="{$title.fontset}"> <t:titlepage-content t:side="recto" start-indent="0pt" text-align="center"> <title t:named-template="component.title" param:node="ancestor-or-self::article[1]" keep-with-next.within-column="always" font-size="&hsize5;" font-weight="bold"/> <subtitle/> <corpauthor space-before="0.5em" font-size="&hsize2;"/> <authorgroup space-before="0.5em" font-size="&hsize2;"/> <author space-before="0.5em" font-size="&hsize2;"/> <othercredit space-before="0.5em"/> <releaseinfo space-before="0.5em"/> <copyright space-before="0.5em"/> <legalnotice text-align="start" margin-left="0.5in" margin-right="0.5in" font-family="{$body.fontset}"/> <pubdate space-before="0.5em"/> <revision space-before="0.5em"/> <revhistory space-before="0.5em"/> <abstract space-before="0.5em" text-align="start" margin-left="0.5in" margin-right="0.5in" font-family="{$body.fontset}"/> </t:titlepage-content> <t:titlepage-content t:side="verso"> </t:titlepage-content> <t:titlepage-separator> </t:titlepage-separator> <t:titlepage-before t:side="recto"> </t:titlepage-before> <t:titlepage-before t:side="verso"> </t:titlepage-before> </t:titlepage> <!-- ==================================================================== --> <t:titlepage t:element="set" t:wrapper="fo:block"> <t:titlepage-content t:side="recto"> <title t:named-template="division.title" param:node="ancestor-or-self::set[1]" text-align="center" font-size="&hsize5;" space-before="&hsize5space;" font-weight="bold" font-family="{$title.fontset}"/> <subtitle font-family="{$title.fontset}" text-align="center"/> <corpauthor/> <authorgroup/> <author/> <othercredit/> <releaseinfo/> <copyright/> <legalnotice/> <pubdate/> <revision/> <revhistory/> <abstract/> </t:titlepage-content> <t:titlepage-content t:side="verso"> </t:titlepage-content> <t:titlepage-separator> </t:titlepage-separator> <t:titlepage-before t:side="recto"> </t:titlepage-before> <t:titlepage-before t:side="verso"> </t:titlepage-before> </t:titlepage> <!-- ==================================================================== --> <t:titlepage t:element="book" t:wrapper="fo:block"> <t:titlepage-content t:side="recto"> <title t:named-template="division.title" param:node="ancestor-or-self::book[1]" text-align="center" font-size="&hsize5;" space-before="&hsize5space;" font-weight="bold" font-family="{$title.fontset}"/> <subtitle text-align="center" font-size="&hsize4;" space-before="&hsize4space;" font-family="{$title.fontset}"/> <corpauthor font-size="&hsize3;" keep-with-next.within-column="always" space-before="2in"/> <authorgroup space-before="2in"/> <author font-size="&hsize3;" space-before="&hsize2space;" keep-with-next.within-column="always"/> </t:titlepage-content> <t:titlepage-content t:side="verso"> <title t:named-template="book.verso.title" font-size="&hsize2;" font-weight="bold" font-family="{$title.fontset}"/> <corpauthor/> <authorgroup t:named-template="verso.authorgroup"/> <author/> <othercredit/> <releaseinfo space-before="0.5em"/> <pubdate space-before="1em"/> <copyright/> <abstract/> <legalnotice font-size="8pt"/> </t:titlepage-content> <t:titlepage-separator> <fo:block break-after="page"/> </t:titlepage-separator> <t:titlepage-before t:side="recto"> </t:titlepage-before> <t:titlepage-before t:side="verso"> <fo:block break-after="page"/> </t:titlepage-before> </t:titlepage> <!-- ==================================================================== --> <t:titlepage t:element="part" t:wrapper="fo:block"> <t:titlepage-content t:side="recto"> <title t:named-template="division.title" param:node="ancestor-or-self::part[1]" text-align="center" font-size="&hsize5;" space-before="&hsize5space;" font-weight="bold" font-family="{$title.fontset}"/> <subtitle text-align="center" font-size="&hsize4;" space-before="&hsize4space;" font-weight='bold' font-style='italic' font-family="{$title.fontset}"/> </t:titlepage-content> <t:titlepage-content t:side="verso"> </t:titlepage-content> <t:titlepage-separator> </t:titlepage-separator> <t:titlepage-before t:side="recto"> </t:titlepage-before> <t:titlepage-before t:side="verso"> </t:titlepage-before> </t:titlepage> <t:titlepage t:element="partintro" t:wrapper="fo:block"> <t:titlepage-content t:side="recto"> <title text-align="center" font-size="&hsize5;" font-weight="bold" space-before="1em" font-family="{$title.fontset}"/> <subtitle text-align="center" font-size="&hsize2;" font-weight="bold" font-style="italic" font-family="{$title.fontset}"/> <corpauthor/> <authorgroup/> <author/> <othercredit/> <releaseinfo/> <copyright/> <legalnotice/> <pubdate/> <revision/> <revhistory/> <abstract/> </t:titlepage-content> <t:titlepage-content t:side="verso"> </t:titlepage-content> <t:titlepage-separator> </t:titlepage-separator> <t:titlepage-before t:side="recto"> </t:titlepage-before> <t:titlepage-before t:side="verso"> </t:titlepage-before> </t:titlepage> <!-- ==================================================================== --> <t:titlepage t:element="reference" t:wrapper="fo:block"> <t:titlepage-content t:side="recto"> <title t:named-template="division.title" param:node="ancestor-or-self::reference[1]" text-align="center" font-size="&hsize5;" space-before="&hsize5space;" font-weight="bold" font-family="{$title.fontset}"/> <subtitle font-family="{$title.fontset}" text-align="center"/> <corpauthor/> <authorgroup/> <author/> <othercredit/> <releaseinfo/> <copyright/> <legalnotice/> <pubdate/> <revision/> <revhistory/> <abstract/> </t:titlepage-content> <t:titlepage-content t:side="verso"> </t:titlepage-content> <t:titlepage-separator> </t:titlepage-separator> <t:titlepage-before t:side="recto"> </t:titlepage-before> <t:titlepage-before t:side="verso"> </t:titlepage-before> </t:titlepage> <!-- ==================================================================== --> <t:titlepage t:element="refsynopsisdiv" t:wrapper="fo:block"> <t:titlepage-content t:side="recto"> <title font-family="{$title.fontset}"/> </t:titlepage-content> <t:titlepage-content t:side="verso"> </t:titlepage-content> <t:titlepage-separator> </t:titlepage-separator> <t:titlepage-before t:side="recto"> </t:titlepage-before> <t:titlepage-before t:side="verso"> </t:titlepage-before> </t:titlepage> <!-- ==================================================================== --> <t:titlepage t:element="refsection" t:wrapper="fo:block"> <t:titlepage-content t:side="recto"> <title font-family="{$title.fontset}"/> </t:titlepage-content> <t:titlepage-content t:side="verso"> </t:titlepage-content> <t:titlepage-separator> </t:titlepage-separator> <t:titlepage-before t:side="recto"> </t:titlepage-before> <t:titlepage-before t:side="verso"> </t:titlepage-before> </t:titlepage> <!-- ==================================================================== --> <t:titlepage t:element="refsect1" t:wrapper="fo:block"> <t:titlepage-content t:side="recto"> <title font-family="{$title.fontset}"/> </t:titlepage-content> <t:titlepage-content t:side="verso"> </t:titlepage-content> <t:titlepage-separator> </t:titlepage-separator> <t:titlepage-before t:side="recto"> </t:titlepage-before> <t:titlepage-before t:side="verso"> </t:titlepage-before> </t:titlepage> <!-- ==================================================================== --> <t:titlepage t:element="refsect2" t:wrapper="fo:block"> <t:titlepage-content t:side="recto"> <title font-family="{$title.fontset}"/> </t:titlepage-content> <t:titlepage-content t:side="verso"> </t:titlepage-content> <t:titlepage-separator> </t:titlepage-separator> <t:titlepage-before t:side="recto"> </t:titlepage-before> <t:titlepage-before t:side="verso"> </t:titlepage-before> </t:titlepage> <!-- ==================================================================== --> <t:titlepage t:element="refsect3" t:wrapper="fo:block"> <t:titlepage-content t:side="recto"> <title font-family="{$title.fontset}"/> </t:titlepage-content> <t:titlepage-content t:side="verso"> </t:titlepage-content> <t:titlepage-separator> </t:titlepage-separator> <t:titlepage-before t:side="recto"> </t:titlepage-before> <t:titlepage-before t:side="verso"> </t:titlepage-before> </t:titlepage> <!-- ==================================================================== --> <t:titlepage t:element="dedication" t:wrapper="fo:block"> <t:titlepage-content t:side="recto"> <title t:force="1" t:named-template="component.title" param:node="ancestor-or-self::dedication[1]" margin-left="{$title.margin.left}" font-size="&hsize5;" font-family="{$title.fontset}" font-weight="bold"/> <subtitle font-family="{$title.fontset}"/> </t:titlepage-content> <t:titlepage-content t:side="verso"> </t:titlepage-content> <t:titlepage-separator> </t:titlepage-separator> <t:titlepage-before t:side="recto"> </t:titlepage-before> <t:titlepage-before t:side="verso"> </t:titlepage-before> </t:titlepage> <!-- ==================================================================== --> <t:titlepage t:element="preface" t:wrapper="fo:block"> <t:titlepage-content t:side="recto"> <title t:force="1" t:named-template="component.title" param:node="ancestor-or-self::preface[1]" margin-left="{$title.margin.left}" font-size="&hsize5;" font-family="{$title.fontset}" font-weight="bold"/> <subtitle font-family="{$title.fontset}"/> <corpauthor/> <authorgroup/> <author/> <othercredit/> <releaseinfo/> <copyright/> <legalnotice/> <pubdate/> <revision/> <revhistory/> <abstract/> </t:titlepage-content> <t:titlepage-content t:side="verso"> </t:titlepage-content> <t:titlepage-separator> </t:titlepage-separator> <t:titlepage-before t:side="recto"> </t:titlepage-before> <t:titlepage-before t:side="verso"> </t:titlepage-before> </t:titlepage> <!-- ==================================================================== --> <t:titlepage t:element="chapter" t:wrapper="fo:block" font-family="{$title.fontset}"> <t:titlepage-content t:side="recto" margin-left="{$title.margin.left}"> <title t:named-template="component.title" param:node="ancestor-or-self::chapter[1]" font-size="&hsize5;" font-weight="bold"/> <subtitle space-before="0.5em" font-style="italic" font-size="&hsize2;" font-weight="bold"/> <corpauthor space-before="0.5em" space-after="0.5em" font-size="&hsize2;"/> <authorgroup space-before="0.5em" space-after="0.5em" font-size="&hsize2;"/> <author space-before="0.5em" space-after="0.5em" font-size="&hsize2;"/> <othercredit/> <releaseinfo/> <copyright/> <legalnotice/> <pubdate/> <revision/> <revhistory/> <abstract/> </t:titlepage-content> <t:titlepage-content t:side="verso"> </t:titlepage-content> <t:titlepage-separator> </t:titlepage-separator> <t:titlepage-before t:side="recto"> </t:titlepage-before> <t:titlepage-before t:side="verso"> </t:titlepage-before> </t:titlepage> <!-- ==================================================================== --> <t:titlepage t:element="appendix" t:wrapper="fo:block"> <t:titlepage-content t:side="recto"> <title t:named-template="component.title" param:node="ancestor-or-self::appendix[1]" margin-left="{$title.margin.left}" font-size="&hsize5;" font-weight="bold" font-family="{$title.fontset}"/> <subtitle font-family="{$title.fontset}"/> <corpauthor/> <authorgroup/> <author/> <othercredit/> <releaseinfo/> <copyright/> <legalnotice/> <pubdate/> <revision/> <revhistory/> <abstract/> </t:titlepage-content> <t:titlepage-content t:side="verso"> </t:titlepage-content> <t:titlepage-separator> </t:titlepage-separator> <t:titlepage-before t:side="recto"> </t:titlepage-before> <t:titlepage-before t:side="verso"> </t:titlepage-before> </t:titlepage> <!-- ==================================================================== --> <t:titlepage t:element="section" t:wrapper="fo:block"> <t:titlepage-content t:side="recto"> <title margin-left="{$title.margin.left}" font-family="{$title.fontset}"/> <subtitle font-family="{$title.fontset}"/> <corpauthor/> <authorgroup/> <author/> <othercredit/> <releaseinfo/> <copyright/> <legalnotice/> <pubdate/> <revision/> <revhistory/> <abstract/> </t:titlepage-content> <t:titlepage-content t:side="verso"> </t:titlepage-content> <t:titlepage-separator> </t:titlepage-separator> <t:titlepage-before t:side="recto"> </t:titlepage-before> <t:titlepage-before t:side="verso"> </t:titlepage-before> </t:titlepage> <t:titlepage t:element="sect1" t:wrapper="fo:block"> <t:titlepage-content t:side="recto"> <title margin-left="{$title.margin.left}" font-family="{$title.fontset}"/> <subtitle font-family="{$title.fontset}"/> <corpauthor/> <authorgroup/> <author/> <othercredit/> <releaseinfo/> <copyright/> <legalnotice/> <pubdate/> <revision/> <revhistory/> <abstract/> </t:titlepage-content> <t:titlepage-content t:side="verso"> </t:titlepage-content> <t:titlepage-separator> </t:titlepage-separator> <t:titlepage-before t:side="recto"> </t:titlepage-before> <t:titlepage-before t:side="verso"> </t:titlepage-before> </t:titlepage> <t:titlepage t:element="sect2" t:wrapper="fo:block"> <t:titlepage-content t:side="recto"> <title margin-left="{$title.margin.left}" font-family="{$title.fontset}"/> <subtitle font-family="{$title.fontset}"/> <corpauthor/> <authorgroup/> <author/> <othercredit/> <releaseinfo/> <copyright/> <legalnotice/> <pubdate/> <revision/> <revhistory/> <abstract/> </t:titlepage-content> <t:titlepage-content t:side="verso"> </t:titlepage-content> <t:titlepage-separator> </t:titlepage-separator> <t:titlepage-before t:side="recto"> </t:titlepage-before> <t:titlepage-before t:side="verso"> </t:titlepage-before> </t:titlepage> <t:titlepage t:element="sect3" t:wrapper="fo:block"> <t:titlepage-content t:side="recto"> <title margin-left="{$title.margin.left}" font-family="{$title.fontset}"/> <subtitle font-family="{$title.fontset}"/> <corpauthor/> <authorgroup/> <author/> <othercredit/> <releaseinfo/> <copyright/> <legalnotice/> <pubdate/> <revision/> <revhistory/> <abstract/> </t:titlepage-content> <t:titlepage-content t:side="verso"> </t:titlepage-content> <t:titlepage-separator> </t:titlepage-separator> <t:titlepage-before t:side="recto"> </t:titlepage-before> <t:titlepage-before t:side="verso"> </t:titlepage-before> </t:titlepage> <t:titlepage t:element="sect4" t:wrapper="fo:block"> <t:titlepage-content t:side="recto"> <title margin-left="{$title.margin.left}" font-family="{$title.fontset}"/> <subtitle font-family="{$title.fontset}"/> <corpauthor/> <authorgroup/> <author/> <othercredit/> <releaseinfo/> <copyright/> <legalnotice/> <pubdate/> <revision/> <revhistory/> <abstract/> </t:titlepage-content> <t:titlepage-content t:side="verso"> </t:titlepage-content> <t:titlepage-separator> </t:titlepage-separator> <t:titlepage-before t:side="recto"> </t:titlepage-before> <t:titlepage-before t:side="verso"> </t:titlepage-before> </t:titlepage> <t:titlepage t:element="sect5" t:wrapper="fo:block"> <t:titlepage-content t:side="recto"> <title margin-left="{$title.margin.left}" font-family="{$title.fontset}"/> <subtitle font-family="{$title.fontset}"/> <corpauthor/> <authorgroup/> <author/> <othercredit/> <releaseinfo/> <copyright/> <legalnotice/> <pubdate/> <revision/> <revhistory/> <abstract/> </t:titlepage-content> <t:titlepage-content t:side="verso"> </t:titlepage-content> <t:titlepage-separator> </t:titlepage-separator> <t:titlepage-before t:side="recto"> </t:titlepage-before> <t:titlepage-before t:side="verso"> </t:titlepage-before> </t:titlepage> <t:titlepage t:element="simplesect" t:wrapper="fo:block"> <t:titlepage-content t:side="recto"> <title margin-left="{$title.margin.left}" font-family="{$title.fontset}"/> <subtitle font-family="{$title.fontset}"/> <corpauthor/> <authorgroup/> <author/> <othercredit/> <releaseinfo/> <copyright/> <legalnotice/> <pubdate/> <revision/> <revhistory/> <abstract/> </t:titlepage-content> <t:titlepage-content t:side="verso"> </t:titlepage-content> <t:titlepage-separator> </t:titlepage-separator> <t:titlepage-before t:side="recto"> </t:titlepage-before> <t:titlepage-before t:side="verso"> </t:titlepage-before> </t:titlepage> <!-- ==================================================================== --> <t:titlepage t:element="bibliography" t:wrapper="fo:block"> <t:titlepage-content t:side="recto"> <title t:force="1" t:named-template="component.title" param:node="ancestor-or-self::bibliography[1]" margin-left="{$title.margin.left}" font-size="&hsize5;" font-family="{$title.fontset}" font-weight="bold"/> <subtitle font-family="{$title.fontset}"/> </t:titlepage-content> <t:titlepage-content t:side="verso"> </t:titlepage-content> <t:titlepage-separator> </t:titlepage-separator> <t:titlepage-before t:side="recto"> </t:titlepage-before> <t:titlepage-before t:side="verso"> </t:titlepage-before> </t:titlepage> <!-- ==================================================================== --> <t:titlepage t:element="bibliodiv" t:wrapper="fo:block"> <t:titlepage-content t:side="recto"> <title t:named-template="component.title" param:node="ancestor-or-self::bibliodiv[1]" margin-left="{$title.margin.left}" font-size="&hsize4;" font-family="{$title.fontset}" font-weight="bold"/> <subtitle font-family="{$title.fontset}"/> </t:titlepage-content> <t:titlepage-content t:side="verso"> </t:titlepage-content> <t:titlepage-separator> </t:titlepage-separator> <t:titlepage-before t:side="recto"> </t:titlepage-before> <t:titlepage-before t:side="verso"> </t:titlepage-before> </t:titlepage> <!-- ==================================================================== --> <t:titlepage t:element="glossary" t:wrapper="fo:block"> <t:titlepage-content t:side="recto"> <title t:force="1" t:named-template="component.title" param:node="ancestor-or-self::glossary[1]" margin-left="{$title.margin.left}" font-size="&hsize5;" font-family="{$title.fontset}" font-weight="bold"/> <subtitle font-family="{$title.fontset}"/> </t:titlepage-content> <t:titlepage-content t:side="verso"> </t:titlepage-content> <t:titlepage-separator> </t:titlepage-separator> <t:titlepage-before t:side="recto"> </t:titlepage-before> <t:titlepage-before t:side="verso"> </t:titlepage-before> </t:titlepage> <!-- ==================================================================== --> <t:titlepage t:element="glossdiv" t:wrapper="fo:block"> <t:titlepage-content t:side="recto"> <title t:named-template="component.title" param:node="ancestor-or-self::glossdiv[1]" margin-left="{$title.margin.left}" font-size="&hsize4;" font-family="{$title.fontset}" font-weight="bold"/> <subtitle font-family="{$title.fontset}"/> </t:titlepage-content> <t:titlepage-content t:side="verso"> </t:titlepage-content> <t:titlepage-separator> </t:titlepage-separator> <t:titlepage-before t:side="recto"> </t:titlepage-before> <t:titlepage-before t:side="verso"> </t:titlepage-before> </t:titlepage> <!-- ==================================================================== --> <t:titlepage t:element="index" t:wrapper="fo:block"> <t:titlepage-content t:side="recto"> <title t:force="1" t:named-template="component.title" param:node="ancestor-or-self::index[1]" param:pagewide="1" margin-left="0pt" font-size="&hsize5;" font-family="{$title.fontset}" font-weight="bold"/> <subtitle font-family="{$title.fontset}"/> </t:titlepage-content> <t:titlepage-content t:side="verso"> </t:titlepage-content> <t:titlepage-separator> </t:titlepage-separator> <t:titlepage-before t:side="recto"> </t:titlepage-before> <t:titlepage-before t:side="verso"> </t:titlepage-before> </t:titlepage> <!-- ==================================================================== --> <!-- The indexdiv.title template is used so that manual and --> <!-- automatically generated indexdiv titles get the same --> <!-- formatting. --> <t:titlepage t:element="indexdiv" t:wrapper="fo:block"> <t:titlepage-content t:side="recto"> <title t:force="1" t:named-template="indexdiv.title" param:title="title"/> <subtitle font-family="{$title.fontset}"/> </t:titlepage-content> <t:titlepage-content t:side="verso"> </t:titlepage-content> <t:titlepage-separator> </t:titlepage-separator> <t:titlepage-before t:side="recto"> </t:titlepage-before> <t:titlepage-before t:side="verso"> </t:titlepage-before> </t:titlepage> <!-- ==================================================================== --> <t:titlepage t:element="setindex" t:wrapper="fo:block"> <t:titlepage-content t:side="recto"> <title t:force="1" t:named-template="component.title" param:node="ancestor-or-self::setindex[1]" param:pagewide="1" margin-left="0pt" font-size="&hsize5;" font-family="{$title.fontset}" font-weight="bold"/> <subtitle font-family="{$title.fontset}"/> </t:titlepage-content> <t:titlepage-content t:side="verso"> </t:titlepage-content> <t:titlepage-separator> </t:titlepage-separator> <t:titlepage-before t:side="recto"> </t:titlepage-before> <t:titlepage-before t:side="verso"> </t:titlepage-before> </t:titlepage> <!-- ==================================================================== --> <t:titlepage t:element="colophon" t:wrapper="fo:block"> <t:titlepage-content t:side="recto"> <title t:force="1" t:named-template="component.title" param:node="ancestor-or-self::colophon[1]" margin-left="{$title.margin.left}" font-size="&hsize5;" font-family="{$title.fontset}" font-weight="bold"/> <subtitle font-family="{$title.fontset}"/> </t:titlepage-content> <t:titlepage-content t:side="verso"> </t:titlepage-content> <t:titlepage-separator> </t:titlepage-separator> <t:titlepage-before t:side="recto"> </t:titlepage-before> <t:titlepage-before t:side="verso"> </t:titlepage-before> </t:titlepage> <!-- ==================================================================== --> <t:titlepage t:element="sidebar" t:wrapper="fo:block"> <t:titlepage-content t:side="recto"> <title font-family="{$title.fontset}" font-weight="bold"/> <subtitle font-family="{$title.fontset}"/> </t:titlepage-content> <t:titlepage-content t:side="verso"> </t:titlepage-content> <t:titlepage-separator> </t:titlepage-separator> <t:titlepage-before t:side="recto"> </t:titlepage-before> <t:titlepage-before t:side="verso"> </t:titlepage-before> </t:titlepage> <!-- ==================================================================== --> <t:titlepage t:element="qandaset" t:wrapper="fo:block" font-family="{$title.fontset}"> <t:titlepage-content t:side="recto" start-indent="0pt" text-align="center"> <title t:named-template="component.title" param:node="ancestor-or-self::qandaset[1]" keep-with-next.within-column="always" font-size="&hsize5;" font-weight="bold"/> <subtitle/> <corpauthor space-before="0.5em" font-size="&hsize2;"/> <authorgroup space-before="0.5em" font-size="&hsize2;"/> <author space-before="0.5em" font-size="&hsize2;"/> <othercredit space-before="0.5em"/> <releaseinfo space-before="0.5em"/> <copyright space-before="0.5em"/> <legalnotice text-align="start" margin-left="0.5in" margin-right="0.5in" font-family="{$body.fontset}"/> <pubdate space-before="0.5em"/> <revision space-before="0.5em"/> <revhistory space-before="0.5em"/> <abstract space-before="0.5em" text-align="start" margin-left="0.5in" margin-right="0.5in" font-family="{$body.fontset}"/> </t:titlepage-content> <t:titlepage-content t:side="verso"> </t:titlepage-content> <t:titlepage-separator> </t:titlepage-separator> <t:titlepage-before t:side="recto"> </t:titlepage-before> <t:titlepage-before t:side="verso"> </t:titlepage-before> </t:titlepage> <!-- ==================================================================== --> <t:titlepage t:element="table.of.contents" t:wrapper="fo:block"> <t:titlepage-content t:side="recto"> <title t:force="1" t:named-template="gentext" param:key="'TableofContents'" space-before.minimum="1em" space-before.optimum="1.5em" space-before.maximum="2em" space-after="0.5em" margin-left="{$title.margin.left}" start-indent="0pt" font-size="&hsize3;" font-weight="bold" font-family="{$title.fontset}"/> </t:titlepage-content> <t:titlepage-content t:side="verso"> </t:titlepage-content> <t:titlepage-separator> </t:titlepage-separator> <t:titlepage-before t:side="recto"> </t:titlepage-before> <t:titlepage-before t:side="verso"> </t:titlepage-before> </t:titlepage> <t:titlepage t:element="list.of.tables" t:wrapper="fo:block"> <t:titlepage-content t:side="recto"> <title t:force="1" t:named-template="gentext" param:key="'ListofTables'" space-before.minimum="1em" space-before.optimum="1.5em" space-before.maximum="2em" space-after="0.5em" margin-left="{$title.margin.left}" start-indent="0pt" font-size="&hsize3;" font-weight="bold" font-family="{$title.fontset}"/> </t:titlepage-content> <t:titlepage-content t:side="verso"> </t:titlepage-content> <t:titlepage-separator> </t:titlepage-separator> <t:titlepage-before t:side="recto"> </t:titlepage-before> <t:titlepage-before t:side="verso"> </t:titlepage-before> </t:titlepage> <t:titlepage t:element="list.of.figures" t:wrapper="fo:block"> <t:titlepage-content t:side="recto"> <title t:force="1" t:named-template="gentext" param:key="'ListofFigures'" space-before.minimum="1em" space-before.optimum="1.5em" space-before.maximum="2em" space-after="0.5em" margin-left="{$title.margin.left}" start-indent="0pt" font-size="&hsize3;" font-weight="bold" font-family="{$title.fontset}"/> </t:titlepage-content> <t:titlepage-content t:side="verso"> </t:titlepage-content> <t:titlepage-separator> </t:titlepage-separator> <t:titlepage-before t:side="recto"> </t:titlepage-before> <t:titlepage-before t:side="verso"> </t:titlepage-before> </t:titlepage> <t:titlepage t:element="list.of.examples" t:wrapper="fo:block"> <t:titlepage-content t:side="recto"> <title t:force="1" t:named-template="gentext" param:key="'ListofExamples'" space-before.minimum="1em" space-before.optimum="1.5em" space-before.maximum="2em" space-after="0.5em" margin-left="{$title.margin.left}" start-indent="0pt" font-size="&hsize3;" font-weight="bold" font-family="{$title.fontset}"/> </t:titlepage-content> <t:titlepage-content t:side="verso"> </t:titlepage-content> <t:titlepage-separator> </t:titlepage-separator> <t:titlepage-before t:side="recto"> </t:titlepage-before> <t:titlepage-before t:side="verso"> </t:titlepage-before> </t:titlepage> <t:titlepage t:element="list.of.equations" t:wrapper="fo:block"> <t:titlepage-content t:side="recto"> <title t:force="1" t:named-template="gentext" param:key="'ListofEquations'" space-before.minimum="1em" space-before.optimum="1.5em" space-before.maximum="2em" space-after="0.5em" margin-left="{$title.margin.left}" start-indent="0pt" font-size="&hsize3;" font-weight="bold" font-family="{$title.fontset}"/> </t:titlepage-content> <t:titlepage-content t:side="verso"> </t:titlepage-content> <t:titlepage-separator> </t:titlepage-separator> <t:titlepage-before t:side="recto"> </t:titlepage-before> <t:titlepage-before t:side="verso"> </t:titlepage-before> </t:titlepage> <t:titlepage t:element="list.of.procedures" t:wrapper="fo:block"> <t:titlepage-content t:side="recto"> <title t:force="1" t:named-template="gentext" param:key="'ListofProcedures'" space-before.minimum="1em" space-before.optimum="1.5em" space-before.maximum="2em" space-after="0.5em" margin-left="{$title.margin.left}" start-indent="0pt" font-size="&hsize3;" font-weight="bold" font-family="{$title.fontset}"/> </t:titlepage-content> <t:titlepage-content t:side="verso"> </t:titlepage-content> <t:titlepage-separator> </t:titlepage-separator> <t:titlepage-before t:side="recto"> </t:titlepage-before> <t:titlepage-before t:side="verso"> </t:titlepage-before> </t:titlepage> <t:titlepage t:element="list.of.unknowns" t:wrapper="fo:block"> <t:titlepage-content t:side="recto"> <title t:force="1" t:named-template="gentext" param:key="'ListofUnknown'" space-before.minimum="1em" space-before.optimum="1.5em" space-before.maximum="2em" space-after="0.5em" margin-left="{$title.margin.left}" start-indent="0pt" font-size="&hsize3;" font-weight="bold" font-family="{$title.fontset}"/> </t:titlepage-content> <t:titlepage-content t:side="verso"> </t:titlepage-content> <t:titlepage-separator> </t:titlepage-separator> <t:titlepage-before t:side="recto"> </t:titlepage-before> <t:titlepage-before t:side="verso"> </t:titlepage-before> </t:titlepage> <!-- ==================================================================== --> </t:templates>
« previous php.doc (#969375101) next »