+ <variable name="params-string">
+ <choose>
+ <when test="starts-with($shebang, '#!lesml@')">
+ <value-of select="substring-after($shebang, '$')"/>
+ </when>
+ <otherwise>
+ <value-of select="substring-after($shebang, '#!lesml')"/>
+ </otherwise>
+ </choose>
+ </variable>
+ <variable name="params-fragment">
+ <html:dl>
+ <if test="starts-with($shebang, '#!lesml@') and contains($shebang, '$')">
+ <html:div>
+ <html:dt>
+ <text> LANG </text>
+ </html:dt>
+ <html:dd>
+ <value-of select="substring-before(substring-after($shebang, '#!lesml@'), '$')"/>
+ </html:dd>
+ </html:div>
+ </if>
+ <for-each select="exslstr:tokenize($params-string)">
+ <choose>
+ <when test="contains(., '=')">
+ <html:div>
+ <html:dt>
+ <value-of select="substring-before(., '=')"/>
+ </html:dt>
+ <html:dd>
+ <value-of select="substring-after(., '=')"/>
+ </html:dd>
+ </html:div>
+ </when>
+ <otherwise>
+ <html:div>
+ <html:dt>
+ <value-of select="."/>
+ </html:dt>
+ <html:dd/>
+ </html:div>
+ </otherwise>
+ </choose>
+ </for-each>
+ </html:dl>
+ </variable>
+ <variable name="params" select="exsl:node-set($params-fragment)/*"/>