다음 요소를 지역화 할 수있는 값 (기본적으로 영어 구)을 제외하고 동일한 요소와 속성을 가진 XML로 변환해야합니다.XSL은 요소 및 특성 값만 필터링하는 XML을 변환합니까?
일부 요소 (<footnote>
)와 속성은 선택 사항이며 (<display_data_type>
), 각 요소에 대한 템플릿이 없어도이를 일반적으로 수행하고 싶습니다. 그게 가능하니?
궁극적 인 목표는 지역화 된 문자열을 무시하고 XML의 기본 버전을 현지화 된 버전과 비교할 수 있도록하는 것입니다. 예를 들어
다음
<data_schema>
<field symbol="ACCOUNT" type="string" name="Account Number">
<validators>
<maxlength>6</maxlength>
</validators>
<description>The account number</description>
<example>123456</example>
<default_value></default_value>
</field>
<field symbol="POSTAL_CODE" type="string" name="Postal Code">
<description>Postal Code for account</description>
<example>22022</example>
<footnote>Does not apply to certain accounts</footnote>
<default_value></default_value>
</field>
<field symbol="DISCOUNT" type="string" name="Discount Percentage" display_data_type="percentage">
<description>Descount determined by account</description>
<example>1.5%</example>
<default_value></default_value>
</field>
</data_schema>
는로 변환 할 것이다 :
<data_schema>
<field symbol="ACCOUNT" type="string" name="">
<validators>
<maxlength>6</maxlength>
</validators>
<description/>
<example/>
<default_value/>
</field>
<field symbol="POSTAL_CODE" type="string" name="">
<description/>
<example/>
<footnote/>
<default_value/>
</field>
<field symbol="DISCOUNT" type="string" name="" display_data_type="percentage">
<description/>
<example/>
<default_value/>
</field>
</data_schema>
지역화 할 수있는 질문은 중요하지 않습니다. 요소 나 속성을 제외한 모든 예가 허용됩니다. 그리고 문제가된다면 어떤 특정 요소가 지역화 가능한지를 보여주는 예제 입력과 출력. – Glenn