yolanda/trunk/xsl/xhtml/settings.xsl

69 lines
2.1 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet version="1.0"
xmlns="http://www.w3.org/1999/xhtml"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://web.resource.org/cc/"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
>
<xsl:template name="settings">
<div class="settingsform">
<span class="heading">
<xsl:value-of select="$locale_strings[@id='settings_heading']" />
<xsl:value-of select="//page/@username" />
</span>
<form method="POST">
<xsl:attribute name="action">
<xsl:value-of select="$site_strings[@id='path_settings']" />
</xsl:attribute>
<xsl:value-of select="$locale_strings[@id='settings_instruction_locale']" />
<br />
<select name="locale" size="2">
<option value="en-us">
<xsl:if test="//settings/@locale='en-us'">
<xsl:attribute name="selected">
selected
</xsl:attribute>
</xsl:if>
<xsl:value-of select="$locale_strings[@id='language_en-us']" />
</option>
<option value="de-de">
<xsl:if test="//settings/@locale='de-de'">
<xsl:attribute name="selected">
selected
</xsl:attribute>
</xsl:if>
<xsl:value-of select="$locale_strings[@id='language_de-de']" />
</option>
</select>
<br />
<xsl:value-of select="$locale_strings[@id='settings_instruction_pagesize']" />
<br />
<input name="pagesize" type="text" size="7">
<xsl:attribute name="value">
<xsl:value-of select="//settings/@pagesize" />
</xsl:attribute>
</input>
<br />
<input name="submit" type="submit" />
</form>
</div>
</xsl:template>
</xsl:stylesheet>