1
일부 요소를 그룹화하고 새 요소 아래에 함께 가져와야합니다.xslt의 새 노드 아래에 요소 그룹화
다음은 샘플 레코드입니다. 주소 정보를 추가 레이어로 그룹화하고 싶습니다.
여기에 원래의 기록이다 -
<Records>
<People>
<FirstName>John</FirstName>
<LastName>Doe</LastName>
<Middlename />
<Age>20</Age>
<Smoker>Yes</Smoker>
<Address1>11 eleven st</Address1>
<Address2>app 11</Address2>
<City>New York</City>
<State>New York</State>
<Status>A</Status>
</People>
</Records>
예상 결과 : I과 같은 새로운 요소 아래에 그룹 주소 데이터에 필요 -
<Records>
<People>
<FirstName>John</FirstName>
<LastName>Doe</LastName>
<Middlename />
<Age>20</Age>
<Smoker>Yes</Smoker>
<Address>
<Address1>11 eleven st</address1>
<Address2>app 11</address2>
<City>New York</City>
<State>New York</State>
</Address>
<Status>A</Status>
</People>
</Records>
어떤 도움도 좋을 것! 당신은