Changeset 190
- Timestamp:
- 02/01/07 17:12:19 (1 year ago)
- Files:
-
- trunk/experiments/general/xsl/stub.xsl (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/experiments/general/xsl/stub.xsl
r189 r190 4 4 xmlns:xi="http://www.w3.org/2001/XInclude" 5 5 xmlns:stub="http://stubbles.org/stub" 6 exclude-result-prefixes="php xi stub">6 exclude-result-prefixes="php xi stub"> 7 7 8 <xsl:template match="stub:link">8 <xsl:template match="stub:link"> 9 9 <a> 10 10 <xsl:attribute name="href"> … … 16 16 </xsl:template> 17 17 18 <xsl:template match="stub:include">18 <xsl:template match="stub:include"> 19 19 <xsl:param name="href" select="@href"/> 20 20 <xsl:param name="part" select="@part"/> … … 26 26 </xsl:template> 27 27 28 <xsl:template match="stub:image">28 <xsl:template match="stub:image"> 29 29 <xsl:param name="src" select="@src"/> 30 <xsl:variable name="dimensions" select="php:function('stubXSLCallback::invoke', 'image', 'getImageDimensions', @src)/child::*"/>31 <img src="{$src}">32 <xsl:copy-of select="@style"/>33 <xsl:copy-of select="@alt"/>34 <xsl:copy-of select="@title"/>30 <xsl:variable name="dimensions" select="php:function('stubXSLCallback::invoke', 'image', 'getImageDimensions', @src)/child::*"/> 31 <img src="{$src}"> 32 <xsl:copy-of select="@style"/> 33 <xsl:copy-of select="@alt"/> 34 <xsl:copy-of select="@title"/> 35 35 <xsl:attribute name="width"><xsl:value-of select="$dimensions/width"/></xsl:attribute> 36 36 <xsl:attribute name="height"><xsl:value-of select="$dimensions/height"/></xsl:attribute> 37 37 </img> 38 38 </xsl:template> 39 39 40 40 </xsl:stylesheet>
