| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 |
<!-- $Id: h2db.xsl,v 1.1.4.46 2008/09/25 21:41:40 robertDouglass Exp $ --> |
<!-- $Id: h2db.xsl,v 1.1.4.47 2008/09/26 12:22:04 robertDouglass Exp $ --> |
| 3 |
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" |
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" |
| 4 |
xmlns:html="http://www.w3.org/1999/xhtml" exclude-result-prefixes="xsl html"> |
xmlns:html="http://www.w3.org/1999/xhtml" exclude-result-prefixes="xsl html"> |
| 5 |
|
|
| 433 |
</xsl:call-template> |
</xsl:call-template> |
| 434 |
</xsl:template> |
</xsl:template> |
| 435 |
|
|
|
<xsl:template match="html:ol[contains(@class, 'docbook-procedure')]"> |
|
|
<procedure> |
|
|
<xsl:apply-templates/> |
|
|
</procedure> |
|
|
</xsl:template> |
|
|
|
|
| 436 |
<xsl:template match="html:ol"> |
<xsl:template match="html:ol"> |
| 437 |
<orderedlist> |
<orderedlist> |
| 438 |
<xsl:apply-templates/> |
<xsl:apply-templates/> |
| 552 |
</xsl:template> |
</xsl:template> |
| 553 |
|
|
| 554 |
<xsl:template match="html:li"> |
<xsl:template match="html:li"> |
| 555 |
<!-- <li> elements that contain a heading (h2 - h6) are <step> elements and the <h*> becomes |
<listitem> |
| 556 |
a <title> element. --> |
<xsl:apply-templates/> |
| 557 |
<xsl:choose> |
</listitem> |
|
<xsl:when test="./parent::html:ol[contains(@class, 'docbook-procedure')]"> |
|
|
<step> |
|
|
<xsl:apply-templates/> |
|
|
</step> |
|
|
</xsl:when> |
|
|
<xsl:otherwise> |
|
|
<listitem> |
|
|
<xsl:apply-templates/> |
|
|
</listitem> |
|
|
</xsl:otherwise> |
|
|
</xsl:choose> |
|
| 558 |
</xsl:template> |
</xsl:template> |
| 559 |
|
|
| 560 |
|
|
| 561 |
|
|
| 562 |
<xsl:template match="html:h2[./parent::html:li] | |
<xsl:template |
| 563 |
|
match="html:h2[./parent::html:li] | |
| 564 |
html:h3[./parent::html:li] | |
html:h3[./parent::html:li] | |
| 565 |
html:h4[./parent::html:li] | |
html:h4[./parent::html:li] | |
| 566 |
html:h5[./parent::html:li] | |
html:h5[./parent::html:li] | |
| 567 |
html:h6[./parent::html:li]"> |
html:h6[./parent::html:li]"> |
| 568 |
<title> |
<emphasis role="bold"> |
| 569 |
<xsl:apply-templates/> |
<xsl:apply-templates/> |
| 570 |
</title> |
</emphasis> |
| 571 |
</xsl:template> |
</xsl:template> |
| 572 |
|
|
| 573 |
<xsl:template match="*"> |
<xsl:template match="*"> |
| 602 |
<!-- Various elements --> |
<!-- Various elements --> |
| 603 |
<xsl:template match="html:hr"/> |
<xsl:template match="html:hr"/> |
| 604 |
<xsl:template |
<xsl:template |
| 605 |
match="html:h1[1] | |
match="html:h1[1] |html:div/html:h2[1] |html:h3[1]" |
|
html:div/html:h2[1] | |
|
|
html:h3[1]" |
|
| 606 |
priority="1"/> |
priority="1"/> |
| 607 |
<xsl:template match="html:br"> |
<xsl:template match="html:br"> |
| 608 |
<!-- don't change the indentation of <xsl:text> !!! --> |
<!-- don't change the indentation of <xsl:text> !!! --> |