Changeset 6474


Ignore:
Timestamp:
09/07/06 17:58:44 (5 years ago)
Author:
anp
Message:

correction bug avec @prefixIfExist

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Wsp_Modeling/spaces/gen/modelBuilder/bs.doss/sm_dataFormXhtmlTransf.xml

    r5459 r6474  
    156156                                        </xsl:template> 
    157157                                        <xsl:template match="sm:fieldValue[@prefixIfExist or @suffixIfExist]"> 
    158                                                 <c:if type="xpath-statique" test="sp:{@refCode}"><xsl:value-of select="@prefixIfExist"/><c:donnee type="xpath-statique">sp:<xsl:value-of select="@refCode"/></c:donnee><xsl:value-of select="@suffixIfExist"/></c:if> 
     158                                                <c:if type="xpath-statique" test="boolean(sp:{@refCode})"><xsl:value-of select="@prefixIfExist"/><c:donnee type="xpath-statique">sp:<xsl:value-of select="@refCode"/></c:donnee><xsl:value-of select="@suffixIfExist"/></c:if> 
    159159                                        </xsl:template> 
    160160                                        <xsl:template match="sm:fieldValue"> 
     
    235235                                        </xsl:template> 
    236236                                        <xsl:template match="sm:fieldValue[@prefixIfExist or @suffixIfExist]"> 
    237                                                 <c:if type="xpath-statique" test="sp:{@refCode}"><xsl:value-of select="@prefixIfExist"/><c:donnee type="xpath-statique">sp:<xsl:value-of select="@refCode"/></c:donnee><xsl:value-of select="@suffixIfExist"/></c:if> 
     237                                                <c:if type="xpath-statique" test="boolean(sp:{@refCode})"><xsl:value-of select="@prefixIfExist"/><c:donnee type="xpath-statique">sp:<xsl:value-of select="@refCode"/></c:donnee><xsl:value-of select="@suffixIfExist"/></c:if> 
    238238                                        </xsl:template> 
    239239                                        <xsl:template match="sm:fieldValue"> 
Note: See TracChangeset for help on using the changeset viewer.