我是 XSLT 的新手,在弄清楚如何翻译以下内容时遇到了一些困难:
<resource>
<id>12345678</id>
<attribute name="partID">12345678-222</attribute>
</resource>
至:
<Attributes Category="urn:oasis:names:tc:xacml:3.0:attribute-category:resource">
<Attribute IncludeInResult="false" AttributeId="urn:oasis:names:tc:xacml:1.0:resource:resource-id">
<AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">12345678</AttributeValue>
</Attribute>
<Attribute IncludeInResult="false" AttributeId="partID">
<AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">12345678</AttributeValue>
</Attribute>
</Attributes>