-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path3-d.xml
More file actions
28 lines (27 loc) · 937 Bytes
/
3-d.xml
File metadata and controls
28 lines (27 loc) · 937 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?xml version="1.0" encoding="utf-8">
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="term">
<term>
<xsl:attribute name="id">
<xsl:value-of select="term-{/term/termId}">
</xsl:attribute>
<xsl:attribute name="name">
<xsl:value-of select="{/term/termName}">
</xsl:attribute>
<xsl:attribute name="type">
<xsl:value-of select="{/term/termType}">
</xsl:attribute>
<xsl:for-each select="{/term/relation}">
<relation>
<xsl:attribute name="id">
<xsl:value-of select="term-{/relation/termId}">
</xsl:attribute>
<xsl:attribute name="type">
<xsl:value-of select="{/relation/relationType}">
</xsl:attribute>
</relation>
</xsl:for-each>
</term>
</xsl:template>
</xsl:stylesheet>