Revision: 3775 Author: ksprotte URL: http://bknr.net/trac/changeset/3775
poi.xsl indentation cleanup
U trunk/projects/bos/payment-website/static/poi.xsl
Modified: trunk/projects/bos/payment-website/static/poi.xsl =================================================================== --- trunk/projects/bos/payment-website/static/poi.xsl 2008-09-02 15:59:30 UTC (rev 3774) +++ trunk/projects/bos/payment-website/static/poi.xsl 2008-09-03 08:23:07 UTC (rev 3775) @@ -1,47 +1,48 @@ <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="2.0" -xmlns:xsl="http://www.w3.org/1999/XSL/Transform%22%3E - <xsl:output method="html" doctype-system="http://www.w3.org/TR/html4/strict.dtd" doctype-public="-//W3C//DTD HTML 4.01//EN" indent="yes" /> + xmlns:xsl="http://www.w3.org/1999/XSL/Transform%22%3E + <xsl:output method="html" doctype-system="http://www.w3.org/TR/html4/strict.dtd" + doctype-public="-//W3C//DTD HTML 4.01//EN" indent="yes" /> <xsl:template match="/"> <html> - <head> - <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> - <link href="/static/poi/bos_style.css" rel="stylesheet"> - </link> - <link href="/static/poi/highslide.css" rel="stylesheet"> - </link> - <link href="http://createrainforest.org/rss/news" rel="alternate" title="RSS Feed" type="application/rss+xml"> - </link> - <script type="text/javascript" src="/static/poi/prototype.js"></script> - <script type="text/javascript" src="/static/poi/effects.js"></script> - <script type="text/javascript" src="/static/poi/accordion.js"></script> - <script type="text/javascript" src="/static/poi/highslide.js"></script> - <script type="text/javascript" src="/static/poi/panorama.js"></script> - <script type="text/javascript" src="/static/poi/functions.js"></script> - <title><xsl:value-of select="poi/@title"/></title> - </head> - <body> - <div id="content"> - <div id="header"> - <div id="menue_banner"> - <div id="menue_header_main"> - <div class="menue">|</div> - <xsl:apply-templates select="poi/menu/entry" /> - + <head> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> + <link href="/static/poi/bos_style.css" rel="stylesheet"> + </link> + <link href="/static/poi/highslide.css" rel="stylesheet"> + </link> + <link href="http://createrainforest.org/rss/news" rel="alternate" title="RSS Feed" + type="application/rss+xml"> + </link> + <script type="text/javascript" src="/static/poi/prototype.js"></script> + <script type="text/javascript" src="/static/poi/effects.js"></script> + <script type="text/javascript" src="/static/poi/accordion.js"></script> + <script type="text/javascript" src="/static/poi/highslide.js"></script> + <script type="text/javascript" src="/static/poi/panorama.js"></script> + <script type="text/javascript" src="/static/poi/functions.js"></script> + <title><xsl:value-of select="poi/@title"/></title> + </head> + <body> + <div id="content"> + <div id="header"> + <div id="menue_banner"> + <div id="menue_header_main"> + <div class="menue">|</div> + <xsl:apply-templates select="poi/menu/entry" /> + + </div> + </div> </div> + <div id="content_main"> + <div class="description_content"> + <div class="description_header"><xsl:value-of select="poi/@title"/></div> + <div class="description_subheader"><xsl:value-of select="poi/@subtitle"/></div> + <xsl:value-of select="poi/description"/> </div> + <xsl:apply-templates select="poi/media" /> + </div> + <div class="clearer"></div> </div> - </div> - <div id="content_main"> - <div class="description_content"> - <div class="description_header"><xsl:value-of select="poi/@title"/></div> - <div class="description_subheader"><xsl:value-of select="poi/@subtitle"/></div> - <xsl:value-of select="poi/description"/> </div> - <xsl:apply-templates select="poi/media" /> - - </div> - <div class="clearer"></div> - </div> - </body> + </body> </html> </xsl:template> <!--Anfang der templates--> @@ -63,7 +64,8 @@ <xsl:variable name="width"><xsl:value-of select="image/width"/></xsl:variable> <xsl:variable name="height"><xsl:value-of select="image/height"/></xsl:variable> <div class="accordion_toggle"><xsl:value-of select="@title"/>:<xsl:value-of select="@subtitle"/></div> - <div class="accordion_content"><img class="airal" src="{$url}" alt="{$title}" title="{$title}" height="{$height}" width="{$width}"></img></div> + <div class="accordion_content"><img class="airal" src="{$url}" alt="{$title}" title="{$title}" + height="{$height}" width="{$width}"></img></div> </xsl:if> <xsl:if test="@type='panorama'"> <xsl:variable name="id"><xsl:value-of select="image/@id"/></xsl:variable> @@ -72,10 +74,14 @@ <xsl:variable name="height"><xsl:value-of select="image/height"/></xsl:variable> <div class="accordion_toggle"><xsl:value-of select="@title"/>:<xsl:value-of select="@subtitle"/></div> <div class="accordion_content"> - <div class="scrollpane" style="border: 1px solid black; width: 600px; height:{$height}px; background-image: url({$url}); background-position: -690px 0px; background-repeat:repeat-x;" id="pano-{$id}"></div> + <div class="scrollpane" style="border: 1px solid black; width: 600px; + height:{$height}px; background-image: url({$url}); + background-position: -690px 0px; background-repeat:repeat-x;" + id="pano-{$id}"></div> <script type="text/javascript"> - var myPano = new Pano(); - myPano.scrollPano('<xsl:value-of select="image/url"/>', 690, <xsl:value-of select="image/height"/>, 'pano-<xsl:value-of select="image/@id"/>'); + var myPano = new Pano(); + myPano.scrollPano('<xsl:value-of select="image/url"/>', 690, + <xsl:value-of select="image/height"/>, 'pano-<xsl:value-of select="image/@id"/>'); </script> </div> </xsl:if> @@ -95,14 +101,16 @@ <xsl:template match="entry"> <xsl:variable name="title"><xsl:value-of select="@title"/></xsl:variable> <xsl:variable name="href"><xsl:value-of select="@href"/></xsl:variable> - <div class="menue"><a class="menuelink" href="{$href}" shape="rect" target="_blank" ><xsl:value-of select="$title"/></a></div> + <div class="menue"><a class="menuelink" href="{$href}" shape="rect" target="_blank" > + <xsl:value-of select="$title"/></a></div> <div class="menue">|</div> </xsl:template> <xsl:template match="image"> <xsl:variable name="id"><xsl:value-of select="@id"/></xsl:variable> <xsl:variable name="url"><xsl:value-of select="url"/></xsl:variable> <xsl:variable name="title"><xsl:value-of select="@title"/></xsl:variable> - <a id="thumb{$id}" href="{$url}" class="highslide" onClick="return hs.expand(this)"><img src="{$url}" alt="{$title}" title="{$title}" height="75" width="75"></img></a> + <a id="thumb{$id}" href="{$url}" class="highslide" onClick="return hs.expand(this)"> + <img src="{$url}" alt="{$title}" title="{$title}" height="75" width="75"></img></a> <div class='highslide-caption'> <div class="img-title"><xsl:value-of select="@title"/></div> <div class="img-subtitle"><xsl:value-of select="@subtitle"/></div>