Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/Stylesheets
diff options
context:
space:
mode:
authorWalter Bender <walter@walter-laptop.(none)>2009-01-15 16:58:52 (GMT)
committer Walter Bender <walter@walter-laptop.(none)>2009-01-15 16:58:52 (GMT)
commiteb4dfd4db9b8ae05ae95f3cfd72ee0bea4145a48 (patch)
tree0c535775e5d9c89e6187b7d1026c0b3c2ed2aef2 /Stylesheets
creating infoslicer project
Diffstat (limited to 'Stylesheets')
-rw-r--r--Stylesheets/ditastyle.css45
-rw-r--r--Stylesheets/ditastylesheet.xsl92
-rw-r--r--Stylesheets/mapstyle.css46
-rw-r--r--Stylesheets/mapstylesheet.xsl24
4 files changed, 207 insertions, 0 deletions
diff --git a/Stylesheets/ditastyle.css b/Stylesheets/ditastyle.css
new file mode 100644
index 0000000..1e6db73
--- /dev/null
+++ b/Stylesheets/ditastyle.css
@@ -0,0 +1,45 @@
+/* Copyright (C) IBM Corporation 2008 */
+body
+{
+background-color: #f6f6f6; /* sets the background colour for the page */
+color: #000000; /* sets the default font colour for the page */
+}
+
+p,li
+{
+font-family: arial, 'sans serif'; /* sets font */
+color: #000000; /* sets font color */
+}
+
+h1
+{
+background-color: #0000bb; /* set the background for the h1 header */
+color: #ffffff; /* sets the font colour for the h1 header */
+text-align: center; /* aligns text in the centre of the page */
+}
+
+h2,h3,h4
+{
+color: #0000dd; /* sets the font colour for the header elements */
+}
+
+img
+{
+border-style: none; /* removes the boarder around linked images */
+}
+
+a:link
+{
+color: #990000; /* sets the font colour for a:link */
+}
+
+a:visited, a:active
+{
+color: #ff5555; /* sets the font colour for these elements */
+}
+
+a:hover
+{
+color: #ff0000; /* sets the font colour for a:hover */
+}
+
diff --git a/Stylesheets/ditastylesheet.xsl b/Stylesheets/ditastylesheet.xsl
new file mode 100644
index 0000000..680fd86
--- /dev/null
+++ b/Stylesheets/ditastylesheet.xsl
@@ -0,0 +1,92 @@
+<!-- Copyright (C) IBM Corporation 2008 -->
+<?xml version="1.0"?>
+<html xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xsl:version="1.0">
+<head>
+ <title><xsl:value-of select="reference/title" /></title>
+ <link rel="stylesheet" type="text/css" href="ditastyle.css" title="Selected Stylesheet" />
+</head>
+<body>
+ <p>
+ <a href="librarymap.ditamap">Return to index</a>
+ </p>
+ <h1>
+ <xsl:value-of select="reference/title" />
+ </h1>
+
+ <p>
+ <xsl:copy-of select="reference/shortdesc" />
+ <xsl:if test="contains(reference/section/p/@id,'shortdesc')">
+ <xsl:for-each select="reference/section/p">
+ <xsl:for-each select="image">
+ <img>
+ <xsl:attribute name="src">
+ <xsl:value-of select="@href" />
+ </xsl:attribute>
+ </img>
+ </xsl:for-each>
+ <xsl:copy-of select="ph" />
+ </xsl:for-each>
+ </xsl:if>
+ </p>
+
+ <xsl:for-each select="reference/refbody">
+ <p>
+ <xsl:copy-of select="p" />
+ </p>
+ </xsl:for-each>
+
+ <xsl:for-each select="reference/reference">
+ <h2>
+ <xsl:value-of select="title" />
+ </h2>
+
+ <xsl:for-each select="refbody">
+ <h3>
+ <xsl:value-of select="title" />
+ </h3>
+ <p>
+ <xsl:value-of select="p" />
+ </p>
+ </xsl:for-each>
+
+ <xsl:for-each select="refbody/section">
+ <h3>
+ <xsl:value-of select="title" />
+ </h3>
+ <xsl:for-each select="p">
+ <p>
+ <xsl:for-each select="image">
+ <img>
+ <xsl:attribute name="src">
+ <xsl:value-of select="@href" />
+ </xsl:attribute>
+ </img>
+ </xsl:for-each>
+ <xsl:copy-of select="ph" />
+ </p>
+ </xsl:for-each>
+ </xsl:for-each>
+<xsl:comment>
+ <xsl:copy-of select="refbody/section/ul" />
+ <xsl:copy-of select="refbody/section/ol" />
+</xsl:comment>
+ </xsl:for-each>
+
+ <xsl:if test="not(contains(reference/section/p/@id,'shortdesc'))">
+ <xsl:for-each select="reference">
+ <xsl:for-each select="section/p">
+ <p>
+ <xsl:for-each select="image">
+ <img>
+ <xsl:attribute name="src">
+ <xsl:value-of select="@href" />
+ </xsl:attribute>
+ </img>
+ </xsl:for-each>
+ <xsl:copy-of select="ph" />
+ </p>
+ </xsl:for-each>
+ </xsl:for-each>
+ </xsl:if>
+</body>
+</html>
diff --git a/Stylesheets/mapstyle.css b/Stylesheets/mapstyle.css
new file mode 100644
index 0000000..a8fe772
--- /dev/null
+++ b/Stylesheets/mapstyle.css
@@ -0,0 +1,46 @@
+/* Copyright (C) IBM Corporation 2008 */
+
+body
+{
+background-color: #f6f6f6; /* sets the background colour for the page */
+color: #000000; /* sets the default font colour for the page */
+}
+
+p,li
+{
+font-family: arial, 'sans serif'; /* sets font */
+color: #000000; /* sets font color */
+}
+
+h1
+{
+background-color: #0000bb; /* set the background for the h1 header */
+color: #ffffff; /* sets the font colour for the h1 header */
+text-align: center; /* aligns text in the centre of the page */
+}
+
+h2,h3,h4
+{
+color: #0000dd; /* sets the font colour for the header elements */
+}
+
+img
+{
+border-style: none; /* removes the boarder around linked images */
+}
+
+a:link
+{
+color: #990000; /* sets the font colour for a:link */
+}
+
+a:visited, a:active
+{
+color: #ff5555; /* sets the font colour for these elements */
+}
+
+a:hover
+{
+color: #ff0000; /* sets the font colour for a:hover */
+}
+
diff --git a/Stylesheets/mapstylesheet.xsl b/Stylesheets/mapstylesheet.xsl
new file mode 100644
index 0000000..1e207a8
--- /dev/null
+++ b/Stylesheets/mapstylesheet.xsl
@@ -0,0 +1,24 @@
+<!-- Copyright (C) IBM Corporation 2008 -->
+<?xml version="1.0"?>
+<html xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xsl:version="1.0">
+<head>
+ <title><xsl:value-of select="map/@title" /></title>
+ <link rel="stylesheet" type="text/css" href="mapstyle.css" title="Selected Stylesheet" />
+</head>
+<body>
+ <h1>
+ <xsl:value-of select="map/@title" />
+ </h1>
+
+ <xsl:for-each select="map">
+ <li>
+ <xsl:for-each select="topicref">
+ <ul><a><xsl:attribute name="href">
+ <xsl:value-of select="@href" />
+ </xsl:attribute>
+ <xsl:value-of select="@navtitle" /></a></ul>
+ </xsl:for-each>
+ </li>
+ </xsl:for-each>
+</body>
+</html>