From: Norman W. <nw...@us...> - 2001-12-20 21:29:05
|
Update of /cvsroot/docbook/defguide/en/stylesheets In directory usw-pr-cvs1:/tmp/cvs-serv3326 Modified Files: tdg.xsl Log Message: Bugs in linking and table formatting fixed Index: tdg.xsl =================================================================== RCS file: /cvsroot/docbook/defguide/en/stylesheets/tdg.xsl,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** tdg.xsl 2001/12/20 13:48:31 1.1 --- tdg.xsl 2001/12/20 21:29:02 1.2 *************** *** 15,18 **** --- 15,20 ---- <xsl:param name="toc.section.depth" select="1"/> <xsl:param name="callout.graphics.path" select="'figures/callouts/'"/> + <xsl:param name="refentry.generate.name" select="0"/> + <xsl:param name="refentry.generate.title" select="0"/> <xsl:template match="processing-instruction('lb')"> *************** *** 230,238 **** <table border="1" width="100%" summary="Attributes"> <tr> ! <xsl:apply-templates/> </tr> <xsl:for-each select="$attrrows"> <tr> ! <xsl:apply-templates/> </tr> </xsl:for-each> --- 232,252 ---- <table border="1" width="100%" summary="Attributes"> <tr> ! <xsl:apply-templates select="entry[1]"> ! <xsl:with-param name="spans"> ! <xsl:call-template name="blank.spans"> ! <xsl:with-param name="cols" select="3"/> ! </xsl:call-template> ! </xsl:with-param> ! </xsl:apply-templates> </tr> <xsl:for-each select="$attrrows"> <tr> ! <xsl:apply-templates select="entry[1]"> ! <xsl:with-param name="spans"> ! <xsl:call-template name="blank.spans"> ! <xsl:with-param name="cols" select="3"/> ! </xsl:call-template> ! </xsl:with-param> ! </xsl:apply-templates> </tr> </xsl:for-each> *************** *** 265,273 **** <table border="1" width="100%" summary="Attributes"> <tr> ! <xsl:apply-templates/> </tr> <xsl:for-each select="$attrrows"> <tr> ! <xsl:apply-templates/> </tr> </xsl:for-each> --- 279,299 ---- <table border="1" width="100%" summary="Attributes"> <tr> ! <xsl:apply-templates select="entry[1]"> ! <xsl:with-param name="spans"> ! <xsl:call-template name="blank.spans"> ! <xsl:with-param name="cols" select="3"/> ! </xsl:call-template> ! </xsl:with-param> ! </xsl:apply-templates> </tr> <xsl:for-each select="$attrrows"> <tr> ! <xsl:apply-templates select="entry[1]"> ! <xsl:with-param name="spans"> ! <xsl:call-template name="blank.spans"> ! <xsl:with-param name="cols" select="3"/> ! </xsl:call-template> ! </xsl:with-param> ! </xsl:apply-templates> </tr> </xsl:for-each> *************** *** 294,302 **** <table border="0" width="100%" summary="Attributes"> <tr> ! <xsl:apply-templates/> </tr> <xsl:for-each select="$attrrows"> <tr> ! <xsl:apply-templates/> </tr> </xsl:for-each> --- 320,340 ---- <table border="0" width="100%" summary="Attributes"> <tr> ! <xsl:apply-templates select="entry[1]"> ! <xsl:with-param name="spans"> ! <xsl:call-template name="blank.spans"> ! <xsl:with-param name="cols" select="3"/> ! </xsl:call-template> ! </xsl:with-param> ! </xsl:apply-templates> </tr> <xsl:for-each select="$attrrows"> <tr> ! <xsl:apply-templates select="entry[1]"> ! <xsl:with-param name="spans"> ! <xsl:call-template name="blank.spans"> ! <xsl:with-param name="cols" select="3"/> ! </xsl:call-template> ! </xsl:with-param> ! </xsl:apply-templates> </tr> </xsl:for-each> *************** *** 310,318 **** <table border="0" width="100%" summary="Attributes"> <tr> ! <xsl:apply-templates/> </tr> <xsl:for-each select="$attrrows"> <tr> ! <xsl:apply-templates/> </tr> </xsl:for-each> --- 348,368 ---- <table border="0" width="100%" summary="Attributes"> <tr> ! <xsl:apply-templates select="entry[1]"> ! <xsl:with-param name="spans"> ! <xsl:call-template name="blank.spans"> ! <xsl:with-param name="cols" select="3"/> ! </xsl:call-template> ! </xsl:with-param> ! </xsl:apply-templates> </tr> <xsl:for-each select="$attrrows"> <tr> ! <xsl:apply-templates select="entry[1]"> ! <xsl:with-param name="spans"> ! <xsl:call-template name="blank.spans"> ! <xsl:with-param name="cols" select="3"/> ! </xsl:call-template> ! </xsl:with-param> ! </xsl:apply-templates> </tr> </xsl:for-each> *************** *** 326,334 **** <table border="0" width="100%" summary="Attributes"> <tr> ! <xsl:apply-templates/> </tr> <xsl:for-each select="$attrrows"> <tr> ! <xsl:apply-templates/> </tr> </xsl:for-each> --- 376,396 ---- <table border="0" width="100%" summary="Attributes"> <tr> ! <xsl:apply-templates select="entry[1]"> ! <xsl:with-param name="spans"> ! <xsl:call-template name="blank.spans"> ! <xsl:with-param name="cols" select="3"/> ! </xsl:call-template> ! </xsl:with-param> ! </xsl:apply-templates> </tr> <xsl:for-each select="$attrrows"> <tr> ! <xsl:apply-templates select="entry[1]"> ! <xsl:with-param name="spans"> ! <xsl:call-template name="blank.spans"> ! <xsl:with-param name="cols" select="3"/> ! </xsl:call-template> ! </xsl:with-param> ! </xsl:apply-templates> </tr> </xsl:for-each> *************** *** 382,387 **** <!-- rcsdate = "$Date$" --> <!-- timeString = "dow mon dd hh:mm:ss TZN yyyy" --> ! <!--xsl:variable name="timeString" select="cvs:localTime($date/text())"/--> ! <xsl:variable name="timeString" select="FOO"/> <xsl:text>Updated: </xsl:text> <xsl:value-of select="substring($timeString, 1, 3)"/> --- 444,448 ---- <!-- rcsdate = "$Date$" --> <!-- timeString = "dow mon dd hh:mm:ss TZN yyyy" --> ! <xsl:variable name="timeString" select="cvs:localTime($date/text())"/> <xsl:text>Updated: </xsl:text> <xsl:value-of select="substring($timeString, 1, 3)"/> *************** *** 454,458 **** <xsl:with-param name="large" select="'1'"/> </xsl:call-template> ! <xsl:if test="annotate.toc != 0"> <xsl:text> - </xsl:text> <xsl:value-of select="refnamediv/refpurpose"/> --- 515,519 ---- <xsl:with-param name="large" select="'1'"/> </xsl:call-template> ! <xsl:if test="$annotate.toc != 0"> <xsl:text> - </xsl:text> <xsl:value-of select="refnamediv/refpurpose"/> *************** *** 475,480 **** <xsl:choose> <xsl:when test="$class = 'element' ! and count(id(concat('dbre.elem.',.))) > 0"> ! <xsl:variable name="targets" select="id(concat('dbre.elem.',.))"/> <xsl:variable name="target" select="$targets[1]"/> <a> --- 536,541 ---- <xsl:choose> <xsl:when test="$class = 'element' ! and count(id(concat(.,'.element'))) > 0"> ! <xsl:variable name="targets" select="id(concat(.,'.element'))"/> <xsl:variable name="target" select="$targets[1]"/> <a> *************** *** 488,493 **** </xsl:when> <xsl:when test="$class = 'paramentity' ! and count(id(concat('dbre.pent.',.))) > 0"> ! <xsl:variable name="targets" select="id(concat('dbre.pent.',.))"/> <xsl:variable name="target" select="$targets[1]"/> <a> --- 549,554 ---- </xsl:when> <xsl:when test="$class = 'paramentity' ! and count(id(concat(.,'.parament'))) > 0"> ! <xsl:variable name="targets" select="id(concat(.,'.parament'))"/> <xsl:variable name="target" select="$targets[1]"/> <a> |