|
1341 | 1341 |
|
1342 | 1342 |
|
1343 | 1343 |
|
| 1344 | + |
1344 | 1345 |
|
1345 | 1346 | <xsl:attribute name="margin-left">12.5mm</xsl:attribute>
|
1346 | 1347 | <xsl:attribute name="margin-right">14mm</xsl:attribute>
|
|
1487 | 1488 | </xsl:template><xsl:template match="*[local-name()='td']//text() | *[local-name()='th']//text() | *[local-name()='dt']//text() | *[local-name()='dd']//text()" priority="1">
|
1488 | 1489 | <!-- <xsl:call-template name="add-zero-spaces"/> -->
|
1489 | 1490 | <xsl:call-template name="add-zero-spaces-java"/>
|
1490 |
| - </xsl:template><xsl:template match="*[local-name()='table']"> |
| 1491 | + </xsl:template><xsl:template match="*[local-name()='table']" name="table"> |
1491 | 1492 |
|
1492 | 1493 | <xsl:variable name="simple-table">
|
1493 | 1494 | <xsl:call-template name="getSimpleTable"/>
|
|
2740 | 2741 |
|
2741 | 2742 |
|
2742 | 2743 |
|
| 2744 | + |
2743 | 2745 |
|
2744 | 2746 | </xsl:variable>
|
2745 | 2747 | <xsl:variable name="font-size" select="normalize-space($_font-size)"/>
|
|
3337 | 3339 | </xsl:if> -->
|
3338 | 3340 | </fo:inline>
|
3339 | 3341 | </xsl:if>
|
3340 |
| - </xsl:template><xsl:template match="*[local-name() = 'figure']"> |
| 3342 | + </xsl:template><xsl:template match="*[local-name() = 'figure']" name="figure"> |
3341 | 3343 | <fo:block-container id="{@id}">
|
3342 | 3344 |
|
3343 | 3345 | <fo:block>
|
|
3544 | 3546 | <!-- <xsl:text> </xsl:text> -->
|
3545 | 3547 | </xsl:template><xsl:template name="getSection">
|
3546 | 3548 | <xsl:value-of select="*[local-name() = 'title']/*[local-name() = 'tab'][1]/preceding-sibling::node()"/>
|
| 3549 | + <!-- |
| 3550 | + <xsl:for-each select="*[local-name() = 'title']/*[local-name() = 'tab'][1]/preceding-sibling::node()"> |
| 3551 | + <xsl:value-of select="."/> |
| 3552 | + </xsl:for-each> |
| 3553 | + --> |
| 3554 | + |
3547 | 3555 | </xsl:template><xsl:template name="getName">
|
3548 | 3556 | <xsl:choose>
|
3549 | 3557 | <xsl:when test="*[local-name() = 'title']/*[local-name() = 'tab']">
|
|
3596 | 3604 | <xsl:copy>
|
3597 | 3605 | <xsl:apply-templates mode="contents_item"/>
|
3598 | 3606 | </xsl:copy>
|
| 3607 | + </xsl:template><xsl:template match="*[local-name() = 'em']" mode="contents_item"> |
| 3608 | + <xsl:copy> |
| 3609 | + <xsl:apply-templates mode="contents_item"/> |
| 3610 | + </xsl:copy> |
3599 | 3611 | </xsl:template><xsl:template match="*[local-name() = 'br']" mode="contents_item">
|
3600 | 3612 | <xsl:text> </xsl:text>
|
3601 | 3613 | </xsl:template><xsl:template match="*[local-name()='sourcecode']" name="sourcecode">
|
|
3621 | 3633 | 10
|
3622 | 3634 |
|
3623 | 3635 |
|
| 3636 | + |
3624 | 3637 |
|
3625 | 3638 |
|
3626 | 3639 |
|
|
4160 | 4173 |
|
4161 | 4174 |
|
4162 | 4175 |
|
| 4176 | + |
4163 | 4177 |
|
4164 | 4178 |
|
4165 | 4179 |
|
|
4171 | 4185 |
|
4172 | 4186 |
|
4173 | 4187 |
|
4174 |
| - </xsl:template><xsl:template match="/*/*[local-name() = 'preface']/*" priority="2"> |
| 4188 | + </xsl:template><xsl:template match="//*[contains(local-name(), '-standard')]/*[local-name() = 'preface']/*" priority="2"> <!-- /*/*[local-name() = 'preface']/* --> |
4175 | 4189 | <fo:block break-after="page"/>
|
4176 | 4190 | <fo:block>
|
4177 | 4191 | <xsl:call-template name="setId"/>
|
4178 | 4192 | <xsl:apply-templates/>
|
4179 | 4193 | </fo:block>
|
4180 | 4194 | </xsl:template><xsl:template match="*[local-name() = 'clause']">
|
4181 | 4195 | <fo:block>
|
4182 |
| - <xsl:call-template name="setId"/> |
| 4196 | + <xsl:call-template name="setId"/> |
| 4197 | + |
4183 | 4198 |
|
4184 | 4199 | <xsl:apply-templates/>
|
4185 | 4200 | </fo:block>
|
|
4450 | 4465 | </xsl:variable>
|
4451 | 4466 | <xsl:variable name="result">
|
4452 | 4467 | <xsl:choose>
|
| 4468 | + <xsl:when test="$format = 'ddMMyyyy'"> |
| 4469 | + <xsl:if test="$day != ''"><xsl:value-of select="number($day)"/></xsl:if> |
| 4470 | + <xsl:text> </xsl:text> |
| 4471 | + <xsl:value-of select="normalize-space(concat($monthStr, ' ' , $year))"/> |
| 4472 | + </xsl:when> |
| 4473 | + <xsl:when test="$format = 'ddMM'"> |
| 4474 | + <xsl:if test="$day != ''"><xsl:value-of select="number($day)"/></xsl:if> |
| 4475 | + <xsl:text> </xsl:text><xsl:value-of select="$monthStr"/> |
| 4476 | + </xsl:when> |
| 4477 | + <xsl:when test="$format = 'short' or $day = ''"> |
| 4478 | + <xsl:value-of select="normalize-space(concat($monthStr, ' ', $year))"/> |
| 4479 | + </xsl:when> |
| 4480 | + <xsl:otherwise> |
| 4481 | + <xsl:value-of select="normalize-space(concat($monthStr, ' ', $day, ', ' , $year))"/> |
| 4482 | + </xsl:otherwise> |
| 4483 | + </xsl:choose> |
| 4484 | + </xsl:variable> |
| 4485 | + <xsl:value-of select="$result"/> |
| 4486 | + </xsl:template><xsl:template name="convertDateLocalized"> |
| 4487 | + <xsl:param name="date"/> |
| 4488 | + <xsl:param name="format" select="'short'"/> |
| 4489 | + <xsl:variable name="year" select="substring($date, 1, 4)"/> |
| 4490 | + <xsl:variable name="month" select="substring($date, 6, 2)"/> |
| 4491 | + <xsl:variable name="day" select="substring($date, 9, 2)"/> |
| 4492 | + <xsl:variable name="monthStr"> |
| 4493 | + <xsl:choose> |
| 4494 | + <xsl:when test="$month = '01'"><xsl:call-template name="getLocalizedString"><xsl:with-param name="key">month_january</xsl:with-param></xsl:call-template></xsl:when> |
| 4495 | + <xsl:when test="$month = '02'"><xsl:call-template name="getLocalizedString"><xsl:with-param name="key">month_february</xsl:with-param></xsl:call-template></xsl:when> |
| 4496 | + <xsl:when test="$month = '03'"><xsl:call-template name="getLocalizedString"><xsl:with-param name="key">month_march</xsl:with-param></xsl:call-template></xsl:when> |
| 4497 | + <xsl:when test="$month = '04'"><xsl:call-template name="getLocalizedString"><xsl:with-param name="key">month_april</xsl:with-param></xsl:call-template></xsl:when> |
| 4498 | + <xsl:when test="$month = '05'"><xsl:call-template name="getLocalizedString"><xsl:with-param name="key">month_may</xsl:with-param></xsl:call-template></xsl:when> |
| 4499 | + <xsl:when test="$month = '06'"><xsl:call-template name="getLocalizedString"><xsl:with-param name="key">month_june</xsl:with-param></xsl:call-template></xsl:when> |
| 4500 | + <xsl:when test="$month = '07'"><xsl:call-template name="getLocalizedString"><xsl:with-param name="key">month_july</xsl:with-param></xsl:call-template></xsl:when> |
| 4501 | + <xsl:when test="$month = '08'"><xsl:call-template name="getLocalizedString"><xsl:with-param name="key">month_august</xsl:with-param></xsl:call-template></xsl:when> |
| 4502 | + <xsl:when test="$month = '09'"><xsl:call-template name="getLocalizedString"><xsl:with-param name="key">month_september</xsl:with-param></xsl:call-template></xsl:when> |
| 4503 | + <xsl:when test="$month = '10'"><xsl:call-template name="getLocalizedString"><xsl:with-param name="key">month_october</xsl:with-param></xsl:call-template></xsl:when> |
| 4504 | + <xsl:when test="$month = '11'"><xsl:call-template name="getLocalizedString"><xsl:with-param name="key">month_november</xsl:with-param></xsl:call-template></xsl:when> |
| 4505 | + <xsl:when test="$month = '12'"><xsl:call-template name="getLocalizedString"><xsl:with-param name="key">month_december</xsl:with-param></xsl:call-template></xsl:when> |
| 4506 | + </xsl:choose> |
| 4507 | + </xsl:variable> |
| 4508 | + <xsl:variable name="result"> |
| 4509 | + <xsl:choose> |
| 4510 | + <xsl:when test="$format = 'ddMMyyyy'"> |
| 4511 | + <xsl:if test="$day != ''"><xsl:value-of select="number($day)"/></xsl:if> |
| 4512 | + <xsl:text> </xsl:text> |
| 4513 | + <xsl:value-of select="normalize-space(concat($monthStr, ' ' , $year))"/> |
| 4514 | + </xsl:when> |
| 4515 | + <xsl:when test="$format = 'ddMM'"> |
| 4516 | + <xsl:if test="$day != ''"><xsl:value-of select="number($day)"/></xsl:if> |
| 4517 | + <xsl:text> </xsl:text><xsl:value-of select="$monthStr"/> |
| 4518 | + </xsl:when> |
4453 | 4519 | <xsl:when test="$format = 'short' or $day = ''">
|
4454 | 4520 | <xsl:value-of select="normalize-space(concat($monthStr, ' ', $year))"/>
|
4455 | 4521 | </xsl:when>
|
|
4646 | 4712 |
|
4647 | 4713 |
|
4648 | 4714 |
|
| 4715 | + |
4649 | 4716 | </xsl:variable>
|
4650 | 4717 | <xsl:if test="$documentNS != $XSLNS">
|
4651 | 4718 | <xsl:message>[WARNING]: Document namespace: '<xsl:value-of select="$documentNS"/>' doesn't equal to xslt namespace '<xsl:value-of select="$XSLNS"/>'</xsl:message>
|
|
0 commit comments