Changeset 190

Show
Ignore:
Timestamp:
02/01/07 17:12:19 (1 year ago)
Author:
mikey
Message:

adjust to coding guidelines

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/experiments/general/xsl/stub.xsl

    r189 r190  
    44    xmlns:xi="http://www.w3.org/2001/XInclude" 
    55    xmlns:stub="http://stubbles.org/stub" 
    6   exclude-result-prefixes="php xi stub"> 
     6    exclude-result-prefixes="php xi stub"> 
    77   
    8    <xsl:template match="stub:link"> 
     8  <xsl:template match="stub:link"> 
    99    <a> 
    1010      <xsl:attribute name="href"> 
     
    1616  </xsl:template> 
    1717   
    18    <xsl:template match="stub:include">     
     18  <xsl:template match="stub:include">     
    1919    <xsl:param name="href" select="@href"/> 
    2020    <xsl:param name="part" select="@part"/>     
     
    2626  </xsl:template> 
    2727     
    28    <xsl:template match="stub:image"> 
     28  <xsl:template match="stub:image"> 
    2929    <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"/> 
    3535      <xsl:attribute name="width"><xsl:value-of select="$dimensions/width"/></xsl:attribute> 
    3636      <xsl:attribute name="height"><xsl:value-of select="$dimensions/height"/></xsl:attribute> 
    3737    </img> 
    3838  </xsl:template> 
    39      
     39 
    4040</xsl:stylesheet>