summaryrefslogtreecommitdiff
path: root/solenv/bin/packregistry.xslt
diff options
context:
space:
mode:
authorsb <sb@openoffice.org>2010-03-26 11:03:49 +0100
committersb <sb@openoffice.org>2010-03-26 11:03:49 +0100
commita983484f50be130e980d90f24298fb7f2eca27e5 (patch)
tree094361f71ee48a766ab7539a267117abf4288ae9 /solenv/bin/packregistry.xslt
parentfad35cd7a1e46ad755f28926ab92ffe7c915bc22 (diff)
sb121: #i110203# further improvements to packregistry.xslt
Diffstat (limited to 'solenv/bin/packregistry.xslt')
-rw-r--r--solenv/bin/packregistry.xslt16
1 files changed, 11 insertions, 5 deletions
diff --git a/solenv/bin/packregistry.xslt b/solenv/bin/packregistry.xslt
index dca364c4dd38..76b4c5eeffe8 100644
--- a/solenv/bin/packregistry.xslt
+++ b/solenv/bin/packregistry.xslt
@@ -68,15 +68,21 @@
<xsl:copy copy-namespaces="no">
<!-- prune oor:component-data xmlns:install="..." namespaces (would only
work in XSLT 2.0, however) -->
- <xsl:for-each select="@*">
- <xsl:attribute name="{name()}">
- <xsl:value-of select="."/>
- </xsl:attribute>
- </xsl:for-each>
+ <xsl:apply-templates select="@*"/>
<xsl:apply-templates/>
</xsl:copy>
</xsl:template>
+ <xsl:template match="value[it]">
+ <xsl:copy copy-namespaces="no">
+ <xsl:apply-templates select="@*"/>
+ <xsl:apply-templates select="*"/>
+ <!-- ignore text elements (which must be whitespace only) -->
+ </xsl:copy>
+ </xsl:template>
<xsl:template match="info|import|uses|constraints"/>
<!-- TODO: no longer strip elements when they are eventually read by
configmgr implementation -->
+ <xsl:template match="@*">
+ <xsl:copy/>
+ </xsl:template>
</xsl:stylesheet>