XSLT cheatsheet

<xsl:value-of select="key('field-value', 'EANTAL')" />

<xsl:element name="input">
 <xsl:attribute name="id">AKTEST2</xsl:attribute>

<xsl:if test="/lxml:data/lxml:fields/lxml:field[@name='AKTEST2']/lxml:value = 'J'">
 <xsl:attribute name="checked" />
</xsl:if>

<xsl:choose>
  <xsl:when test="expression">
    ... some output ...
  </xsl:when>
  <xsl:otherwise>
    ... some output ....
  </xsl:otherwise>
</xsl:choose>
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s