2006-01-30 18:11:30 -05:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
<!--
|
2009-06-11 07:53:05 -04:00
|
|
|
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
|
2006-01-30 18:11:30 -05:00
|
|
|
|
|
|
|
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.
|
|
|
|
-->
|
|
|
|
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
|
2009-06-11 07:53:05 -04:00
|
|
|
<xsl:template match="skinconfig">
|
|
|
|
<xsl:copy>
|
|
|
|
<xsl:if test="not(disable-print-link)">
|
|
|
|
<disable-print-link>true</disable-print-link>
|
|
|
|
</xsl:if>
|
|
|
|
<xsl:if test="not(disable-pdf-link)">
|
|
|
|
<disable-pdf-link>true</disable-pdf-link>
|
|
|
|
</xsl:if>
|
|
|
|
<xsl:if test="not(disable-txt-link)">
|
|
|
|
<disable-txt-link>true</disable-txt-link>
|
|
|
|
</xsl:if>
|
|
|
|
<xsl:if test="not(disable-pod-link)">
|
|
|
|
<disable-pod-link>true</disable-pod-link>
|
|
|
|
</xsl:if>
|
|
|
|
<xsl:if test="not(disable-xml-link)">
|
|
|
|
<disable-xml-link>true</disable-xml-link>
|
|
|
|
</xsl:if>
|
|
|
|
<xsl:if test="not(disable-external-link-image)">
|
|
|
|
<disable-external-link-image>false</disable-external-link-image>
|
|
|
|
</xsl:if>
|
|
|
|
<xsl:if test="not(disable-compliance-links)">
|
|
|
|
<disable-compliance-links>false</disable-compliance-links>
|
|
|
|
</xsl:if>
|
|
|
|
<xsl:if test="not(obfuscate-mail-links)">
|
|
|
|
<obfuscate-mail-links>true</obfuscate-mail-links>
|
|
|
|
</xsl:if>
|
|
|
|
<xsl:if test="not(obfuscate-mail-value)">
|
|
|
|
<obfuscate-mail-value>.at.</obfuscate-mail-value>
|
|
|
|
</xsl:if>
|
|
|
|
<xsl:if test="not(disable-font-script)">
|
|
|
|
<disable-font-script>true</disable-font-script>
|
|
|
|
</xsl:if>
|
|
|
|
<!--
|
|
|
|
<xsl:if test="not(project-name)">
|
|
|
|
<project-name>MyProject</project-name>
|
|
|
|
</xsl:if>
|
|
|
|
<xsl:if test="not(project-description)">
|
|
|
|
<project-description>MyProject Description</project-description>
|
|
|
|
</xsl:if>
|
|
|
|
<xsl:if test="not(project-url)">
|
|
|
|
<project-url>http://myproj.mygroup.org/</project-url>
|
|
|
|
</xsl:if>
|
|
|
|
<xsl:if test="not(project-logo)">
|
|
|
|
<project-logo>images/project.png</project-logo>
|
|
|
|
</xsl:if>
|
|
|
|
<xsl:if test="not(group-name)">
|
|
|
|
<group-name>MyGroup</group-name>
|
|
|
|
</xsl:if>
|
|
|
|
<xsl:if test="not(group-description)">
|
|
|
|
<group-description>MyGroup Description</group-description>
|
|
|
|
</xsl:if>
|
|
|
|
<xsl:if test="not(group-url)">
|
|
|
|
<group-url>http://mygroup.org</group-url>
|
|
|
|
</xsl:if>
|
|
|
|
<xsl:if test="not(group-logo)">
|
|
|
|
<group-logo>images/group.png</group-logo>
|
|
|
|
</xsl:if>
|
|
|
|
<xsl:if test="not(host-url)">
|
|
|
|
<host-url/>
|
|
|
|
</xsl:if>
|
|
|
|
<xsl:if test="not(host-logo)">
|
|
|
|
<host-logo/>
|
|
|
|
</xsl:if>
|
|
|
|
<xsl:if test="not(year)">
|
|
|
|
<year>2006</year>
|
|
|
|
</xsl:if>
|
|
|
|
<xsl:if test="not(vendor)">
|
|
|
|
<vendor>The Acme Software Foundation.</vendor>
|
|
|
|
</xsl:if>
|
|
|
|
-->
|
|
|
|
<xsl:if test="not(trail)">
|
|
|
|
<trail>
|
|
|
|
<link1 name="" href=""/>
|
|
|
|
<link2 name="" href=""/>
|
|
|
|
<link3 name="" href=""/>
|
|
|
|
</trail>
|
|
|
|
</xsl:if>
|
|
|
|
<xsl:if test="not(toc)">
|
|
|
|
<toc level="2" location="page"/>
|
|
|
|
</xsl:if>
|
|
|
|
<xsl:if test="not(pdf/page-numbering-format)">
|
|
|
|
<pdf>
|
|
|
|
<page-numbering-format>Page 1</page-numbering-format>
|
|
|
|
</pdf>
|
|
|
|
</xsl:if>
|
|
|
|
<xsl:if test="not(pdf/show-external-urls)">
|
|
|
|
<pdf>
|
|
|
|
<show-external-urls>true</show-external-urls>
|
|
|
|
</pdf>
|
|
|
|
</xsl:if>
|
|
|
|
<!--
|
2006-01-30 18:11:30 -05:00
|
|
|
<xsl:if test="not(colors)">
|
|
|
|
<colors>
|
2009-06-11 07:53:05 -04:00
|
|
|
<color name="header" value="#294563"/>
|
|
|
|
|
|
|
|
<color name="tab-selected" value="#4a6d8c"/>
|
|
|
|
<color name="tab-unselected" value="#b5c7e7"/>
|
|
|
|
<color name="subtab-selected" value="#4a6d8c"/>
|
|
|
|
<color name="subtab-unselected" value="#4a6d8c"/>
|
|
|
|
|
|
|
|
<color name="heading" value="#294563"/>
|
|
|
|
<color name="subheading" value="#4a6d8c"/>
|
2006-01-30 18:11:30 -05:00
|
|
|
|
2009-06-11 07:53:05 -04:00
|
|
|
<color name="navstrip" value="#cedfef"/>
|
|
|
|
<color name="toolbox" value="#294563"/>
|
2006-01-30 18:11:30 -05:00
|
|
|
|
2009-06-11 07:53:05 -04:00
|
|
|
<color name="menu" value="#4a6d8c"/>
|
|
|
|
<color name="dialog" value="#4a6d8c"/>
|
2006-01-30 18:11:30 -05:00
|
|
|
|
2009-06-11 07:53:05 -04:00
|
|
|
<color name="body" value="#ffffff"/>
|
2006-01-30 18:11:30 -05:00
|
|
|
|
2009-06-11 07:53:05 -04:00
|
|
|
<color name="table" value="#7099C5"/>
|
|
|
|
<color name="table-cell" value="#f0f0ff"/>
|
2006-01-30 18:11:30 -05:00
|
|
|
<color name="highlight" value="#ffff00"/>
|
2009-06-11 07:53:05 -04:00
|
|
|
<color name="fixme" value="#c60"/>
|
|
|
|
<color name="note" value="#069"/>
|
|
|
|
|
|
|
|
<color name="warning" value="#900"/>
|
|
|
|
<color name="code" value="#CFDCED"/>
|
|
|
|
|
|
|
|
<color name="footer" value="#cedfef"/>
|
2006-01-30 18:11:30 -05:00
|
|
|
</colors>
|
|
|
|
</xsl:if>
|
2009-06-11 07:53:05 -04:00
|
|
|
-->
|
|
|
|
<xsl:if test="not(extra-css)">
|
|
|
|
<extra-css/>
|
|
|
|
</xsl:if>
|
|
|
|
<xsl:if test="not(credits)">
|
|
|
|
<credits>
|
|
|
|
<credit>
|
|
|
|
<name>Built with Apache Forrest</name>
|
|
|
|
<url>http://forrest.apache.org/</url>
|
|
|
|
<image>images/built-with-forrest-button.png</image>
|
|
|
|
<width>88</width>
|
|
|
|
<height>31</height>
|
|
|
|
</credit>
|
|
|
|
<!-- A credit with @role='pdf' will have its name and url displayed in the
|
|
|
|
PDF page's footer. -->
|
|
|
|
</credits>
|
|
|
|
</xsl:if>
|
2006-01-30 18:11:30 -05:00
|
|
|
<xsl:copy-of select="@*"/>
|
2009-06-11 07:53:05 -04:00
|
|
|
<xsl:copy-of select="node()"/>
|
|
|
|
<!--
|
|
|
|
<xsl:copy-of select="node()[not(name(.)='colors')]"/>
|
|
|
|
<xsl:apply-templates select="colors"/>-->
|
|
|
|
</xsl:copy>
|
|
|
|
</xsl:template>
|
|
|
|
<!--
|
2006-01-30 18:11:30 -05:00
|
|
|
<xsl:template match="colors">
|
2009-06-11 07:53:05 -04:00
|
|
|
<colors>
|
2006-01-30 18:11:30 -05:00
|
|
|
<xsl:if test="not(color[@name='header'])">
|
2009-06-11 07:53:05 -04:00
|
|
|
<color name="header" value="#294563"/>
|
|
|
|
</xsl:if>
|
2006-01-30 18:11:30 -05:00
|
|
|
<xsl:if test="not(color[@name='tab-selected'])">
|
2009-06-11 07:53:05 -04:00
|
|
|
<color name="tab-selected" value="#4a6d8c"/>
|
|
|
|
</xsl:if>
|
2006-01-30 18:11:30 -05:00
|
|
|
<xsl:if test="not(color[@name='tab-unselected'])">
|
2009-06-11 07:53:05 -04:00
|
|
|
<color name="tab-unselected" value="#b5c7e7"/>
|
2006-01-30 18:11:30 -05:00
|
|
|
</xsl:if>
|
|
|
|
<xsl:if test="not(color[@name='subtab-selected'])">
|
2009-06-11 07:53:05 -04:00
|
|
|
<color name="subtab-selected" value="#4a6d8c"/>
|
|
|
|
</xsl:if>
|
2006-01-30 18:11:30 -05:00
|
|
|
<xsl:if test="not(color[@name='subtab-unselected'])">
|
2009-06-11 07:53:05 -04:00
|
|
|
<color name="subtab-unselected" value="#4a6d8c"/>
|
|
|
|
</xsl:if>
|
2006-01-30 18:11:30 -05:00
|
|
|
<xsl:if test="not(color[@name='heading'])">
|
2009-06-11 07:53:05 -04:00
|
|
|
<color name="heading" value="#294563"/>
|
|
|
|
</xsl:if>
|
2006-01-30 18:11:30 -05:00
|
|
|
<xsl:if test="not(color[@name='subheading'])">
|
2009-06-11 07:53:05 -04:00
|
|
|
<color name="subheading" value="#4a6d8c"/>
|
|
|
|
</xsl:if>
|
2006-01-30 18:11:30 -05:00
|
|
|
<xsl:if test="not(color[@name='navstrip'])">
|
2009-06-11 07:53:05 -04:00
|
|
|
<color name="navstrip" value="#cedfef"/>
|
|
|
|
</xsl:if>
|
2006-01-30 18:11:30 -05:00
|
|
|
<xsl:if test="not(color[@name='toolbox'])">
|
2009-06-11 07:53:05 -04:00
|
|
|
<color name="toolbox" value="#294563"/>
|
|
|
|
</xsl:if>
|
2006-01-30 18:11:30 -05:00
|
|
|
<xsl:if test="not(color[@name='menu'])">
|
2009-06-11 07:53:05 -04:00
|
|
|
<color name="menu" value="#4a6d8c"/>
|
|
|
|
</xsl:if>
|
2006-01-30 18:11:30 -05:00
|
|
|
<xsl:if test="not(color[@name='dialog'])">
|
2009-06-11 07:53:05 -04:00
|
|
|
<color name="dialog" value="#4a6d8c"/>
|
|
|
|
</xsl:if>
|
2006-01-30 18:11:30 -05:00
|
|
|
<xsl:if test="not(color[@name='body'])">
|
2009-06-11 07:53:05 -04:00
|
|
|
<color name="body" value="#ffffff"/>
|
|
|
|
</xsl:if>
|
2006-01-30 18:11:30 -05:00
|
|
|
<xsl:if test="not(color[@name='table'])">
|
2009-06-11 07:53:05 -04:00
|
|
|
<color name="table" value="#7099C5"/>
|
|
|
|
</xsl:if>
|
2006-01-30 18:11:30 -05:00
|
|
|
<xsl:if test="not(color[@name='table-cell'])">
|
2009-06-11 07:53:05 -04:00
|
|
|
<color name="table-cell" value="#f0f0ff"/>
|
|
|
|
</xsl:if>
|
2006-01-30 18:11:30 -05:00
|
|
|
<xsl:if test="not(color[@name='highlight'])">
|
2009-06-11 07:53:05 -04:00
|
|
|
<color name="highlight" value="#yellow"/>
|
|
|
|
</xsl:if>
|
2006-01-30 18:11:30 -05:00
|
|
|
<xsl:if test="not(color[@name='fixme'])">
|
|
|
|
<color name="fixme" value="#c60"/>
|
2009-06-11 07:53:05 -04:00
|
|
|
</xsl:if>
|
2006-01-30 18:11:30 -05:00
|
|
|
<xsl:if test="not(color[@name='note'])">
|
|
|
|
<color name="note" value="#069"/>
|
2009-06-11 07:53:05 -04:00
|
|
|
</xsl:if>
|
2006-01-30 18:11:30 -05:00
|
|
|
<xsl:if test="not(color[@name='warning'])">
|
|
|
|
<color name="warning" value="#900"/>
|
2009-06-11 07:53:05 -04:00
|
|
|
</xsl:if>
|
2006-01-30 18:11:30 -05:00
|
|
|
<xsl:if test="not(color[@name='code'])">
|
2009-06-11 07:53:05 -04:00
|
|
|
<color name="code" value="#CFDCED"/>
|
|
|
|
</xsl:if>
|
2006-01-30 18:11:30 -05:00
|
|
|
<xsl:if test="not(color[@name='footer'])">
|
2009-06-11 07:53:05 -04:00
|
|
|
<color name="footer" value="#cedfef"/>
|
|
|
|
</xsl:if>
|
|
|
|
|
|
|
|
<xsl:copy>
|
|
|
|
<xsl:copy-of select="@*"/>
|
|
|
|
<xsl:copy-of select="node()[name(.)='color']"/>
|
|
|
|
</xsl:copy>
|
2006-01-30 18:11:30 -05:00
|
|
|
|
2009-06-11 07:53:05 -04:00
|
|
|
</colors>
|
2006-01-30 18:11:30 -05:00
|
|
|
</xsl:template>
|
2009-06-11 07:53:05 -04:00
|
|
|
-->
|
2006-01-30 18:11:30 -05:00
|
|
|
</xsl:stylesheet>
|