Changeset 6767

Show
Ignore:
Timestamp:
10/05/06 10:25:41 (4 years ago)
Author:
sys
Message:

Controle unicité du code des sm:part.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/Wsp_ModelingAssmnt/spaces/ss/assmnt/assmntCompositionPrim.ss.xml

    r6653 r6767  
    103103                                                <attrRef nm="iconTag" refUri="{.}"/> 
    104104                                        </xsl:for-each> 
     105                                        <xsl:for-each select="sm:structure//sm:part"> 
     106                                                <xsl:if test="preceding::sm:part[@code=current()/@code]"> 
     107                                                        <cPbs> 
     108                                                                <pb typ="Error" cd="partDouble" msg="Le code de part '{@code}' est spécifié deux fois."/> 
     109                                                        </cPbs> 
     110                                                </xsl:if> 
     111                                        </xsl:for-each> 
    105112                                </xsl:template> 
    106113                        </xsl:stylesheet>