-
Notifications
You must be signed in to change notification settings - Fork 1
/
swidq-xml.xslt
33 lines (27 loc) · 1.47 KB
/
swidq-xml.xslt
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
29
30
31
32
33
<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:swid="http://standards.iso.org/iso/19770/-2/2015/schema.xsd"
xmlns="http://standards.iso.org/iso/19770/-2/2015/schema.xsd"
xmlns:swidq="http://adelton.fedorapeople.org/swidq"
exclude-result-prefixes="swid swidq"
>
<xsl:output method="xml" omit-xml-declaration="no" indent="yes" encoding="utf-8"/>
<xsl:strip-space elements="*"/>
<xsl:template match="/swid:SoftwareIdentity">
<SoftwareIdentity xmlns="http://standards.iso.org/iso/19770/-2/2015/schema.xsd" xmlns:sha256="http://www.w3.org/2001/04/xmlenc#sha256" xmlns:n8060="http://csrc.nist.gov/ns/swid/2015-extensions/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://standards.iso.org/iso/19770/-2/2015/schema.xsd http://standards.iso.org/iso/19770/-2/2015-current/schema.xsd http://csrc.nist.gov/ns/swid/2015-extensions/1.0 https://csrc.nist.gov/schema/swid/2015-extensions/swid-2015-extensions-1.0.xsd">
<xsl:apply-templates select="@*|node()"/>
</SoftwareIdentity>
</xsl:template>
<xsl:template match="swid:*">
<xsl:element name="{local-name()}" namespace="http://standards.iso.org/iso/19770/-2/2015/schema.xsd">
<xsl:apply-templates select="@*|node()"/>
</xsl:element>
</xsl:template>
<xsl:template match="@*|node()">
<xsl:copy-of select="."/>
</xsl:template>
<xsl:template match="swidq:*">
<!-- do not show the supplemental tags -->
</xsl:template>
</xsl:stylesheet>