summaryrefslogtreecommitdiffstats
path: root/libxslt/tests/REC/test-7.6.2-1.xsl
blob: 4eb9a80593732cb4e3097b468e049655722aa7ab (plain)
1
2
3
4
5
6
7
8
9
10
<xsl:stylesheet
  version="1.0"
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:variable name="image-dir">/images</xsl:variable>

<xsl:template match="photograph">
<img src="{$image-dir}/{href}" width="{size/@width}"/>
</xsl:template>
</xsl:stylesheet>