summaryrefslogtreecommitdiff
path: root/writerfilter/source/ooxml/namespaceids.xsl
diff options
context:
space:
mode:
Diffstat (limited to 'writerfilter/source/ooxml/namespaceids.xsl')
-rw-r--r--writerfilter/source/ooxml/namespaceids.xsl3
1 files changed, 2 insertions, 1 deletions
diff --git a/writerfilter/source/ooxml/namespaceids.xsl b/writerfilter/source/ooxml/namespaceids.xsl
index ea56acc694a0..d92593dbc374 100644
--- a/writerfilter/source/ooxml/namespaceids.xsl
+++ b/writerfilter/source/ooxml/namespaceids.xsl
@@ -51,8 +51,9 @@
<xsl:include href="factorytools.xsl"/>
+<xsl:key name="namespaces-by-id" match="namespace-alias" use="@id"/>
<xsl:template name="namespaceids">
- <xsl:for-each select="//namespace-alias">
+ <xsl:for-each select="//namespace-alias[generate-id() = generate-id(key('namespaces-by-id', @id)[1])]">
<xsl:text>
const sal_uInt32 </xsl:text>
<xsl:call-template name="namespaceid"/>