diff options
Diffstat (limited to 'test/user-template/user/config/wizard/web/layouts')
21 files changed, 2179 insertions, 0 deletions
diff --git a/test/user-template/user/config/wizard/web/layouts/diagonal/index.html.xsl b/test/user-template/user/config/wizard/web/layouts/diagonal/index.html.xsl new file mode 100644 index 000000000000..516e35cb7dd1 --- /dev/null +++ b/test/user-template/user/config/wizard/web/layouts/diagonal/index.html.xsl @@ -0,0 +1,104 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<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> diff --git a/test/user-template/user/config/wizard/web/layouts/frame_bottom/index.html.xsl b/test/user-template/user/config/wizard/web/layouts/frame_bottom/index.html.xsl new file mode 100644 index 000000000000..9e6a892ffcdb --- /dev/null +++ b/test/user-template/user/config/wizard/web/layouts/frame_bottom/index.html.xsl @@ -0,0 +1,71 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<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> diff --git a/test/user-template/user/config/wizard/web/layouts/frame_bottom/mainframe.html b/test/user-template/user/config/wizard/web/layouts/frame_bottom/mainframe.html new file mode 100644 index 000000000000..ab1613b6d1dc --- /dev/null +++ b/test/user-template/user/config/wizard/web/layouts/frame_bottom/mainframe.html @@ -0,0 +1,7 @@ +<html> + <head> + <title></title> + <link href="style.css" rel="stylesheet" type="text/css"/> + </head> + <body></body> +</html> diff --git a/test/user-template/user/config/wizard/web/layouts/frame_bottom/tocframe.html.xsl b/test/user-template/user/config/wizard/web/layouts/frame_bottom/tocframe.html.xsl new file mode 100644 index 000000000000..b45cc81cf7e6 --- /dev/null +++ b/test/user-template/user/config/wizard/web/layouts/frame_bottom/tocframe.html.xsl @@ -0,0 +1,100 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- ================================================= + +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> diff --git a/test/user-template/user/config/wizard/web/layouts/frame_left/index.html.xsl b/test/user-template/user/config/wizard/web/layouts/frame_left/index.html.xsl new file mode 100644 index 000000000000..a3d0fe9c15d2 --- /dev/null +++ b/test/user-template/user/config/wizard/web/layouts/frame_left/index.html.xsl @@ -0,0 +1,71 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<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> diff --git a/test/user-template/user/config/wizard/web/layouts/frame_left/mainframe.html b/test/user-template/user/config/wizard/web/layouts/frame_left/mainframe.html new file mode 100644 index 000000000000..ab1613b6d1dc --- /dev/null +++ b/test/user-template/user/config/wizard/web/layouts/frame_left/mainframe.html @@ -0,0 +1,7 @@ +<html> + <head> + <title></title> + <link href="style.css" rel="stylesheet" type="text/css"/> + </head> + <body></body> +</html> diff --git a/test/user-template/user/config/wizard/web/layouts/frame_left/tocframe.html.xsl b/test/user-template/user/config/wizard/web/layouts/frame_left/tocframe.html.xsl new file mode 100644 index 000000000000..08048b517beb --- /dev/null +++ b/test/user-template/user/config/wizard/web/layouts/frame_left/tocframe.html.xsl @@ -0,0 +1,96 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- ================================================= + +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> diff --git a/test/user-template/user/config/wizard/web/layouts/frame_right/index.html.xsl b/test/user-template/user/config/wizard/web/layouts/frame_right/index.html.xsl new file mode 100644 index 000000000000..c4288f11705e --- /dev/null +++ b/test/user-template/user/config/wizard/web/layouts/frame_right/index.html.xsl @@ -0,0 +1,71 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<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> diff --git a/test/user-template/user/config/wizard/web/layouts/frame_right/mainframe.html b/test/user-template/user/config/wizard/web/layouts/frame_right/mainframe.html new file mode 100644 index 000000000000..ab1613b6d1dc --- /dev/null +++ b/test/user-template/user/config/wizard/web/layouts/frame_right/mainframe.html @@ -0,0 +1,7 @@ +<html> + <head> + <title></title> + <link href="style.css" rel="stylesheet" type="text/css"/> + </head> + <body></body> +</html> diff --git a/test/user-template/user/config/wizard/web/layouts/frame_right/tocframe.html.xsl b/test/user-template/user/config/wizard/web/layouts/frame_right/tocframe.html.xsl new file mode 100644 index 000000000000..69aaa5f38d24 --- /dev/null +++ b/test/user-template/user/config/wizard/web/layouts/frame_right/tocframe.html.xsl @@ -0,0 +1,99 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- ================================================= + +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> diff --git a/test/user-template/user/config/wizard/web/layouts/frame_top/index.html.xsl b/test/user-template/user/config/wizard/web/layouts/frame_top/index.html.xsl new file mode 100644 index 000000000000..bc056d2b3f65 --- /dev/null +++ b/test/user-template/user/config/wizard/web/layouts/frame_top/index.html.xsl @@ -0,0 +1,71 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<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> diff --git a/test/user-template/user/config/wizard/web/layouts/frame_top/mainframe.html b/test/user-template/user/config/wizard/web/layouts/frame_top/mainframe.html new file mode 100644 index 000000000000..ab1613b6d1dc --- /dev/null +++ b/test/user-template/user/config/wizard/web/layouts/frame_top/mainframe.html @@ -0,0 +1,7 @@ +<html> + <head> + <title></title> + <link href="style.css" rel="stylesheet" type="text/css"/> + </head> + <body></body> +</html> diff --git a/test/user-template/user/config/wizard/web/layouts/frame_top/tocframe.html.xsl b/test/user-template/user/config/wizard/web/layouts/frame_top/tocframe.html.xsl new file mode 100644 index 000000000000..1fe3e93fbef4 --- /dev/null +++ b/test/user-template/user/config/wizard/web/layouts/frame_top/tocframe.html.xsl @@ -0,0 +1,99 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- ================================================= + +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> diff --git a/test/user-template/user/config/wizard/web/layouts/layout.xsl b/test/user-template/user/config/wizard/web/layouts/layout.xsl new file mode 100644 index 000000000000..4502c2ad1c0d --- /dev/null +++ b/test/user-template/user/config/wizard/web/layouts/layout.xsl @@ -0,0 +1,204 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!--************************************************************************* + * + DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + + Copyright 2000, 2010 Oracle and/or its affiliates. + + OpenOffice.org - a multi-platform office productivity suite + + This file is part of OpenOffice.org. + + OpenOffice.org is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License version 3 + only, as published by the Free Software Foundation. + + OpenOffice.org is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License version 3 for more details + (a copy is included in the LICENSE file that accompanied this code). + + You should have received a copy of the GNU Lesser General Public License + version 3 along with OpenOffice.org. If not, see + <http://www.openoffice.org/license.html> + for a copy of the LGPLv3 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="doclastchangedate"> + <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> diff --git a/test/user-template/user/config/wizard/web/layouts/layoutF.xsl b/test/user-template/user/config/wizard/web/layouts/layoutF.xsl new file mode 100644 index 000000000000..8f12609b79e8 --- /dev/null +++ b/test/user-template/user/config/wizard/web/layouts/layoutF.xsl @@ -0,0 +1,122 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!--************************************************************************* + * + DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + + Copyright 2000, 2010 Oracle and/or its affiliates. + + OpenOffice.org - a multi-platform office productivity suite + + This file is part of OpenOffice.org. + + OpenOffice.org is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License version 3 + only, as published by the Free Software Foundation. + + OpenOffice.org is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License version 3 for more details + (a copy is included in the LICENSE file that accompanied this code). + + You should have received a copy of the GNU Lesser General Public License + version 3 along with OpenOffice.org. If not, see + <http://www.openoffice.org/license.html> + for a copy of the LGPLv3 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> diff --git a/test/user-template/user/config/wizard/web/layouts/layoutX.xsl b/test/user-template/user/config/wizard/web/layouts/layoutX.xsl new file mode 100644 index 000000000000..2c4ce08ff4c4 --- /dev/null +++ b/test/user-template/user/config/wizard/web/layouts/layoutX.xsl @@ -0,0 +1,291 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!--************************************************************************* + * + DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + + Copyright 2000, 2010 Oracle and/or its affiliates. + + OpenOffice.org - a multi-platform office productivity suite + + This file is part of OpenOffice.org. + + OpenOffice.org is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License version 3 + only, as published by the Free Software Foundation. + + OpenOffice.org is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License version 3 for more details + (a copy is included in the LICENSE file that accompanied this code). + + You should have received a copy of the GNU Lesser General Public License + version 3 along with OpenOffice.org. If not, see + <http://www.openoffice.org/license.html> + for a copy of the LGPLv3 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="doclastchangedate"> + <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> diff --git a/test/user-template/user/config/wizard/web/layouts/simple/index.html.xsl b/test/user-template/user/config/wizard/web/layouts/simple/index.html.xsl new file mode 100644 index 000000000000..43d6f78931e5 --- /dev/null +++ b/test/user-template/user/config/wizard/web/layouts/simple/index.html.xsl @@ -0,0 +1,131 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- ================================================= + +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> diff --git a/test/user-template/user/config/wizard/web/layouts/source.xml.xsl b/test/user-template/user/config/wizard/web/layouts/source.xml.xsl new file mode 100644 index 000000000000..4a9c471e7530 --- /dev/null +++ b/test/user-template/user/config/wizard/web/layouts/source.xml.xsl @@ -0,0 +1,55 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!--************************************************************************* + * + DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + + Copyright 2000, 2010 Oracle and/or its affiliates. + + OpenOffice.org - a multi-platform office productivity suite + + This file is part of OpenOffice.org. + + OpenOffice.org is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License version 3 + only, as published by the Free Software Foundation. + + OpenOffice.org is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License version 3 for more details + (a copy is included in the LICENSE file that accompanied this code). + + You should have received a copy of the GNU Lesser General Public License + version 3 along with OpenOffice.org. If not, see + <http://www.openoffice.org/license.html> + for a copy of the LGPLv3 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> diff --git a/test/user-template/user/config/wizard/web/layouts/table_2/index.html.xsl b/test/user-template/user/config/wizard/web/layouts/table_2/index.html.xsl new file mode 100644 index 000000000000..2ce0788a0c93 --- /dev/null +++ b/test/user-template/user/config/wizard/web/layouts/table_2/index.html.xsl @@ -0,0 +1,185 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- ================================================= + +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> diff --git a/test/user-template/user/config/wizard/web/layouts/table_3/index.html.xsl b/test/user-template/user/config/wizard/web/layouts/table_3/index.html.xsl new file mode 100644 index 000000000000..e5456121f688 --- /dev/null +++ b/test/user-template/user/config/wizard/web/layouts/table_3/index.html.xsl @@ -0,0 +1,191 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- ================================================= + +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> diff --git a/test/user-template/user/config/wizard/web/layouts/zigzag/index.html.xsl b/test/user-template/user/config/wizard/web/layouts/zigzag/index.html.xsl new file mode 100644 index 000000000000..4c19d31d29a4 --- /dev/null +++ b/test/user-template/user/config/wizard/web/layouts/zigzag/index.html.xsl @@ -0,0 +1,190 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- ================================================= + +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> |