git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_BRANCH@195588 18797224-902f-48f8-a5cc-f745e15eee43
83 lines
1.5 KiB
XML
83 lines
1.5 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
|
|
|
>
|
|
|
|
<xsl:output method="html" />
|
|
|
|
<xsl:template match="/">
|
|
|
|
<body bgcolor="white">
|
|
<script>
|
|
__MODULE_ID__="";
|
|
var refName=null;
|
|
|
|
function _IG_RegisterOnloadHandler(refName) {
|
|
|
|
}
|
|
|
|
function _IG_Prefs(refName) {
|
|
this.getString = function (elName) {
|
|
return document.forms[elName].elements[elName].value;
|
|
}
|
|
this.getBool = function (elName) {
|
|
var stEl= document.forms[elName].elements[elName].value;
|
|
if(stEl=="true") { return true } else { return false }
|
|
}
|
|
}
|
|
|
|
|
|
</script>
|
|
|
|
<xsl:apply-templates select="/Module/UserPref" />
|
|
|
|
|
|
<xsl:for-each select="/Module/Content" >
|
|
<xsl:value-of select="." />
|
|
</xsl:for-each>
|
|
|
|
|
|
|
|
</body>
|
|
</xsl:template>
|
|
|
|
<xsl:template match="/Module/UserPref">
|
|
|
|
<form style='display:none'>
|
|
<xsl:attribute name="name">
|
|
<xsl:value-of select="@name"/>
|
|
</xsl:attribute>
|
|
<input>
|
|
<xsl:attribute name="name">
|
|
<xsl:value-of select="@name"/>
|
|
</xsl:attribute>
|
|
<xsl:attribute name="value">
|
|
<xsl:value-of select="@default_value"/>
|
|
</xsl:attribute>
|
|
|
|
</input>
|
|
|
|
<xsl:apply-templates select="EnumValue" />
|
|
|
|
</form>
|
|
|
|
</xsl:template>
|
|
|
|
|
|
<xsl:template match="EnumValue">
|
|
<input>
|
|
<xsl:attribute name="name">
|
|
<xsl:value-of select="../@name"/>
|
|
</xsl:attribute>
|
|
<xsl:attribute name="value">
|
|
<xsl:value-of select="@value"/>
|
|
</xsl:attribute>
|
|
</input>
|
|
</xsl:template>
|
|
|
|
|
|
</xsl:stylesheet>
|
|
|
|
|