XSLT help

Olivier Hallot olivier.hallot at libreoffice.org
Fri Feb 19 19:41:16 UTC 2016


Hi

The expression below is supposed to generate an output like <h1>, <h2>,
... depending on the value of $level [1]

<xsl:text disable-output-escaping="yes"><h</xsl:text>
<xsl:value-of select="$level"/>
<xsl:text disable-output-escaping="yes">></xsl:text>

However, per [2] the expression will not work for Nestcape 6, and indeed
does not work on Firefox, but work in Rekonq (KHTML engine).

I am running short ideas to output the string '<h2>', '<h3>' that
overcomes the limitation of firefox on the elegant solution above with
$level

Any ideas appreciated.

[1] This piece of code if in main_transform.xsl
[2] http://www.w3schools.com/xsl/el_text.asp

-- 
Olivier Hallot
Comunidade LibreOffice
http://ask.libreoffice.org/pt-br


More information about the LibreOffice mailing list