优化项目结构、优化 maven 结构
This commit is contained in:
@ -0,0 +1,124 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--***********************************************************
|
||||
*
|
||||
* 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.
|
||||
*
|
||||
***********************************************************-->
|
||||
|
||||
<xsl:stylesheet version="1.0"
|
||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
xmlns="http://www.w3.org/1999/xhtml">
|
||||
|
||||
<xsl:output method = "html"
|
||||
media-type = "text/html"
|
||||
indent = "yes"
|
||||
doctype-public = "-//W3C//DTD HTML 4.0 Transitional//EN"
|
||||
omit-xml-declaration = "yes"
|
||||
standalone = "yes" />
|
||||
|
||||
<xsl:include href="../layout.xsl"/>
|
||||
|
||||
|
||||
<!-- =============================
|
||||
HTML BODY
|
||||
================================== -->
|
||||
|
||||
<xsl:template name="body">
|
||||
<xsl:call-template name="title"/>
|
||||
<xsl:call-template name="toc"/>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<xsl:template name="toc">
|
||||
<!--
|
||||
@ pre toc html here
|
||||
-->
|
||||
|
||||
<xsl:apply-templates select="/session/content/document"/>
|
||||
|
||||
<!--
|
||||
@ post toc html here
|
||||
-->
|
||||
|
||||
</xsl:template>
|
||||
|
||||
<!-- also when using groups, in the end it comes
|
||||
to this template, which is called for each document -->
|
||||
<xsl:template match="document">
|
||||
<xsl:variable name="i" select="position() - 1"/>
|
||||
<xsl:variable name="x" select="( $i mod 3 ) * 250 + 50"/>
|
||||
<xsl:variable name="y" select="( $i mod 3 ) * 50 + (floor( $i div 3 )) * 300 + 80"/>
|
||||
<div style="position:absolute; padding:15px; left:{$x}px; top:{$y}px; width:170px; height:220px; z-index:1" class="tcolor">
|
||||
<div align="center">
|
||||
|
||||
<xsl:apply-templates select="@icon"/>
|
||||
<p>
|
||||
<xsl:apply-templates select="@title"/>
|
||||
<xsl:apply-templates select="@description"/>
|
||||
<xsl:apply-templates select="@author"/>
|
||||
<xsl:apply-templates select="@create-date"/>
|
||||
<xsl:apply-templates select="@update-date"/>
|
||||
<xsl:apply-templates select="@filename"/>
|
||||
<xsl:apply-templates select="@format"/>
|
||||
<xsl:apply-templates select="@pages"/>
|
||||
<xsl:apply-templates select="@size"/>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
|
||||
<xsl:template name="document-group">
|
||||
<xsl:param name="group"/>
|
||||
|
||||
<!-- @ pre group code here -->
|
||||
|
||||
<!-- - - -->
|
||||
|
||||
<xsl:variable name="count" select="(position() - 1) * $group + 1"/>
|
||||
|
||||
<xsl:for-each select="/session/content/document[$count <= position() and position() < ($count + $group)]">
|
||||
|
||||
<xsl:apply-templates select="."/>
|
||||
|
||||
</xsl:for-each>
|
||||
|
||||
<!-- @ post group code here -->
|
||||
|
||||
<!-- - - -->
|
||||
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<xsl:template name="title">
|
||||
<!--
|
||||
@ Pre title html code here
|
||||
-->
|
||||
<div style="position:absolute; left:280px; top:8px; width:220px; z-index:2; padding:10px" class="ccolor">
|
||||
<div align="center" class="toctitle">
|
||||
<xsl:value-of select="/session/general-info/@title"/>
|
||||
<!--
|
||||
@ Post title html code here
|
||||
-->
|
||||
</div>
|
||||
</div>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
</xsl:stylesheet>
|
||||
@ -0,0 +1,91 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--***********************************************************
|
||||
*
|
||||
* 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.
|
||||
*
|
||||
***********************************************************-->
|
||||
|
||||
<xsl:stylesheet version="1.0"
|
||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
xmlns="http://www.w3.org/1999/xhtml">
|
||||
|
||||
<xsl:output method = "html"
|
||||
media-type = "text/html"
|
||||
indent = "yes"
|
||||
doctype-public = "-//W3C//DTD HTML 4.0 Transitional//EN"
|
||||
omit-xml-declaration = "yes"
|
||||
standalone = "yes" />
|
||||
|
||||
|
||||
<!-- =============================
|
||||
ROOT
|
||||
================================== -->
|
||||
|
||||
|
||||
<xsl:template match="/">
|
||||
<html>
|
||||
<xsl:call-template name="head"/>
|
||||
<xsl:call-template name="frameset"/>
|
||||
</html>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<!-- =============================
|
||||
HTML FRAMES
|
||||
================================== -->
|
||||
|
||||
|
||||
<xsl:template name="frameset">
|
||||
<frameset rows="*,281" cols="*" framespacing="0" frameborder="NO" border="0">
|
||||
<frame src="mainframe.html" name="mainframe"/>
|
||||
<frame src="tocframe.html" name="tocframe" scrolling="Auto" noresize=""/>
|
||||
</frameset>
|
||||
<noframes/>
|
||||
<body>
|
||||
</body>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<!-- =============================
|
||||
HTML HEAD
|
||||
|
||||
this section should not be changed
|
||||
================================== -->
|
||||
|
||||
<xsl:template name="head">
|
||||
<head>
|
||||
<title>
|
||||
<xsl:value-of select="/session/general-info/@title"/>
|
||||
</title>
|
||||
<!-- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> -->
|
||||
<meta name="description" content="{/session/general-info/@description}"/>
|
||||
<meta name="keywords" content="{/session/general-info/@keywords}"/>
|
||||
<meta name="author" content="{/session/general-info/@author}"/>
|
||||
<meta name="email" content="{/session/general-info/@email}"/>
|
||||
<meta name="copyright" content="{/session/general-info/@copyright}"/>
|
||||
<!-- create date?
|
||||
update date?
|
||||
fav icon?
|
||||
-->
|
||||
<link REL="shortcut icon" href="images/favicon.ico" type="image/ico"/>
|
||||
<link href="style.css" rel="stylesheet" type="text/css"/>
|
||||
|
||||
</head>
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
||||
@ -0,0 +1,27 @@
|
||||
<!--***********************************************************
|
||||
*
|
||||
* 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.
|
||||
*
|
||||
***********************************************************-->
|
||||
<html>
|
||||
<head>
|
||||
<title></title>
|
||||
<link href="style.css" rel="stylesheet" type="text/css"/>
|
||||
</head>
|
||||
<body></body>
|
||||
</html>
|
||||
@ -0,0 +1,120 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--***********************************************************
|
||||
*
|
||||
* 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.
|
||||
*
|
||||
***********************************************************-->
|
||||
<!-- =================================================
|
||||
|
||||
This template is a skeleton for single level TOC pages
|
||||
Do not overwrite this ! copy it and complete the missing
|
||||
code.
|
||||
|
||||
I use the @ character whereever there is a missing code, so
|
||||
you can use a simple find to navigate and find the
|
||||
places...
|
||||
|
||||
====================================================== -->
|
||||
|
||||
<xsl:stylesheet version="1.0"
|
||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
xmlns="http://www.w3.org/1999/xhtml">
|
||||
|
||||
<xsl:output method = "html"
|
||||
media-type = "text/html"
|
||||
indent = "yes"
|
||||
doctype-public = "-//W3C//DTD HTML 4.0 Transitional//EN"
|
||||
omit-xml-declaration = "yes"
|
||||
standalone = "yes" />
|
||||
|
||||
<xsl:include href="../layout.xsl"/>
|
||||
|
||||
|
||||
|
||||
<!-- =============================
|
||||
HTML BODY
|
||||
================================== -->
|
||||
|
||||
<xsl:template name="body">
|
||||
<xsl:call-template name="toc"/>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<xsl:template name="toc">
|
||||
<xsl:variable name="doc-count" select="count(/session/content/document)"/>
|
||||
|
||||
<table width="{$doc-count * 250}" height="250" border="0" cellpadding="0" cellspacing="0" class="tcolor">
|
||||
|
||||
<tr>
|
||||
<td height="50" colspan="{$doc-count * 2 + 2}" class="toctitle">
|
||||
<xsl:value-of select="/session/general-info/@title"/>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<!-- use this alternative if you do not need to use groups
|
||||
(uncomment to use - and do not forget to comment the group
|
||||
option above...)-->
|
||||
|
||||
<tr>
|
||||
<xsl:apply-templates select="/session/content/document"/>
|
||||
<td colspan="2"></td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
<!--
|
||||
@ post toc html here
|
||||
-->
|
||||
|
||||
<p class="colback"> </p>
|
||||
|
||||
</xsl:template>
|
||||
|
||||
<!-- also when using groups, in the end it comes
|
||||
to this template, which is called for each document -->
|
||||
<xsl:template match="document">
|
||||
|
||||
<!-- image cell -->
|
||||
|
||||
<td width="50" height="200" align="center">
|
||||
<p>
|
||||
<xsl:apply-templates select="@icon"/>
|
||||
</p>
|
||||
</td>
|
||||
|
||||
<td width="200"><p>
|
||||
|
||||
<xsl:apply-templates select="@title">
|
||||
<xsl:with-param name="target" select="'mainframe'"/>
|
||||
</xsl:apply-templates>
|
||||
|
||||
<xsl:apply-templates select="@description"/>
|
||||
<xsl:apply-templates select="@author"/>
|
||||
<xsl:apply-templates select="@create-date"/>
|
||||
<xsl:apply-templates select="@update-date"/>
|
||||
<xsl:apply-templates select="@filename"/>
|
||||
<xsl:apply-templates select="@format"/>
|
||||
<xsl:apply-templates select="@pages"/>
|
||||
<xsl:apply-templates select="@size"/>
|
||||
|
||||
|
||||
</p> </td>
|
||||
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
||||
@ -0,0 +1,91 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--***********************************************************
|
||||
*
|
||||
* 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.
|
||||
*
|
||||
***********************************************************-->
|
||||
|
||||
<xsl:stylesheet version="1.0"
|
||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
xmlns="http://www.w3.org/1999/xhtml">
|
||||
|
||||
<xsl:output method = "html"
|
||||
media-type = "text/html"
|
||||
indent = "yes"
|
||||
doctype-public = "-//W3C//DTD HTML 4.0 Transitional//EN"
|
||||
omit-xml-declaration = "yes"
|
||||
standalone = "yes" />
|
||||
|
||||
|
||||
<!-- =============================
|
||||
ROOT
|
||||
================================== -->
|
||||
|
||||
|
||||
<xsl:template match="/">
|
||||
<html>
|
||||
<xsl:call-template name="head"/>
|
||||
<xsl:call-template name="frameset"/>
|
||||
</html>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<!-- =============================
|
||||
HTML FRAMES
|
||||
================================== -->
|
||||
|
||||
|
||||
<xsl:template name="frameset">
|
||||
<frameset rows="*" cols="284,*" framespacing="0" frameborder="NO" border="0">
|
||||
<frame src="tocframe.html" name="tocframe" scrolling="Auto" noresize=""/>
|
||||
<frame src="mainframe.html" name="mainframe"/>
|
||||
</frameset>
|
||||
<noframes/>
|
||||
<body>
|
||||
</body>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<!-- =============================
|
||||
HTML HEAD
|
||||
|
||||
this section should not be changed
|
||||
================================== -->
|
||||
|
||||
<xsl:template name="head">
|
||||
<head>
|
||||
<title>
|
||||
<xsl:value-of select="/session/general-info/@title"/>
|
||||
</title>
|
||||
<!-- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> -->
|
||||
<meta name="description" content="{/session/general-info/@description}"/>
|
||||
<meta name="keywords" content="{/session/general-info/@keywords}"/>
|
||||
<meta name="author" content="{/session/general-info/@author}"/>
|
||||
<meta name="email" content="{/session/general-info/@email}"/>
|
||||
<meta name="copyright" content="{/session/general-info/@copyright}"/>
|
||||
<!-- create date?
|
||||
update date?
|
||||
fav icon?
|
||||
-->
|
||||
<link REL="shortcut icon" href="images/favicon.ico" type="image/ico"/>
|
||||
<link href="style.css" rel="stylesheet" type="text/css"/>
|
||||
|
||||
</head>
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
||||
@ -0,0 +1,27 @@
|
||||
<!--***********************************************************
|
||||
*
|
||||
* 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.
|
||||
*
|
||||
***********************************************************-->
|
||||
<html>
|
||||
<head>
|
||||
<title></title>
|
||||
<link href="style.css" rel="stylesheet" type="text/css"/>
|
||||
</head>
|
||||
<body></body>
|
||||
</html>
|
||||
@ -0,0 +1,116 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--***********************************************************
|
||||
*
|
||||
* 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.
|
||||
*
|
||||
***********************************************************-->
|
||||
<!-- =================================================
|
||||
|
||||
This template is a skeleton for single level TOC pages
|
||||
Do not overwrite this ! copy it and complete the missing
|
||||
code.
|
||||
|
||||
I use the @ character whereever there is a missing code, so
|
||||
you can use a simple find to navigate and find the
|
||||
places...
|
||||
|
||||
====================================================== -->
|
||||
|
||||
<xsl:stylesheet version="1.0"
|
||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
xmlns="http://www.w3.org/1999/xhtml">
|
||||
|
||||
<xsl:output method = "html"
|
||||
media-type = "text/html"
|
||||
indent = "yes"
|
||||
doctype-public = "-//W3C//DTD HTML 4.0 Transitional//EN"
|
||||
omit-xml-declaration = "yes"
|
||||
standalone = "yes" />
|
||||
|
||||
<xsl:include href="../layout.xsl"/>
|
||||
|
||||
<!-- =============================
|
||||
HTML BODY
|
||||
================================== -->
|
||||
|
||||
<xsl:template name="body">
|
||||
<xsl:call-template name="toc"/>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<xsl:template name="toc">
|
||||
<table width="100%" height="654" border="0" cellpadding="0" cellspacing="0" class="tcolor">
|
||||
|
||||
<tr>
|
||||
<td height="80" colspan="2" class="toctitle">
|
||||
<xsl:value-of select="/session/general-info/@title"/>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<!-- use this alternative if you do not need to use groups
|
||||
(uncomment to use - and do not forget to comment the group
|
||||
option above...)-->
|
||||
|
||||
|
||||
<xsl:apply-templates select="/session/content/document"/>
|
||||
|
||||
|
||||
</table>
|
||||
|
||||
<!--
|
||||
@ post toc html here
|
||||
-->
|
||||
|
||||
<p class="colback"> </p>
|
||||
|
||||
</xsl:template>
|
||||
|
||||
<!-- also when using groups, in the end it comes
|
||||
to this template, which is called for each document -->
|
||||
<xsl:template match="document">
|
||||
|
||||
<tr>
|
||||
|
||||
<!-- image cell -->
|
||||
|
||||
<td width="40" height="200" align="center" class="ccolor">
|
||||
<p>
|
||||
<xsl:apply-templates select="@icon"/>
|
||||
</p>
|
||||
</td>
|
||||
|
||||
<td><p>
|
||||
|
||||
<xsl:apply-templates select="@title">
|
||||
<xsl:with-param name="target" select="'mainframe'"/>
|
||||
</xsl:apply-templates>
|
||||
<xsl:apply-templates select="@description"/>
|
||||
<xsl:apply-templates select="@author"/>
|
||||
<xsl:apply-templates select="@create-date"/>
|
||||
<xsl:apply-templates select="@update-date"/>
|
||||
<xsl:apply-templates select="@filename"/>
|
||||
<xsl:apply-templates select="@format"/>
|
||||
<xsl:apply-templates select="@pages"/>
|
||||
<xsl:apply-templates select="@size"/>
|
||||
|
||||
</p> </td>
|
||||
</tr>
|
||||
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
||||
@ -0,0 +1,91 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--***********************************************************
|
||||
*
|
||||
* 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.
|
||||
*
|
||||
***********************************************************-->
|
||||
|
||||
<xsl:stylesheet version="1.0"
|
||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
xmlns="http://www.w3.org/1999/xhtml">
|
||||
|
||||
<xsl:output method = "html"
|
||||
media-type = "text/html"
|
||||
indent = "yes"
|
||||
doctype-public = "-//W3C//DTD HTML 4.0 Transitional//EN"
|
||||
omit-xml-declaration = "yes"
|
||||
standalone = "yes" />
|
||||
|
||||
|
||||
<!-- =============================
|
||||
ROOT
|
||||
================================== -->
|
||||
|
||||
|
||||
<xsl:template match="/">
|
||||
<html>
|
||||
<xsl:call-template name="head"/>
|
||||
<xsl:call-template name="frameset"/>
|
||||
</html>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<!-- =============================
|
||||
HTML FRAMES
|
||||
================================== -->
|
||||
|
||||
|
||||
<xsl:template name="frameset">
|
||||
<frameset rows="*" cols="*,273" framespacing="0" frameborder="NO" border="0">
|
||||
<frame src="mainframe.html" name="mainframe"/>
|
||||
<frame src="tocframe.html" name="tocframe" scrolling="Auto" noresize=""/>
|
||||
</frameset>
|
||||
<noframes/>
|
||||
<body>
|
||||
</body>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<!-- =============================
|
||||
HTML HEAD
|
||||
|
||||
this section should not be changed
|
||||
================================== -->
|
||||
|
||||
<xsl:template name="head">
|
||||
<head>
|
||||
<title>
|
||||
<xsl:value-of select="/session/general-info/@title"/>
|
||||
</title>
|
||||
<!-- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> -->
|
||||
<meta name="description" content="{/session/general-info/@description}"/>
|
||||
<meta name="keywords" content="{/session/general-info/@keywords}"/>
|
||||
<meta name="author" content="{/session/general-info/@author}"/>
|
||||
<meta name="email" content="{/session/general-info/@email}"/>
|
||||
<meta name="copyright" content="{/session/general-info/@copyright}"/>
|
||||
<!-- create date?
|
||||
update date?
|
||||
fav icon?
|
||||
-->
|
||||
<link REL="shortcut icon" href="images/favicon.ico" type="image/ico"/>
|
||||
<link href="style.css" rel="stylesheet" type="text/css"/>
|
||||
|
||||
</head>
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
||||
@ -0,0 +1,27 @@
|
||||
<!--***********************************************************
|
||||
*
|
||||
* 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.
|
||||
*
|
||||
***********************************************************-->
|
||||
<html>
|
||||
<head>
|
||||
<title></title>
|
||||
<link href="style.css" rel="stylesheet" type="text/css"/>
|
||||
</head>
|
||||
<body></body>
|
||||
</html>
|
||||
@ -0,0 +1,119 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--***********************************************************
|
||||
*
|
||||
* 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.
|
||||
*
|
||||
***********************************************************-->
|
||||
<!-- =================================================
|
||||
|
||||
This template is a skeleton for single level TOC pages
|
||||
Do not overwrite this ! copy it and complete the missing
|
||||
code.
|
||||
|
||||
I use the @ character whereever there is a missing code, so
|
||||
you can use a simple find to navigate and find the
|
||||
places...
|
||||
|
||||
====================================================== -->
|
||||
|
||||
<xsl:stylesheet version="1.0"
|
||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
xmlns="http://www.w3.org/1999/xhtml">
|
||||
|
||||
<xsl:output method = "html"
|
||||
media-type = "text/html"
|
||||
indent = "yes"
|
||||
doctype-public = "-//W3C//DTD HTML 4.0 Transitional//EN"
|
||||
omit-xml-declaration = "yes"
|
||||
standalone = "yes" />
|
||||
|
||||
<xsl:include href="../layout.xsl"/>
|
||||
|
||||
<!-- =============================
|
||||
HTML BODY
|
||||
================================== -->
|
||||
|
||||
<xsl:template name="body">
|
||||
<xsl:call-template name="toc"/>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<xsl:template name="toc">
|
||||
<table width="100%" height="654" border="0" cellpadding="0" cellspacing="0" class="tcolor">
|
||||
|
||||
<tr>
|
||||
<td height="80" colspan="2" class="toctitle">
|
||||
<xsl:value-of select="/session/general-info/@title"/>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<!-- use this alternative if you do not need to use groups
|
||||
(uncomment to use - and do not forget to comment the group
|
||||
option above...)-->
|
||||
|
||||
|
||||
<xsl:apply-templates select="/session/content/document"/>
|
||||
|
||||
|
||||
</table>
|
||||
|
||||
<!--
|
||||
@ post toc html here
|
||||
-->
|
||||
|
||||
<p class="colback"> </p>
|
||||
|
||||
</xsl:template>
|
||||
|
||||
<!-- also when using groups, in the end it comes
|
||||
to this template, which is called for each document -->
|
||||
<xsl:template match="document">
|
||||
|
||||
<tr>
|
||||
|
||||
<!-- image cell -->
|
||||
|
||||
<td height="200" align="center" class="ccolor">
|
||||
<p>
|
||||
<xsl:apply-templates select="@icon"/>
|
||||
</p>
|
||||
</td>
|
||||
|
||||
<td width="200"><p>
|
||||
|
||||
<xsl:apply-templates select="@title">
|
||||
<xsl:with-param name="target" select="'mainframe'"/>
|
||||
</xsl:apply-templates>
|
||||
<xsl:apply-templates select="@description"/>
|
||||
<xsl:apply-templates select="@author"/>
|
||||
<xsl:apply-templates select="@create-date"/>
|
||||
<xsl:apply-templates select="@update-date"/>
|
||||
<xsl:apply-templates select="@filename"/>
|
||||
<xsl:apply-templates select="@format"/>
|
||||
<xsl:apply-templates select="@pages"/>
|
||||
<xsl:apply-templates select="@size"/>
|
||||
|
||||
</p> </td>
|
||||
</tr>
|
||||
|
||||
</xsl:template>
|
||||
|
||||
|
||||
|
||||
|
||||
</xsl:stylesheet>
|
||||
@ -0,0 +1,91 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--***********************************************************
|
||||
*
|
||||
* 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.
|
||||
*
|
||||
***********************************************************-->
|
||||
|
||||
<xsl:stylesheet version="1.0"
|
||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
xmlns="http://www.w3.org/1999/xhtml">
|
||||
|
||||
<xsl:output method = "html"
|
||||
media-type = "text/html"
|
||||
indent = "yes"
|
||||
doctype-public = "-//W3C//DTD HTML 4.0 Transitional//EN"
|
||||
omit-xml-declaration = "yes"
|
||||
standalone = "yes" />
|
||||
|
||||
|
||||
<!-- =============================
|
||||
ROOT
|
||||
================================== -->
|
||||
|
||||
|
||||
<xsl:template match="/">
|
||||
<html>
|
||||
<xsl:call-template name="head"/>
|
||||
<xsl:call-template name="frameset"/>
|
||||
</html>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<!-- =============================
|
||||
HTML FRAMES
|
||||
================================== -->
|
||||
|
||||
|
||||
<xsl:template name="frameset">
|
||||
<frameset rows="281,*" cols="*" framespacing="0" frameborder="NO" border="0">
|
||||
<frame src="tocframe.html" name="tocframe" scrolling="Auto" noresize=""/>
|
||||
<frame src="mainframe.html" name="mainframe"/>
|
||||
</frameset>
|
||||
<noframes/>
|
||||
<body>
|
||||
</body>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<!-- =============================
|
||||
HTML HEAD
|
||||
|
||||
this section should not be changed
|
||||
================================== -->
|
||||
|
||||
<xsl:template name="head">
|
||||
<head>
|
||||
<title>
|
||||
<xsl:value-of select="/session/general-info/@title"/>
|
||||
</title>
|
||||
<!-- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> -->
|
||||
<meta name="description" content="{/session/general-info/@description}"/>
|
||||
<meta name="keywords" content="{/session/general-info/@keywords}"/>
|
||||
<meta name="author" content="{/session/general-info/@author}"/>
|
||||
<meta name="email" content="{/session/general-info/@email}"/>
|
||||
<meta name="copyright" content="{/session/general-info/@copyright}"/>
|
||||
<!-- create date?
|
||||
update date?
|
||||
fav icon?
|
||||
-->
|
||||
<link REL="shortcut icon" href="images/favicon.ico" type="image/ico"/>
|
||||
<link href="style.css" rel="stylesheet" type="text/css"/>
|
||||
|
||||
</head>
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
||||
@ -0,0 +1,27 @@
|
||||
<!--***********************************************************
|
||||
*
|
||||
* 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.
|
||||
*
|
||||
***********************************************************-->
|
||||
<html>
|
||||
<head>
|
||||
<title></title>
|
||||
<link href="style.css" rel="stylesheet" type="text/css"/>
|
||||
</head>
|
||||
<body></body>
|
||||
</html>
|
||||
@ -0,0 +1,119 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--***********************************************************
|
||||
*
|
||||
* 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.
|
||||
*
|
||||
***********************************************************-->
|
||||
<!-- =================================================
|
||||
|
||||
This template is a skeleton for single level TOC pages
|
||||
Do not overwrite this ! copy it and complete the missing
|
||||
code.
|
||||
|
||||
I use the @ character whereever there is a missing code, so
|
||||
you can use a simple find to navigate and find the
|
||||
places...
|
||||
|
||||
====================================================== -->
|
||||
|
||||
<xsl:stylesheet version="1.0"
|
||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
xmlns="http://www.w3.org/1999/xhtml">
|
||||
|
||||
<xsl:output method = "html"
|
||||
media-type = "text/html"
|
||||
indent = "yes"
|
||||
doctype-public = "-//W3C//DTD HTML 4.0 Transitional//EN"
|
||||
omit-xml-declaration = "yes"
|
||||
standalone = "yes" />
|
||||
|
||||
<xsl:include href="../layout.xsl"/>
|
||||
|
||||
|
||||
<!-- =============================
|
||||
HTML BODY
|
||||
================================== -->
|
||||
|
||||
<xsl:template name="body">
|
||||
<xsl:call-template name="toc"/>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<xsl:template name="toc">
|
||||
<xsl:variable name="doc-count" select="count(/session/content/document)"/>
|
||||
|
||||
<table width="{$doc-count * 250}" height="250" border="0" cellpadding="0" cellspacing="0" class="tcolor">
|
||||
|
||||
<tr>
|
||||
<td height="50" colspan="{$doc-count * 2 + 2}" class="toctitle">
|
||||
<xsl:value-of select="/session/general-info/@title"/>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<!-- use this alternative if you do not need to use groups
|
||||
(uncomment to use - and do not forget to comment the group
|
||||
option above...)-->
|
||||
|
||||
<tr>
|
||||
<xsl:apply-templates select="/session/content/document"/>
|
||||
<td colspan="2"></td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
<!--
|
||||
@ post toc html here
|
||||
-->
|
||||
|
||||
<p class="colback"> </p>
|
||||
|
||||
</xsl:template>
|
||||
|
||||
<!-- also when using groups, in the end it comes
|
||||
to this template, which is called for each document -->
|
||||
<xsl:template match="document">
|
||||
|
||||
<!-- image cell -->
|
||||
|
||||
<td width="50" height="200" align="center">
|
||||
<p>
|
||||
<xsl:apply-templates select="@icon"/>
|
||||
</p>
|
||||
</td>
|
||||
|
||||
<td width="200"><p>
|
||||
|
||||
<xsl:apply-templates select="@title">
|
||||
<xsl:with-param name="target" select="'mainframe'"/>
|
||||
</xsl:apply-templates>
|
||||
<xsl:apply-templates select="@description"/>
|
||||
<xsl:apply-templates select="@author"/>
|
||||
<xsl:apply-templates select="@create-date"/>
|
||||
<xsl:apply-templates select="@update-date"/>
|
||||
<xsl:apply-templates select="@filename"/>
|
||||
<xsl:apply-templates select="@format"/>
|
||||
<xsl:apply-templates select="@pages"/>
|
||||
<xsl:apply-templates select="@size"/>
|
||||
|
||||
</p> </td>
|
||||
|
||||
</xsl:template>
|
||||
|
||||
|
||||
|
||||
</xsl:stylesheet>
|
||||
@ -0,0 +1,200 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--***********************************************************
|
||||
*
|
||||
* 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.
|
||||
*
|
||||
***********************************************************-->
|
||||
|
||||
|
||||
<!-- =================================================
|
||||
|
||||
This template is a skeleton for single level TOC pages
|
||||
Do not overwrite this ! copy it and complete the missing
|
||||
code.
|
||||
|
||||
I use the @ character whereever there is a missing code, so
|
||||
you can use a simple find to navigate and find the
|
||||
places...
|
||||
|
||||
====================================================== -->
|
||||
|
||||
<xsl:stylesheet version="1.0"
|
||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
xmlns="http://www.w3.org/1999/xhtml">
|
||||
|
||||
<xsl:output method = "html"
|
||||
media-type = "text/html"
|
||||
indent = "yes"
|
||||
doctype-public = "-//W3C//DTD HTML 4.0 Transitional//EN"
|
||||
omit-xml-declaration = "yes"
|
||||
standalone = "yes" />
|
||||
|
||||
<!-- =============================
|
||||
ROOT
|
||||
================================== -->
|
||||
|
||||
|
||||
<xsl:template match="/">
|
||||
<html>
|
||||
<xsl:call-template name="head"/>
|
||||
<xsl:call-template name="body"/>
|
||||
</html>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<!-- =============================
|
||||
Document properties
|
||||
|
||||
This section contains templates which
|
||||
give the document properties...
|
||||
|
||||
================================== -->
|
||||
|
||||
<!-- this tempaltes gives the
|
||||
relative href of the document. To use
|
||||
with the <a href="..."> attribute-->
|
||||
|
||||
|
||||
<xsl:template match="document" mode="href">
|
||||
<xsl:value-of select="concat(../@directory,'/')"/>
|
||||
<xsl:if test="@dir">
|
||||
<xsl:value-of select="concat(@dir,'/')"/>
|
||||
</xsl:if>
|
||||
<xsl:value-of select="@fn"/>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<xsl:template match="document/@title">
|
||||
<xsl:param name="target" select="''"/>
|
||||
|
||||
<span class="doctitle">
|
||||
<a>
|
||||
<xsl:attribute name="href">
|
||||
<xsl:apply-templates select=".." mode="href"/>
|
||||
</xsl:attribute>
|
||||
|
||||
<xsl:if test=" $target != ''">
|
||||
<xsl:attribute name="target">
|
||||
<xsl:value-of select="$target"/>
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
|
||||
<xsl:value-of select="."/>
|
||||
</a>
|
||||
</span>
|
||||
<br/>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<xsl:template match="document/@description">
|
||||
<span class="docdescription">
|
||||
<xsl:value-of select="."/>
|
||||
</span>
|
||||
<br/>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<xsl:template match="document/@author">
|
||||
<span class="docauthor">
|
||||
<xsl:value-of select="."/>
|
||||
</span>
|
||||
<br/>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<xsl:template match="document/@create-date">
|
||||
<span class="doccreationdate">
|
||||
<xsl:value-of select="."/>
|
||||
</span>
|
||||
<br/>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<xsl:template match="document/@update-date">
|
||||
<span class="doclastchangeddate">
|
||||
<xsl:value-of select="."/>
|
||||
</span>
|
||||
<br/>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<xsl:template match="document/@filename">
|
||||
<span class="docfilename">
|
||||
<xsl:value-of select="."/>
|
||||
</span>
|
||||
<br/>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<xsl:template match="document/@format">
|
||||
<span class="docfileformatinfo">
|
||||
<xsl:value-of select="."/>
|
||||
</span>
|
||||
<br/>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<xsl:template match="document/@pages">
|
||||
<span class="docnumberofpages">
|
||||
<xsl:value-of select="."/>
|
||||
</span>
|
||||
<br/>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<xsl:template match="document/@size">
|
||||
<span class="docsizeinkb">
|
||||
<xsl:value-of select="."/>
|
||||
</span>
|
||||
<br/>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="document/@icon">
|
||||
<img src="images/{.}"/>
|
||||
<br/>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<!-- =============================
|
||||
HTML HEAD
|
||||
|
||||
this section should not be changed
|
||||
================================== -->
|
||||
|
||||
<xsl:template name="head">
|
||||
<head>
|
||||
<title>
|
||||
<xsl:value-of select="/session/general-info/@title"/>
|
||||
</title>
|
||||
<!-- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> -->
|
||||
<meta HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html; charset=UTF-8"/>
|
||||
<meta name="description" content="{/session/general-info/@description}"/>
|
||||
<meta name="keywords" content="{/session/general-info/@keywords}"/>
|
||||
<meta name="author" content="{/session/general-info/@author}"/>
|
||||
<meta name="email" content="{/session/general-info/@email}"/>
|
||||
<meta name="copyright" content="{/session/general-info/@copyright}"/>
|
||||
<!-- create date?
|
||||
update date?
|
||||
fav icon?
|
||||
-->
|
||||
<link href="style.css" rel="stylesheet" type="text/css"/>
|
||||
|
||||
</head>
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
||||
@ -0,0 +1,118 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--***********************************************************
|
||||
*
|
||||
* 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.
|
||||
*
|
||||
***********************************************************-->
|
||||
|
||||
|
||||
<!-- =================================================
|
||||
|
||||
This template is a skeleton for single level TOC pages
|
||||
with Frames : it generates the main index.html which contains
|
||||
the frameset.
|
||||
|
||||
Do not overwrite this ! copy it and complete the missing
|
||||
code.
|
||||
|
||||
I use the @ character whereever there is a missing code, so
|
||||
you can use a simple find to navigate and find the
|
||||
places...
|
||||
|
||||
====================================================== -->
|
||||
|
||||
<xsl:stylesheet version="1.0"
|
||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
xmlns="http://www.w3.org/1999/xhtml">
|
||||
|
||||
<xsl:output method = "html"
|
||||
media-type = "text/html"
|
||||
indent = "yes"
|
||||
doctype-public = "-//W3C//DTD HTML 4.0 Transitional//EN"
|
||||
omit-xml-declaration = "yes"
|
||||
standalone = "yes" />
|
||||
|
||||
<xsl:include href="../layout.xsl"/>
|
||||
|
||||
|
||||
<!-- =============================
|
||||
ROOT
|
||||
================================== -->
|
||||
|
||||
|
||||
<xsl:template match="/">
|
||||
<html>
|
||||
<xsl:call-template name="head"/>
|
||||
<xsl:call-template name="frameset"/>
|
||||
</html>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<!-- =============================
|
||||
HTML FRAMES
|
||||
================================== -->
|
||||
|
||||
|
||||
<xsl:template name="frameset">
|
||||
|
||||
<!--
|
||||
@ Add frameset here...
|
||||
|
||||
the following noframes tag is
|
||||
naturally optional.
|
||||
-->
|
||||
|
||||
<noframes/>
|
||||
|
||||
<!-- the body tag has no influance here,
|
||||
we add it for good style.
|
||||
-->
|
||||
|
||||
<body>
|
||||
</body>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<!-- =============================
|
||||
HTML HEAD
|
||||
|
||||
this section should not be changed
|
||||
================================== -->
|
||||
|
||||
<xsl:template name="head">
|
||||
<head>
|
||||
<title>
|
||||
<xsl:value-of select="/session/general-info/@title"/>
|
||||
</title>
|
||||
<!-- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> -->
|
||||
<meta HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html; charset=UTF-8"/>
|
||||
<meta name="description" content="{/session/general-info/@description}"/>
|
||||
<meta name="keywords" content="{/session/general-info/@keywords}"/>
|
||||
<meta name="author" content="{/session/general-info/@author}"/>
|
||||
<meta name="email" content="{/session/general-info/@email}"/>
|
||||
<meta name="copyright" content="{/session/general-info/@copyright}"/>
|
||||
<!-- create date?
|
||||
update date?
|
||||
fav icon?
|
||||
-->
|
||||
<link href="style.css" rel="stylesheet" type="text/css"/>
|
||||
|
||||
</head>
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
||||
@ -0,0 +1,287 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--***********************************************************
|
||||
*
|
||||
* 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.
|
||||
*
|
||||
***********************************************************-->
|
||||
|
||||
|
||||
|
||||
<xsl:stylesheet version="1.0"
|
||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
xmlns="http://www.w3.org/1999/xhtml">
|
||||
|
||||
<xsl:output method = "html"
|
||||
media-type = "text/html"
|
||||
indent = "yes"
|
||||
doctype-public = "-//W3C//DTD HTML 4.0 Transitional//EN"
|
||||
omit-xml-declaration = "yes"
|
||||
standalone = "yes" />
|
||||
|
||||
<xsl:include href="../layout.xsl"/>
|
||||
|
||||
|
||||
<!-- =============================
|
||||
ROOT
|
||||
================================== -->
|
||||
|
||||
|
||||
<xsl:template match="/">
|
||||
<html>
|
||||
<xsl:call-template name="head"/>
|
||||
<xsl:call-template name="body"/>
|
||||
</html>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<!-- =============================
|
||||
HTML BODY
|
||||
================================== -->
|
||||
|
||||
<xsl:template name="body">
|
||||
<body>
|
||||
<xsl:call-template name="title"/>
|
||||
<xsl:call-template name="toc"/>
|
||||
</body>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<xsl:template name="toc">
|
||||
<!--
|
||||
@ pre toc html here
|
||||
-->
|
||||
|
||||
<!-- use this to group documents, it
|
||||
is for example usefull when generating tables -->
|
||||
|
||||
<xsl:variable name="group" select="3"/>
|
||||
|
||||
<xsl:for-each select="/session/content/document[ ( ( position() - 1 ) mod $group ) = 0 ]">
|
||||
|
||||
<!--
|
||||
@ pre group html here
|
||||
-->
|
||||
|
||||
<xsl:call-template name="document-group">
|
||||
<xsl:with-param name="group" select="$group"/>
|
||||
</xsl:call-template>
|
||||
|
||||
<!--
|
||||
@ post group html here
|
||||
-->
|
||||
|
||||
</xsl:for-each>
|
||||
|
||||
|
||||
<!-- use this alternative if you do not need to use groups
|
||||
(uncomment to use - and do not forget to comment the group
|
||||
option above...)-->
|
||||
|
||||
<!--
|
||||
<xsl:apply-templates select="/session/content/document"/>
|
||||
-->
|
||||
|
||||
<!--
|
||||
@ post toc html here
|
||||
-->
|
||||
|
||||
</xsl:template>
|
||||
|
||||
<!-- also when using groups, in the end it comes
|
||||
to this template, which is called for each document -->
|
||||
<xsl:template match="document">
|
||||
<xsl:apply-templates select="@title"/>
|
||||
<xsl:apply-templates select="@description"/>
|
||||
<xsl:apply-templates select="@author"/>
|
||||
<xsl:apply-templates select="@create-date"/>
|
||||
<xsl:apply-templates select="@update-date"/>
|
||||
<xsl:apply-templates select="@filename"/>
|
||||
<xsl:apply-templates select="@format"/>
|
||||
<xsl:apply-templates select="@format-icon"/>
|
||||
<xsl:apply-templates select="@format-icon"/>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
|
||||
<xsl:template name="document-group">
|
||||
<xsl:param name="group"/>
|
||||
|
||||
<!-- @ pre group code here -->
|
||||
|
||||
<!-- - - -->
|
||||
|
||||
<xsl:variable name="count" select="(position() - 1) * $group + 1"/>
|
||||
|
||||
<xsl:for-each select="/session/content/document[$count <= position() and position() < ($count + $group)]">
|
||||
|
||||
<xsl:apply-templates select="."/>
|
||||
|
||||
</xsl:for-each>
|
||||
|
||||
<!-- @ post group code here -->
|
||||
|
||||
<!-- - - -->
|
||||
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<xsl:template name="title">
|
||||
<!--
|
||||
@ Pre title html code here
|
||||
-->
|
||||
|
||||
<xsl:value-of select="/session/general-info/@title"/>
|
||||
|
||||
<!--
|
||||
@ Post title html code here
|
||||
-->
|
||||
</xsl:template>
|
||||
|
||||
<!-- =============================
|
||||
Document properties
|
||||
|
||||
This section contains templates which
|
||||
give the document properties...
|
||||
|
||||
================================== -->
|
||||
|
||||
<!-- this tempaltes gives the
|
||||
relative href of the document. To use
|
||||
with the <a href="..."> attribute-->
|
||||
|
||||
|
||||
<xsl:template match="document" mode="href">
|
||||
<xsl:value-of select="concat(../@directory,'/')"/>
|
||||
<xsl:if test="@dir">
|
||||
<xsl:value-of select="concat(@dir,'/')"/>
|
||||
</xsl:if>
|
||||
<xsl:value-of select="@fn"/>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<xsl:template match="document/@title">
|
||||
<span class="doctitle">
|
||||
<a>
|
||||
<xsl:attribute name="href">
|
||||
<xsl:apply-templates select=".." mode="href"/>
|
||||
</xsl:attribute>
|
||||
|
||||
<xsl:value-of select="."/>
|
||||
</a>
|
||||
</span>
|
||||
<br/>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<xsl:template match="document/@description">
|
||||
<span class="docdescription">
|
||||
<xsl:value-of select="."/>
|
||||
</span>
|
||||
<br/>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<xsl:template match="document/@author">
|
||||
<span class="docauthor">
|
||||
<xsl:value-of select="."/>
|
||||
</span>
|
||||
<br/>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<xsl:template match="document/@create-date">
|
||||
<span class="doccreationdate">
|
||||
<xsl:value-of select="."/>
|
||||
</span>
|
||||
<br/>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<xsl:template match="document/@update-date">
|
||||
<span class="doclastchangeddate">
|
||||
<xsl:value-of select="."/>
|
||||
</span>
|
||||
<br/>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<xsl:template match="document/@filename">
|
||||
<span class="docfilename">
|
||||
<xsl:value-of select="."/>
|
||||
</span>
|
||||
<br/>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<xsl:template match="document/@format">
|
||||
<span class="docfileformatinfo">
|
||||
<xsl:value-of select="."/>
|
||||
</span>
|
||||
<br/>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<xsl:template match="document/@pages">
|
||||
<span class="docnumberofpages">
|
||||
<xsl:value-of select="."/>
|
||||
</span>
|
||||
<br/>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<xsl:template match="document/@size">
|
||||
<span class="docsizeinkb">
|
||||
<xsl:value-of select="."/>
|
||||
</span>
|
||||
<br/>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="document/@icon">
|
||||
<img src="images/{.}"/>
|
||||
<br/>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<!-- =============================
|
||||
HTML HEAD
|
||||
|
||||
this section should not be changed
|
||||
================================== -->
|
||||
|
||||
<xsl:template name="head">
|
||||
<head>
|
||||
<title>
|
||||
<xsl:value-of select="/session/general-info/@title"/>
|
||||
</title>
|
||||
<!-- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> -->
|
||||
<meta HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html; charset=UTF-8"/>
|
||||
<meta name="description" content="{/session/general-info/@description}"/>
|
||||
<meta name="keywords" content="{/session/general-info/@keywords}"/>
|
||||
<meta name="author" content="{/session/general-info/@author}"/>
|
||||
<meta name="email" content="{/session/general-info/@email}"/>
|
||||
<meta name="copyright" content="{/session/general-info/@copyright}"/>
|
||||
<!-- create date?
|
||||
update date?
|
||||
fav icon?
|
||||
-->
|
||||
<link href="style.css" rel="stylesheet" type="text/css"/>
|
||||
|
||||
</head>
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
||||
@ -0,0 +1,151 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--***********************************************************
|
||||
*
|
||||
* 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.
|
||||
*
|
||||
***********************************************************-->
|
||||
<!-- =================================================
|
||||
|
||||
This template is a skeleton for single level TOC pages
|
||||
Do not overwrite this ! copy it and complete the missing
|
||||
code.
|
||||
|
||||
I use the @ character whereever there is a missing code, so
|
||||
you can use a simple find to navigate and find the
|
||||
places...
|
||||
|
||||
====================================================== -->
|
||||
|
||||
<xsl:stylesheet version="1.0"
|
||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
xmlns="http://www.w3.org/1999/xhtml">
|
||||
|
||||
<xsl:output method = "html"
|
||||
media-type = "text/html"
|
||||
indent = "yes"
|
||||
doctype-public = "-//W3C//DTD HTML 4.0 Transitional//EN"
|
||||
omit-xml-declaration = "yes"
|
||||
standalone = "yes" />
|
||||
|
||||
|
||||
<xsl:include href="../layout.xsl"/>
|
||||
|
||||
|
||||
<!-- =============================
|
||||
HTML BODY
|
||||
================================== -->
|
||||
|
||||
<xsl:template name="body">
|
||||
<body>
|
||||
|
||||
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="tcolor">
|
||||
|
||||
<xsl:call-template name="title"/>
|
||||
<xsl:call-template name="toc"/>
|
||||
|
||||
</table>
|
||||
|
||||
</body>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<xsl:template name="toc">
|
||||
<!--
|
||||
@ pre toc html here
|
||||
-->
|
||||
<tr>
|
||||
<td width="30" class="ccolor"> 
|
||||
</td>
|
||||
<td>
|
||||
|
||||
<!-- use this alternative if you do not need to use groups
|
||||
(uncomment to use - and do not forget to comment the group
|
||||
option above...)-->
|
||||
|
||||
<xsl:apply-templates select="/session/content/document"/>
|
||||
|
||||
<!--
|
||||
@ post toc html here
|
||||
-->
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</xsl:template>
|
||||
|
||||
<!-- also when using groups, in the end it comes
|
||||
to this template, which is called for each document -->
|
||||
<xsl:template match="document">
|
||||
<p>
|
||||
<xsl:apply-templates select="@icon"/>
|
||||
|
||||
<xsl:apply-templates select="@title"/>
|
||||
<xsl:apply-templates select="@description"/>
|
||||
<xsl:apply-templates select="@author"/>
|
||||
<xsl:apply-templates select="@create-date"/>
|
||||
<xsl:apply-templates select="@update-date"/>
|
||||
<xsl:apply-templates select="@filename"/>
|
||||
<xsl:apply-templates select="@format"/>
|
||||
<xsl:apply-templates select="@format-icon"/>
|
||||
<xsl:apply-templates select="@format-icon"/>
|
||||
</p>
|
||||
|
||||
<xsl:if test="position() < last()">
|
||||
<hr/>
|
||||
</xsl:if>
|
||||
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="document-group">
|
||||
<xsl:param name="group"/>
|
||||
|
||||
<!-- @ pre group code here -->
|
||||
|
||||
<!-- - - -->
|
||||
|
||||
<xsl:variable name="count" select="(position() - 1) * $group + 1"/>
|
||||
|
||||
<xsl:for-each select="/session/content/document[$count <= position() and position() < ($count + $group)]">
|
||||
|
||||
<xsl:apply-templates select="."/>
|
||||
|
||||
</xsl:for-each>
|
||||
|
||||
<!-- @ post group code here -->
|
||||
|
||||
<!-- - - -->
|
||||
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<xsl:template name="title">
|
||||
<!--
|
||||
@ Pre title html code here
|
||||
-->
|
||||
<tr>
|
||||
<td height="80" colspan="2" class="toctitle">
|
||||
|
||||
<xsl:value-of select="/session/general-info/@title"/>
|
||||
|
||||
<!--
|
||||
@ Post title html code here
|
||||
-->
|
||||
</td>
|
||||
</tr>
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
||||
@ -0,0 +1,51 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--***********************************************************
|
||||
*
|
||||
* 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.
|
||||
*
|
||||
***********************************************************-->
|
||||
|
||||
|
||||
<!-- =================================
|
||||
|
||||
This templates creates a source.xml file
|
||||
which is identicall to the source xml tree
|
||||
used for the transformation.
|
||||
This is may be usefull for deveopement/debuging
|
||||
of layouts.
|
||||
|
||||
==================================== -->
|
||||
|
||||
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
xmlns:redirect="http://xml.apache.org/xalan/redirect"
|
||||
extension-element-prefixes="redirect">
|
||||
|
||||
<xsl:output method="xml"/>
|
||||
|
||||
|
||||
<xsl:template match="/">
|
||||
<xsl:apply-templates mode="copy"/>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="@*|node()" mode="copy">
|
||||
<xsl:copy>
|
||||
<xsl:apply-templates select="@*|node()" mode="copy"/>
|
||||
</xsl:copy>
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
||||
@ -0,0 +1,205 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--***********************************************************
|
||||
*
|
||||
* 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.
|
||||
*
|
||||
***********************************************************-->
|
||||
<!-- =================================================
|
||||
|
||||
This template is a skeleton for single level TOC pages
|
||||
Do not overwrite this ! copy it and complete the missing
|
||||
code.
|
||||
I use the @ character whereever there is a missing code, so
|
||||
you can use a simple find to navigate and find the
|
||||
places...
|
||||
====================================================== -->
|
||||
|
||||
<xsl:stylesheet version="1.0"
|
||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
xmlns="http://www.w3.org/1999/xhtml">
|
||||
|
||||
<xsl:output method = "html"
|
||||
media-type = "text/html"
|
||||
indent = "yes"
|
||||
doctype-public = "-//W3C//DTD HTML 4.0 Transitional//EN"
|
||||
omit-xml-declaration = "yes"
|
||||
standalone = "yes" />
|
||||
|
||||
<xsl:include href="../layout.xsl"/>
|
||||
|
||||
|
||||
<!-- =============================
|
||||
HTML BODY
|
||||
================================== -->
|
||||
|
||||
<xsl:template name="body">
|
||||
|
||||
<body>
|
||||
|
||||
<!--
|
||||
@ pre code here
|
||||
-->
|
||||
|
||||
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="tcolor">
|
||||
|
||||
<xsl:call-template name="title"/>
|
||||
|
||||
<!--
|
||||
@ inter code here
|
||||
-->
|
||||
|
||||
<xsl:call-template name="toc"/>
|
||||
|
||||
<!--
|
||||
@ post code here
|
||||
-->
|
||||
|
||||
</table>
|
||||
|
||||
</body>
|
||||
|
||||
</xsl:template>
|
||||
|
||||
|
||||
|
||||
|
||||
<xsl:template name="title">
|
||||
<!--
|
||||
@ Pre title html code here
|
||||
-->
|
||||
<tr>
|
||||
<td height="200%" colspan="7" class="toctitle">
|
||||
|
||||
<xsl:value-of select="/session/general-info/@title"/>
|
||||
|
||||
<!--
|
||||
@ Post title html code here
|
||||
-->
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<xsl:template name="toc">
|
||||
|
||||
<!-- @ pre toc html here -->
|
||||
|
||||
<!-- - - -->
|
||||
|
||||
<!-- use this to group documents, it
|
||||
is for example usefull when generating tables -->
|
||||
|
||||
|
||||
|
||||
<xsl:call-template name="toc-with-group">
|
||||
<xsl:with-param name="group" select="2"/>
|
||||
</xsl:call-template>
|
||||
|
||||
|
||||
<!-- use this alternative if you do not need to use groups
|
||||
(uncomment to use - and do not forget to comment the group
|
||||
option above...)-->
|
||||
|
||||
<!-- <xsl:apply-templates select="/session/content/document"/> -->
|
||||
|
||||
<!-- @ post toc html here -->
|
||||
|
||||
<!-- - - -->
|
||||
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<xsl:template name="toc-with-group">
|
||||
<xsl:param name="group"/>
|
||||
|
||||
<xsl:for-each select="/session/content/document[ ( ( position() - 1 ) mod $group ) = 0 ]">
|
||||
|
||||
<xsl:call-template name="document-group">
|
||||
<xsl:with-param name="group" select="$group"/>
|
||||
</xsl:call-template>
|
||||
|
||||
</xsl:for-each>
|
||||
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="document-group">
|
||||
<xsl:param name="group"/>
|
||||
|
||||
<!-- @ pre group code here -->
|
||||
|
||||
<tr>
|
||||
<td width="30" height="200" class="ccolor"></td>
|
||||
|
||||
<!-- - - -->
|
||||
|
||||
<xsl:variable name="count" select="(position() - 1) * $group + 1"/>
|
||||
|
||||
<xsl:for-each select="/session/content/document[$count <= position() and position() < ($count + $group)]">
|
||||
|
||||
<xsl:apply-templates select="."/>
|
||||
|
||||
<xsl:if test="last()=1 and position()=last()">
|
||||
<xsl:call-template name="empty-doc"/>
|
||||
</xsl:if>
|
||||
|
||||
</xsl:for-each>
|
||||
|
||||
<!-- @ post group code here -->
|
||||
|
||||
<td colspan="2" class="ccolor"></td>
|
||||
</tr>
|
||||
|
||||
<!-- - - -->
|
||||
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="empty-doc">
|
||||
<td width="50"> <p> </p></td>
|
||||
<td width="200"> <p> </p></td>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<!-- also when using groups, in the end it comes
|
||||
to this template, which is called for each document -->
|
||||
|
||||
<xsl:template match="document">
|
||||
<!-- file format icon -->
|
||||
|
||||
<td width="50"> <p>
|
||||
<xsl:apply-templates select="@icon"/>
|
||||
</p></td>
|
||||
|
||||
<td width="200"> <p>
|
||||
|
||||
<xsl:apply-templates select="@title"/>
|
||||
<xsl:apply-templates select="@description"/>
|
||||
<xsl:apply-templates select="@author"/>
|
||||
<xsl:apply-templates select="@create-date"/>
|
||||
<xsl:apply-templates select="@update-date"/>
|
||||
<xsl:apply-templates select="@filename"/>
|
||||
<xsl:apply-templates select="@format"/>
|
||||
<xsl:apply-templates select="@pages"/>
|
||||
<xsl:apply-templates select="@size"/>
|
||||
|
||||
</p> </td>
|
||||
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
||||
@ -0,0 +1,211 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--***********************************************************
|
||||
*
|
||||
* 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.
|
||||
*
|
||||
***********************************************************-->
|
||||
<!-- =================================================
|
||||
|
||||
This template is a skeleton for single level TOC pages
|
||||
Do not overwrite this ! copy it and complete the missing
|
||||
code.
|
||||
I use the @ character whereever there is a missing code, so
|
||||
you can use a simple find to navigate and find the
|
||||
places...
|
||||
====================================================== -->
|
||||
|
||||
<xsl:stylesheet version="1.0"
|
||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
xmlns="http://www.w3.org/1999/xhtml">
|
||||
|
||||
<xsl:output method = "html"
|
||||
media-type = "text/html"
|
||||
indent = "yes"
|
||||
doctype-public = "-//W3C//DTD HTML 4.0 Transitional//EN"
|
||||
omit-xml-declaration = "yes"
|
||||
standalone = "yes" />
|
||||
|
||||
<xsl:include href="../layout.xsl"/>
|
||||
|
||||
|
||||
<!-- =============================
|
||||
HTML BODY
|
||||
================================== -->
|
||||
|
||||
<xsl:template name="body">
|
||||
|
||||
<body>
|
||||
|
||||
<!--
|
||||
@ pre code here
|
||||
-->
|
||||
|
||||
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="tcolor">
|
||||
|
||||
<xsl:call-template name="title"/>
|
||||
|
||||
<!--
|
||||
@ inter code here
|
||||
-->
|
||||
|
||||
<xsl:call-template name="toc"/>
|
||||
|
||||
<!--
|
||||
@ post code here
|
||||
-->
|
||||
|
||||
</table>
|
||||
|
||||
</body>
|
||||
|
||||
</xsl:template>
|
||||
|
||||
|
||||
|
||||
|
||||
<xsl:template name="title">
|
||||
<!--
|
||||
@ Pre title html code here
|
||||
-->
|
||||
<tr>
|
||||
<td height="200%" colspan="9" class="toctitle">
|
||||
|
||||
<xsl:value-of select="/session/general-info/@title"/>
|
||||
|
||||
<!--
|
||||
@ Post title html code here
|
||||
-->
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<xsl:template name="toc">
|
||||
|
||||
<!-- @ pre toc html here -->
|
||||
|
||||
<!-- - - -->
|
||||
|
||||
<!-- use this to group documents, it
|
||||
is for example usefull when generating tables -->
|
||||
|
||||
|
||||
|
||||
<xsl:call-template name="toc-with-group">
|
||||
<xsl:with-param name="group" select="3"/>
|
||||
</xsl:call-template>
|
||||
|
||||
|
||||
<!-- use this alternative if you do not need to use groups
|
||||
(uncomment to use - and do not forget to comment the group
|
||||
option above...)-->
|
||||
|
||||
<!-- <xsl:apply-templates select="/session/content/document"/> -->
|
||||
|
||||
<!-- @ post toc html here -->
|
||||
|
||||
<!-- - - -->
|
||||
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<xsl:template name="toc-with-group">
|
||||
<xsl:param name="group"/>
|
||||
|
||||
<xsl:for-each select="/session/content/document[ ( ( position() - 1 ) mod $group ) = 0 ]">
|
||||
|
||||
<xsl:call-template name="document-group">
|
||||
<xsl:with-param name="group" select="$group"/>
|
||||
</xsl:call-template>
|
||||
|
||||
</xsl:for-each>
|
||||
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="document-group">
|
||||
<xsl:param name="group"/>
|
||||
|
||||
<!-- @ pre group code here -->
|
||||
|
||||
<tr>
|
||||
<td width="30" height="200" class="ccolor"></td>
|
||||
|
||||
<!-- - - -->
|
||||
|
||||
<xsl:variable name="count" select="(position() - 1) * $group + 1"/>
|
||||
|
||||
<xsl:for-each select="/session/content/document[$count <= position() and position() < ($count + $group)]">
|
||||
|
||||
<xsl:apply-templates select="."/>
|
||||
|
||||
<xsl:choose>
|
||||
<xsl:when test="last()=1 and position()=last()">
|
||||
<xsl:call-template name="empty-doc"/>
|
||||
<xsl:call-template name="empty-doc"/>
|
||||
</xsl:when>
|
||||
<xsl:when test="last()=2 and position()=last()">
|
||||
<xsl:call-template name="empty-doc"/>
|
||||
</xsl:when>
|
||||
</xsl:choose>
|
||||
|
||||
</xsl:for-each>
|
||||
|
||||
<!-- @ post group code here -->
|
||||
|
||||
<td colspan="2" class="ccolor"></td>
|
||||
</tr>
|
||||
|
||||
<!-- - - -->
|
||||
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="empty-doc">
|
||||
<td width="50"> <p> </p></td>
|
||||
<td width="200"> <p> </p></td>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<!-- also when using groups, in the end it comes
|
||||
to this template, which is called for each document -->
|
||||
|
||||
<xsl:template match="document">
|
||||
<!-- file format icon -->
|
||||
|
||||
<td width="50"> <p>
|
||||
<xsl:apply-templates select="@icon"/>
|
||||
</p></td>
|
||||
|
||||
<td width="200"> <p>
|
||||
|
||||
<xsl:apply-templates select="@title"/>
|
||||
<xsl:apply-templates select="@description"/>
|
||||
<xsl:apply-templates select="@author"/>
|
||||
<xsl:apply-templates select="@create-date"/>
|
||||
<xsl:apply-templates select="@update-date"/>
|
||||
<xsl:apply-templates select="@filename"/>
|
||||
<xsl:apply-templates select="@format"/>
|
||||
<xsl:apply-templates select="@pages"/>
|
||||
<xsl:apply-templates select="@size"/>
|
||||
|
||||
</p> </td>
|
||||
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
||||
@ -0,0 +1,210 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--***********************************************************
|
||||
*
|
||||
* 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.
|
||||
*
|
||||
***********************************************************-->
|
||||
<!-- =================================================
|
||||
|
||||
This template is a skeleton for single level TOC pages
|
||||
Do not overwrite this ! copy it and complete the missing
|
||||
code.
|
||||
|
||||
I use the @ character whereever there is a missing code, so
|
||||
you can use a simple find to navigate and find the
|
||||
places...
|
||||
|
||||
====================================================== -->
|
||||
<!DOCTYPE xsl:stylesheet [
|
||||
|
||||
<!ENTITY x1 "0">
|
||||
<!ENTITY x2 "250">
|
||||
<!ENTITY x3 "500">
|
||||
|
||||
<!ENTITY y1 "0">
|
||||
<!ENTITY y2 "150">
|
||||
<!ENTITY y3 "0">
|
||||
|
||||
|
||||
]>
|
||||
<xsl:stylesheet version="1.0"
|
||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
xmlns="http://www.w3.org/1999/xhtml">
|
||||
|
||||
<xsl:output method = "html"
|
||||
media-type = "text/html"
|
||||
indent = "yes"
|
||||
doctype-public = "-//W3C//DTD HTML 4.0 Transitional//EN"
|
||||
omit-xml-declaration = "yes"
|
||||
standalone = "yes" />
|
||||
|
||||
<xsl:include href="../layout.xsl"/>
|
||||
|
||||
<!-- =============================
|
||||
HTML BODY
|
||||
================================== -->
|
||||
|
||||
<xsl:template name="body">
|
||||
<body>
|
||||
<xsl:call-template name="title"/>
|
||||
<xsl:call-template name="toc"/>
|
||||
</body>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<xsl:template name="toc">
|
||||
<!--
|
||||
@ pre toc html here
|
||||
-->
|
||||
|
||||
<xsl:apply-templates select="/session/content/document"/>
|
||||
|
||||
<!--
|
||||
@ post toc html here
|
||||
-->
|
||||
|
||||
</xsl:template>
|
||||
|
||||
|
||||
|
||||
<!-- also when using groups, in the end it comes
|
||||
to this template, which is called for each document -->
|
||||
<xsl:template match="document">
|
||||
|
||||
<xsl:variable name="i" select="position() - 1"/>
|
||||
|
||||
<xsl:variable name="x1">
|
||||
<xsl:call-template name="x"/>
|
||||
</xsl:variable>
|
||||
|
||||
<xsl:variable name="x" select="number($x1) + 50 "/>
|
||||
|
||||
<xsl:variable name="y1">
|
||||
<xsl:call-template name="y"/>
|
||||
</xsl:variable>
|
||||
|
||||
<xsl:variable name="y" select="(floor($i div 3)) * 300 + number($y1) + 80 "/>
|
||||
|
||||
<div style="position:absolute; padding:15px; left:{$x}px; top:{$y}px; width:170px; height:220px; z-index:1" class="tcolor">
|
||||
<div align="center">
|
||||
|
||||
<xsl:apply-templates select="@icon"/>
|
||||
<p>
|
||||
<xsl:apply-templates select="@title"/>
|
||||
<xsl:apply-templates select="@description"/>
|
||||
<xsl:apply-templates select="@author"/>
|
||||
<xsl:apply-templates select="@create-date"/>
|
||||
<xsl:apply-templates select="@update-date"/>
|
||||
<xsl:apply-templates select="@filename"/>
|
||||
<xsl:apply-templates select="@format"/>
|
||||
<xsl:apply-templates select="@pages"/>
|
||||
<xsl:apply-templates select="@size"/>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="x">
|
||||
<xsl:variable name="i" select="position()"/>
|
||||
<xsl:choose>
|
||||
<xsl:when test="$i = 2">
|
||||
&x2;
|
||||
</xsl:when>
|
||||
<xsl:when test="$i = 3">
|
||||
&x3;
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:choose>
|
||||
<xsl:when test="($i mod 3) = 1">
|
||||
&x1;
|
||||
</xsl:when>
|
||||
<xsl:when test="($i mod 3) = 2">
|
||||
&x3;
|
||||
</xsl:when>
|
||||
<xsl:when test="($i mod 3) = 0">
|
||||
&x2;
|
||||
</xsl:when>
|
||||
</xsl:choose>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="y">
|
||||
<xsl:variable name="i" select="position()"/>
|
||||
<xsl:choose>
|
||||
<xsl:when test="$i = 2">
|
||||
&y2;
|
||||
</xsl:when>
|
||||
<xsl:when test="$i = 3">
|
||||
&y3;
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:choose>
|
||||
<xsl:when test="($i mod 3) = 1">
|
||||
&y1;
|
||||
</xsl:when>
|
||||
<xsl:when test="($i mod 3) = 2">
|
||||
&y3;
|
||||
</xsl:when>
|
||||
<xsl:when test="($i mod 3) = 0">
|
||||
&y2;
|
||||
</xsl:when>
|
||||
</xsl:choose>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<xsl:template name="document-group">
|
||||
<xsl:param name="group"/>
|
||||
|
||||
<!-- @ pre group code here -->
|
||||
|
||||
<!-- - - -->
|
||||
|
||||
<xsl:variable name="count" select="(position() - 1) * $group + 1"/>
|
||||
|
||||
<xsl:for-each select="/session/content/document[$count <= position() and position() < ($count + $group)]">
|
||||
|
||||
<xsl:apply-templates select="."/>
|
||||
|
||||
</xsl:for-each>
|
||||
|
||||
<!-- @ post group code here -->
|
||||
|
||||
<!-- - - -->
|
||||
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<xsl:template name="title">
|
||||
<!--
|
||||
@ Pre title html code here
|
||||
-->
|
||||
<div style="position:absolute; left:280px; top:8px; width:220px; z-index:2; padding:10px" class="ccolor">
|
||||
<div align="center" class="toctitle">
|
||||
<xsl:value-of select="/session/general-info/@title"/>
|
||||
 
|
||||
<!--
|
||||
@ Post title html code here
|
||||
-->
|
||||
</div>
|
||||
</div>
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
||||
Reference in New Issue
Block a user