69 lines
1.7 KiB
XML
69 lines
1.7 KiB
XML
|
<?xml version="1.0" encoding="UTF-8"?>
|
||
|
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0"
|
||
|
xpath-default-namespace="http://www.oxygenxml.com/sample/documentation">
|
||
|
<xsl:template match="/">
|
||
|
<html>
|
||
|
<xsl:apply-templates/>
|
||
|
</html>
|
||
|
</xsl:template>
|
||
|
<xsl:template match="section">
|
||
|
<xsl:apply-templates/>
|
||
|
</xsl:template>
|
||
|
<xsl:template match="image">
|
||
|
<img src="{@href}"/>
|
||
|
</xsl:template>
|
||
|
<xsl:template match="para">
|
||
|
<p>
|
||
|
<xsl:apply-templates/>
|
||
|
</p>
|
||
|
</xsl:template>
|
||
|
<xsl:template match="abs:def"
|
||
|
xmlns:abs="http://www.oxygenxml.com/sample/documentation/abstracts">
|
||
|
<p>
|
||
|
<u>
|
||
|
<xsl:apply-templates/>
|
||
|
</u>
|
||
|
</p>
|
||
|
</xsl:template>
|
||
|
<xsl:template match="title">
|
||
|
<h1>
|
||
|
<xsl:apply-templates/>
|
||
|
</h1>
|
||
|
</xsl:template>
|
||
|
<xsl:template match="b">
|
||
|
<b>
|
||
|
<xsl:apply-templates/>
|
||
|
</b>
|
||
|
</xsl:template>
|
||
|
<xsl:template match="i">
|
||
|
<i>
|
||
|
<xsl:apply-templates/>
|
||
|
</i>
|
||
|
</xsl:template>
|
||
|
<xsl:template match="table">
|
||
|
<table frame="box" border="1px">
|
||
|
<xsl:apply-templates/>
|
||
|
</table>
|
||
|
</xsl:template>
|
||
|
<xsl:template match="header">
|
||
|
<tr>
|
||
|
<xsl:apply-templates/>
|
||
|
</tr>
|
||
|
</xsl:template>
|
||
|
<xsl:template match="tr">
|
||
|
<tr>
|
||
|
<xsl:apply-templates/>
|
||
|
</tr>
|
||
|
</xsl:template>
|
||
|
<xsl:template match="td">
|
||
|
<td>
|
||
|
<xsl:apply-templates/>
|
||
|
</td>
|
||
|
</xsl:template>
|
||
|
<xsl:template match="header/header/td">
|
||
|
<th>
|
||
|
<xsl:apply-templates/>
|
||
|
</th>
|
||
|
</xsl:template>
|
||
|
</xsl:stylesheet>
|