Initial import.
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/styles/vym.css Sun Jan 30 12:59:10 2005 +0000
1.3 @@ -0,0 +1,104 @@
1.4 +html { font-family:arial,sans-serif; }
1.5 +body { margin:0; padding:10px; font-family:arial,sans-serif; align:center; background-color:#ffffff; }
1.6 +
1.7 +
1.8 +
1.9 +a, a:visited, a:link, a:active
1.10 + { color:#666666; text-decoration:none; }
1.11 +a:hover { text-decoration:underline; }
1.12 +
1.13 +/* VYM specific elements*/
1.14 +
1.15 +.vym-header{
1.16 + width:96%;
1.17 + padding:2%;
1.18 + margin-bottom:10px;
1.19 + border:solid 1px black;
1.20 + background-color:#f0f0f0;
1.21 + text-align:center;
1.22 + vertical-align:center;
1.23 + font-size: 2em;
1.24 +}
1.25 +.vym-imagemap{
1.26 + width:96%;
1.27 + padding:2%;
1.28 + margin-bottom:10px;
1.29 + border: 0px;
1.30 + text-align:center;
1.31 + vertical-align:center;
1.32 +}
1.33 +.vym-BoxBottom {
1.34 + padding:10px;
1.35 + font-size:0.7em;
1.36 + border:solid 1px black;
1.37 + margin:0;
1.38 + background-color:#f0f0f0;
1.39 +}
1.40 +.vym-BoxBottomR
1.41 +{
1.42 + padding-top:1em;
1.43 + color:#676767;
1.44 + text-align:right;
1.45 +}
1.46 +.vym-footer {
1.47 + width:100%;
1.48 + border:1;
1.49 +}
1.50 +.vym-footerL { font-size:0.7em; color:#676767; text-align:left; }
1.51 +.vym-footerC { font-size:0.7em; color:#676767; text-align:center; }
1.52 +.vym-footerR { font-size:0.7em; color:#676767; text-align:right; }
1.53 +
1.54 +.vym-url {}
1.55 +
1.56 +.vym-branch0 {
1.57 + color:#000000;
1.58 + font-size: x-large;
1.59 + font-weight: bold;
1.60 +}
1.61 +.vym-branch1{
1.62 + font-size: normal;
1.63 + font-weight: normal;
1.64 +}
1.65 +.vym-branch2{
1.66 + font-size: 0.5em;
1.67 + font-weight: normal;
1.68 +}
1.69 +.vym-branch3{
1.70 + font-size:0.5em;
1.71 + font-weight: normal;
1.72 +}
1.73 +.vym-branch4{
1.74 + font-size:0.5em;
1.75 + font-weight: normal;
1.76 +}
1.77 +.vym-branch5{
1.78 + font-size:0.5em;
1.79 + font-weight: normal;
1.80 +}
1.81 +.vym-branch6{
1.82 + font-size:0.5em;
1.83 + font-weight: normal;
1.84 +}
1.85 +.vym-branch7{
1.86 + font-size:0.5em;
1.87 + font-weight: normal;
1.88 +}
1.89 +
1.90 +.vym-htmlnote{
1.91 + width:96%;
1.92 + border: solid 1px black;
1.93 + border-color: #000000;
1.94 + background-color: #eeeeee;
1.95 + font-size: 0.5em;
1.96 + font-weight: normal;
1.97 + padding: 5px;
1.98 +}
1.99 +
1.100 +.vym-note {
1.101 + width:100%;
1.102 + border: solid 1px black;
1.103 + border-color: #000000;
1.104 + background-color: #eeeeee;
1.105 + font-size: 0.5em;
1.106 + font-weight: normal;
1.107 +}
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2.2 +++ b/styles/vym2xhtml.xsl Sun Jan 30 12:59:10 2005 +0000
2.3 @@ -0,0 +1,430 @@
2.4 +<?xml version="1.0" encoding="ISO-8859-1"?>
2.5 +<!DOCTYPE xsl:stylesheet
2.6 +[
2.7 + <!-- Namespace for XHTML -->
2.8 + <!ENTITY xhtmlns "http://www.w3.org/1999/xhtml">
2.9 +]>
2.10 +
2.11 +<!--
2.12 + Document : vym2xhtml.xsl
2.13 + Created : 20040818
2.14 + License : GPL
2.15 + Version : 0.3.4
2.16 + VYM version : 1.6.0
2.17 + Author : Thomas Schraitle <tom_schr@web.de>
2.18 + Description : transforms vym-files into XHTML.
2.19 + Bugs : Many. ;) Produces at the moment not valid XHTML
2.20 + Needs to checked.
2.21 +-->
2.22 +
2.23 +<xsl:stylesheet version="1.0"
2.24 + xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
2.25 + xmlns:date="http://exslt.org/dates-and-times"
2.26 + extension-element-prefixes="date"
2.27 + xmlns="&xhtmlns;">
2.28 +
2.29 +
2.30 +<xsl:output method="xml"
2.31 + doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"
2.32 + doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
2.33 + encoding="UTF-8"
2.34 + indent="yes"
2.35 + media-type="application/xhtml+xml"/>
2.36 +
2.37 +
2.38 +
2.39 +<!-- ====================================================================== -->
2.40 +<!-- 1 = true, 0 = false -->
2.41 +
2.42 +<!-- URL to CSS stylesheet -->
2.43 +<xsl:param name="css.stylesheet" select="'vym.css'"/>
2.44 +
2.45 +<!-- Should a default CSS stylesheet be used? -->
2.46 +<xsl:param name="use.default.css.stylesheet" select="1"/>
2.47 +
2.48 +<!-- Should textcolors be used? -->
2.49 +<xsl:param name="use.textcolor" select="0"/>
2.50 +
2.51 +<!-- Should an imagemap be generated? -->
2.52 +<xsl:param name="use.imagemap" select="1"/>
2.53 +
2.54 +<!-- URL to image for imagemap -->
2.55 +<xsl:param name="imagemap" select="''"/>
2.56 +
2.57 +<!-- This stylesheet is able to process the following VYM version -->
2.58 +<xsl:param name="vym.version" select="'1.6.0'"/>
2.59 +
2.60 +<!-- Should the VYM XML format be checked -->
2.61 +<xsl:param name="checkvym.version" select="1"/>
2.62 +
2.63 +<!-- Which is the image extension? -->
2.64 +<xsl:param name="image.extension" select="'.png'"/>
2.65 +
2.66 +<!-- Where are the flags? -->
2.67 +<xsl:param name="image.flags.path" select="'flags/'"/>
2.68 +
2.69 +<!-- Filename of the XML document -->
2.70 +<xsl:param name="mapname" />
2.71 +
2.72 +<!-- Should a footer be generated? -->
2.73 +<xsl:param name="use.footer" select="1"/>
2.74 +
2.75 +<!-- How should Links generated:
2.76 + name : Use only the name of the branch (default)
2.77 + url : Use only the URL of the branch
2.78 + both : Use both
2.79 +-->
2.80 +<xsl:param name="link.style" select="'name'"/>
2.81 +
2.82 +
2.83 +
2.84 +<!-- Debuggin on/off? -->
2.85 +<xsl:param name="debug" select="0"/>
2.86 +<xsl:template name="generate.footer">
2.87 + <xsl:if test="$use.footer">
2.88 + <hr/>
2.89 + <table class="vym-footer">
2.90 + <tr >
2.91 + <td class="vym-footerL"><xsl:value-of select="$mapname"/></td>
2.92 + <td class="vym-footerC"><xsl:value-of select="vymmap/@date"/> </td>
2.93 + <!--<td class="vym-footerC"><xsl:value-of select="date:date()"/></td>-->
2.94 + <td class="vym-footerR">vym <xsl:value-of select="vymmap/@version"/></td>
2.95 + </tr>
2.96 + </table>
2.97 + </xsl:if>
2.98 +</xsl:template>
2.99 +
2.100 +
2.101 +
2.102 +
2.103 +
2.104 +<!-- ====================================================================== -->
2.105 +<xsl:variable name="head.title">
2.106 + <xsl:choose>
2.107 + <xsl:when test="/vymmap/mapcenter/heading">
2.108 + <xsl:value-of select="normalize-space(/vymmap/mapcenter/heading)"/>
2.109 + </xsl:when>
2.110 + <xsl:otherwise></xsl:otherwise>
2.111 + </xsl:choose>
2.112 +</xsl:variable>
2.113 +
2.114 +
2.115 +<xsl:variable name="default.css.stylesheet">
2.116 + <xsl:text>
2.117 +h1 {border-width: 1; border: solid; text-align: center}
2.118 +div.imagemap { align: center; border: 0; }
2.119 + </xsl:text>
2.120 +</xsl:variable>
2.121 +
2.122 +
2.123 +<!-- ====================================================================== -->
2.124 +<xsl:template name="generate.head">
2.125 + <head>
2.126 + <title><xsl:value-of select="$head.title"/></title>
2.127 + <xsl:if test="$use.default.css.stylesheet">
2.128 + <style type="text/css">
2.129 + <xsl:value-of select="$default.css.stylesheet"/>
2.130 + </style>
2.131 + </xsl:if>
2.132 + <xsl:if test="vymmap/@author!=''">
2.133 + <meta name="author" content="{vymmap/@author}"/>
2.134 + </xsl:if>
2.135 + <xsl:if test="vymmap/@comment!=''">
2.136 + <meta name="comment" content="{vymmap/@comment}"/>
2.137 + </xsl:if>
2.138 + <meta name="generator" content="vym"/>
2.139 + <xsl:if test="$css.stylesheet!=''">
2.140 + <link rel="stylesheet" id="css.stylesheet" href="{$css.stylesheet}"/>
2.141 + </xsl:if>
2.142 + </head>
2.143 +</xsl:template>
2.144 +
2.145 +
2.146 +<xsl:template name="check.vym.version">
2.147 + <xsl:if test="$checkvym.version">
2.148 + <xsl:if test="not(/vymmap/@version=$vym.version)">
2.149 + <xsl:message>
2.150 + <xsl:text> </xsl:text>
2.151 + <xsl:text> WARNING:</xsl:text>
2.152 + <xsl:text> This stylesheet applies to VYM XML format v.</xsl:text>
2.153 + <xsl:value-of select="$vym.version"/>
2.154 + <xsl:text>. Your XML format has v</xsl:text>
2.155 + <xsl:value-of select="/vymmap/@version"/>
2.156 + <xsl:text>. Check your HTML output!</xsl:text>
2.157 + <xsl:text> </xsl:text>
2.158 + </xsl:message>
2.159 + </xsl:if>
2.160 + </xsl:if>
2.161 +</xsl:template>
2.162 +
2.163 +
2.164 +<!-- ====================================================================== -->
2.165 +<xsl:template match="*">
2.166 + <xsl:message>
2.167 + <xsl:text>WARNING: Unknown tag "</xsl:text>
2.168 + <xsl:value-of select="local-name(.)"/>
2.169 + <xsl:text>": </xsl:text>
2.170 + <xsl:value-of select="normalize-space(.)"/>
2.171 + <xsl:text> </xsl:text>
2.172 + </xsl:message>
2.173 +</xsl:template>
2.174 +
2.175 +
2.176 +<xsl:template match="/">
2.177 + <xsl:call-template name="check.vym.version"/>
2.178 +
2.179 + <html xmlns="&xhtmlns;">
2.180 + <xsl:call-template name="generate.head"/>
2.181 + <body>
2.182 + <xsl:apply-templates/>
2.183 + <xsl:call-template name="generate.footer"/>
2.184 +
2.185 + </body>
2.186 + </html>
2.187 +</xsl:template>
2.188 +
2.189 +
2.190 +<xsl:template match="vymmap">
2.191 + <div class="vymmap">
2.192 + <xsl:apply-templates/>
2.193 + </div>
2.194 +</xsl:template>
2.195 +
2.196 +
2.197 +<xsl:template match="mapcenter">
2.198 + <div class="mapcenter">
2.199 + <xsl:apply-templates/>
2.200 + </div>
2.201 +</xsl:template>
2.202 +
2.203 +
2.204 +<xsl:template match="mapcenter/heading">
2.205 + <div class="vym-header">
2.206 + <xsl:apply-templates/>
2.207 + </div>
2.208 +
2.209 + <xsl:if test="$use.imagemap=1">
2.210 + <div class="vym-imagemap">
2.211 + <img src="{$imagemap}"
2.212 + alt="Imagemap"
2.213 + class="imagemap"
2.214 + usemap="#vym_imagemap"/>
2.215 + </div>
2.216 + <map name="vym_imagemap">
2.217 + <xsl:apply-templates select="../branch" mode="imagemap"/>
2.218 + </map>
2.219 + </xsl:if>
2.220 +</xsl:template>
2.221 +
2.222 +
2.223 +<xsl:template match="mapcenter/branch">
2.224 + <hr/>
2.225 + <ul class="branch">
2.226 + <xsl:apply-templates/>
2.227 + </ul>
2.228 +</xsl:template>
2.229 +
2.230 +
2.231 +<xsl:template match="branch">
2.232 + <ul class="branch">
2.233 + <xsl:apply-templates/>
2.234 + </ul>
2.235 +</xsl:template>
2.236 +
2.237 +
2.238 +<xsl:template match="heading">
2.239 + <li class="heading">
2.240 + <span id="{generate-id(..)}">
2.241 + <xsl:if test="@textColor!='' and $use.textcolor=1">
2.242 + <xsl:attribute name="style" >color: <xsl:value-of select="@textColor" />
2.243 + </xsl:attribute>
2.244 + </xsl:if>
2.245 + <xsl:choose>
2.246 + <xsl:when test="../@url">
2.247 + <xsl:variable name="url" select="../@url"/>
2.248 +
2.249 + <!-- Check, how links should be generated -->
2.250 + <xsl:choose>
2.251 + <xsl:when test="$link.style = 'name'">
2.252 + <a href="{$url}">
2.253 + <img src="{concat($image.flags.path,'url.png')}" border="0" valign="middle" alt="URL"/>
2.254 + <xsl:apply-templates/>
2.255 + </a>
2.256 + </xsl:when>
2.257 + <xsl:when test="$link.style = 'url'">
2.258 + <a href="{$url}">
2.259 + <img src="{concat($image.flags.path,'url.png')}" border="0" valign="middle" alt="URL"/>
2.260 + <xsl:value-of select="$url"/>
2.261 + </a>
2.262 + </xsl:when>
2.263 + <xsl:when test="$link.style = 'both'">
2.264 + <a href="{$url}">
2.265 + <img src="{concat($image.flags.path,'url.png')}" border="0" valign="middle" alt="URL"/>
2.266 + <xsl:apply-templates/> ( <xsl:value-of select="$url"/>)
2.267 + </a>
2.268 + </xsl:when>
2.269 + <xsl:otherwise>
2.270 + <xsl:message>
2.271 + <xsl:text>WARNING: Parameter link.style doesn't contain the correct</xsl:text>
2.272 + <xsl:text> value (name|url|both)</xsl:text>
2.273 + <xsl:text> was "</xsl:text>
2.274 + <xsl:value-of select="$link.style"/>
2.275 + <xsl:text>"</xsl:text>
2.276 + </xsl:message>
2.277 + <a href="{$url}"><xsl:apply-templates/></a>
2.278 + </xsl:otherwise>
2.279 + </xsl:choose>
2.280 +
2.281 + </xsl:when>
2.282 + <xsl:otherwise>
2.283 + <xsl:apply-templates/>
2.284 + </xsl:otherwise>
2.285 + </xsl:choose>
2.286 +
2.287 + <xsl:for-each select="following-sibling::standardflag">
2.288 + <xsl:apply-templates select="current()" mode="standardflag"/>
2.289 + </xsl:for-each>
2.290 + </span>
2.291 + </li>
2.292 +</xsl:template>
2.293 +
2.294 +
2.295 +<xsl:template match="floatimage">
2.296 + <xsl:variable name="filename">
2.297 + <xsl:choose>
2.298 + <xsl:when test="contains(@href,':')">
2.299 + <xsl:value-of select="substring-after(@href,':')"/>
2.300 + </xsl:when>
2.301 + <xsl:otherwise>
2.302 + <xsl:value-of select="@href"/>
2.303 + </xsl:otherwise>
2.304 + </xsl:choose>
2.305 + </xsl:variable>
2.306 +
2.307 + <xsl:if test="@floatExport='true'">
2.308 + <span><img src="{$filename}" alt="{$filename}"/></span>
2.309 + </xsl:if>
2.310 +</xsl:template>
2.311 +
2.312 +
2.313 +<xsl:template match="standardflag"/><!-- Do nothing in normal mode -->
2.314 +
2.315 +<xsl:template match="standardflag" mode="standardflag">
2.316 + <span class="standardflag">
2.317 + <xsl:element name="img">
2.318 + <xsl:variable name="_srcimg">
2.319 + <xsl:choose>
2.320 + <xsl:when test="$image.flags.path">
2.321 + <xsl:value-of select="concat($image.flags.path,
2.322 + .,
2.323 + $image.extension)"/>
2.324 + </xsl:when>
2.325 + <xsl:otherwise>
2.326 + <xsl:value-of select="concat(., $image.extension)"/>
2.327 + </xsl:otherwise>
2.328 + </xsl:choose>
2.329 + </xsl:variable>
2.330 + <xsl:attribute name="src">
2.331 + <xsl:value-of select="$_srcimg"/>
2.332 + </xsl:attribute>
2.333 + <xsl:attribute name="alt">
2.334 + <xsl:value-of select="$_srcimg"/>
2.335 + </xsl:attribute>
2.336 + </xsl:element>
2.337 + </span>
2.338 +</xsl:template>
2.339 +
2.340 +<!-- Do nothing! -->
2.341 +<xsl:template match="select"/>
2.342 +<xsl:template match="setting"/>
2.343 +
2.344 +
2.345 +<xsl:template match="htmlnote">
2.346 + <div class="vym-htmlnote" >
2.347 + <xsl:apply-templates select=".//body/*"/><!-- Select only body elements -->
2.348 + </div>
2.349 +</xsl:template>
2.350 +
2.351 +<!-- Do nothing! We don't need some informational elements -->
2.352 +<xsl:template match="htmlnote/html/*"/>
2.353 +
2.354 +<xsl:template match="htmlnote/html/body">
2.355 + <xsl:copy-of select="."/>
2.356 +</xsl:template>
2.357 +
2.358 +<xsl:template match="htmlnote/html/body/*">
2.359 + <xsl:copy-of select="."/>
2.360 +</xsl:template>
2.361 +
2.362 +
2.363 +<!-- ====================================================================== -->
2.364 +<xsl:template match="branch" mode="imagemap">
2.365 + <xsl:param name="node"/>
2.366 + <xsl:variable name="title">
2.367 + <xsl:apply-templates mode="imagemap"/>
2.368 + </xsl:variable>
2.369 +
2.370 + <xsl:if test="$debug=1">
2.371 + <xsl:message>
2.372 + branch/heading = "<xsl:value-of select="normalize-space($title)"/>"
2.373 + x1, x2 = <xsl:value-of select="concat(@x1, '/', @x2)"/>
2.374 + y1, y2 = <xsl:value-of select="concat(@y1, '/', @y2)"/>
2.375 + </xsl:message>
2.376 + </xsl:if>
2.377 +
2.378 + <area shape="rect">
2.379 + <xsl:attribute name="href">
2.380 + <xsl:choose><!-- Fix begin (!) -->
2.381 + <xsl:when test="$imagemap != ''">
2.382 + <xsl:value-of select="concat('#', generate-id(.))"/>
2.383 + </xsl:when>
2.384 + <xsl:when test="$imagemap and @url">
2.385 + <xsl:value-of select="@url"/>
2.386 + </xsl:when>
2.387 + <xsl:when test="$imagemap and @vymLink">
2.388 + <xsl:value-of select="concat( substring-before(@vymLink,
2.389 +'.vym'), '.html')"/>
2.390 + </xsl:when>
2.391 + </xsl:choose><!-- Fix end -->
2.392 + </xsl:attribute>
2.393 + <xsl:attribute name="alt">
2.394 + <xsl:value-of select="normalize-space($title)"/>
2.395 + </xsl:attribute>
2.396 + <xsl:attribute name="title">
2.397 + <xsl:value-of select="normalize-space($title)"/>
2.398 + </xsl:attribute>
2.399 + <xsl:attribute name="coords">
2.400 + <xsl:choose>
2.401 + <xsl:when test="@x1!='' and @x2!='' and @y1!='' and @y2!=''">
2.402 + <xsl:value-of select="@x1"/>
2.403 + <xsl:text>,</xsl:text>
2.404 + <xsl:value-of select="@y1"/>
2.405 + <xsl:text>,</xsl:text>
2.406 + <xsl:value-of select="@x2"/>
2.407 + <xsl:text>,</xsl:text>
2.408 + <xsl:value-of select="@y2"/>
2.409 + </xsl:when>
2.410 + <xsl:otherwise>
2.411 + <!--
2.412 + <xsl:message>
2.413 + <xsl:text>ERROR: Some coordinates in branch are
2.414 +missing! </xsl:text>
2.415 + <xsl:text> See branch with </xsl:text>
2.416 + <xsl:value-of select="normalize-space($title)"/>
2.417 + </xsl:message>
2.418 + //-->
2.419 + </xsl:otherwise>
2.420 + </xsl:choose>
2.421 + </xsl:attribute>
2.422 + </area>
2.423 + <xsl:apply-templates select="./branch" mode="imagemap"/>
2.424 +</xsl:template>
2.425 +
2.426 +
2.427 +
2.428 +<xsl:template match="heading" mode="imagemap">
2.429 + <xsl:apply-templates mode="imagemap"/>
2.430 +</xsl:template>
2.431 +
2.432 +
2.433 +</xsl:stylesheet>
2.434 \ No newline at end of file
3.1 Binary file styles/wiki/answer.gif has changed
4.1 Binary file styles/wiki/point.gif has changed
5.1 Binary file styles/wiki/question.gif has changed