Changeset 6768

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

Controle unicité du code des sm:part.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/Wsp_Modeling/spaces/ss/organisation/compositionPrim.ss.xml

    r6184 r6768  
    9393                                                <attrRef nm="iconTag" refUri="{.}"/> 
    9494                                        </xsl:for-each> 
     95                                        <xsl:for-each select="sm:structure//sm:part"> 
     96                                                <xsl:if test="preceding::sm:part[@code=current()/@code]"> 
     97                                                        <cPbs> 
     98                                                                <pb typ="Error" cd="partDouble" msg="Le code de part '{@code}' est spécifié deux fois."/> 
     99                                                        </cPbs> 
     100                                                </xsl:if> 
     101                                        </xsl:for-each> 
    95102                                </xsl:template> 
    96103                        </xsl:stylesheet>