Short form of xsl:value-of element

XsltDb preprocess XSLT and allows you to use short form for the xsl:value-of element. So

Short XsltDb Syntax Regular XSLT syntax
{{ xpath }} <xsl:value-of select="xpath" />
{h{ xpath }} <xsl:value-of select="xpath" disable-output-escaping="yes" />
{j{ xpath }} <xsl:value-of select="mdo:js-encode(xpath)" />
{jh{ xpath }} <xsl:value-of select="mdo:js-encode(xpath)" disable-output-escaping="yes" />

If you need to output {{something}} - just use one more brace:
  • {{{something}}} for {{something}}
  • {{h{something}}} for {h{something}}

Attention! These rules aren't applied inside attributes.

Please, ensure you have version 02.00.34 or higher.


Last edited Feb 11, 2011 at 10:19 AM by findy, version 4

Comments

No comments yet.