2007-01-15 17:53:32 -05:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
<!--
|
|
|
|
====================================================================
|
|
|
|
Licensed to the Apache Software Foundation (ASF) under one or more
|
|
|
|
contributor license agreements. See the NOTICE file distributed with
|
|
|
|
this work for additional information regarding copyright ownership.
|
|
|
|
The ASF licenses this file to You under the Apache License, Version 2.0
|
|
|
|
(the "License"); you may not use this file except in compliance with
|
|
|
|
the License. You may obtain a copy of the License at
|
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
See the License for the specific language governing permissions and
|
|
|
|
limitations under the License.
|
|
|
|
====================================================================
|
|
|
|
-->
|
2002-02-09 23:32:07 -05:00
|
|
|
<xsl:stylesheet version="1.0"
|
|
|
|
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
|
|
|
xmlns:recutil="org.apache.poi.generator.RecordUtil"
|
|
|
|
xmlns:field="org.apache.poi.generator.FieldIterator"
|
|
|
|
xmlns:java="java" >
|
|
|
|
|
|
|
|
<xsl:template match="record">
|
|
|
|
<document>
|
|
|
|
<header>
|
|
|
|
<title><xsl:value-of select="@name"/> Record Documentation</title>
|
|
|
|
</header>
|
|
|
|
|
|
|
|
<body>
|
|
|
|
<s1 title="Record Description">
|
|
|
|
<p><xsl:value-of select="/record/description"/>
|
|
|
|
</p>
|
|
|
|
</s1>
|
|
|
|
<s1 title="Fields">
|
|
|
|
<table>
|
|
|
|
<tr>
|
|
|
|
<th colspan="1" rowspan="1">Name</th>
|
|
|
|
<th colspan="1" rowspan="1">Size</th>
|
|
|
|
<th colspan="1" rowspan="1">Offset</th>
|
|
|
|
<th colspan="1" rowspan="1">Description</th>
|
|
|
|
<th colspan="1" rowspan="1">Default Value</th>
|
|
|
|
</tr>
|
|
|
|
<xsl:apply-templates select="//field"/>
|
|
|
|
</table>
|
|
|
|
</s1>
|
|
|
|
</body>
|
|
|
|
<footer>
|
|
|
|
<legal>
|
|
|
|
Copyright (c) @year@ The Poi Project All rights reserved.
|
|
|
|
</legal>
|
|
|
|
</footer>
|
|
|
|
|
|
|
|
</document>
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
<xsl:template match="field">
|
|
|
|
<tr>
|
|
|
|
<td><xsl:value-of select="@name"/></td>
|
|
|
|
<td><xsl:value-of select="@size"/></td>
|
|
|
|
<td> </td>
|
|
|
|
<td><xsl:value-of select="@description"/></td>
|
|
|
|
<td><xsl:value-of select="@default"/></td>
|
|
|
|
</tr>
|
|
|
|
</xsl:template>
|
|
|
|
|
2004-04-09 09:05:39 -04:00
|
|
|
</xsl:stylesheet>
|