를 사용하여 XML 노드 값에서 선행 0을 제거하고, 두 조직 반환 계정 세부 정보를, 그러나,이 accountNumber에 추가 앞에 0을 추가 내 코드 그렇게되는 방법 요청 및 응답 계정 번호를 비교할 때 실패합니다. xslt를 사용하여 아래 xml에서 여분의 0을 제거 할 수있는 방법이 있습니까?내가 다른 조직에서 계정 정보를 얻을 수있는 두 개의 호출을하고 내 ENV에서 XSLT
<EAI>
<SvcRS>
<accountHeader>
<errorHost>orgA</errorHost>
</accountHeader>
<accoutnDetails>
<accountNumber>0000000111118800</accountNumber>
<accountType>credit</accountType>
<errorDetails>
<code>111</code>
<description>Account is not valid</description>
</errorDetails>
</accoutnDetails>
</SvcRS>
<SvcRS>
<accountHeader>
<errorHost>orgB</errorHost>
</accountHeader>
<accoutnDetails>
<accountNumber>000111118800</accountNumber>
<accountType>credit</accountType>
<errorDetails>
<code>0001</code>
<description>Not enough balance</description>
</errorDetails>
</accoutnDetails>
</SvcRS>
</EAI>
감사합니다,
/당신이 XSLT의 버전을 사용할 수 있습니다 당신이 사용합니까? 그 'accountNumber' 항상 정수 번호 또는 문자를 포함 할 수 있습니까? –
xslt 1.0 또는 2.0을 사용할 수 있습니다. accountNumber는 항상 정수 값 –
입니다. @kekukeku 형식 번호 기능을 사용할 수 있습니다. 내 대답은 아래를 참조하십시오. –