2016-12-07 3 views
0

내가 두 XSL 변수이를 찾기 위해 두 개의 XSL 변수를 비교 :는 차이

<xsl:variable name="nutrientDetail"> 
    <value>nutrientTypeCode</value> 
    <value>dailyValueIntakePercent</value> 
    <value>measurementPrecision</value> 
    <value>quantityContained</value> 
</xsl:variable> 



    <xsl:variable name="nutrientDetailArray"> 
     <v>nutrientTypeCode</v> 
     <v>measurementPrecision</v> 
     <v>quantityContained</v> 
    </xsl:variable> 

내가 그것을 어떻게해야합니까 드문 하나를 찾으려면? 즉, 의 경우 dailyValueIntakePercent를 추출하고 그 요소를 만들어야합니다.

답변

0

<xsl:copy-of select="$nutrientDetail/value[not(. = $nutrientDetailArray/v)]"/>v 요소가 두 번째 변수와 동일하지 않은 첫 번째 변수에서 value 요소를 복사합니다.