summaryrefslogtreecommitdiff
path: root/solenv/bin/packregistry.xslt
diff options
context:
space:
mode:
authorsb <sb@openoffice.org>2010-04-08 12:57:40 +0200
committersb <sb@openoffice.org>2010-04-08 12:57:40 +0200
commitf24d6400199d3f8612c0269e4be593c5270fa049 (patch)
tree513a46a0a6156f94b1ab3d358861c4f50815b819 /solenv/bin/packregistry.xslt
parent0d66d00dc0377f27fb06d3eebcb0240bd36aec15 (diff)
sb122: #i110695# avoid absolute paths in *.list files
Diffstat (limited to 'solenv/bin/packregistry.xslt')
-rw-r--r--solenv/bin/packregistry.xslt10
1 files changed, 6 insertions, 4 deletions
diff --git a/solenv/bin/packregistry.xslt b/solenv/bin/packregistry.xslt
index 55558d55450c..10d3b384690e 100644
--- a/solenv/bin/packregistry.xslt
+++ b/solenv/bin/packregistry.xslt
@@ -28,6 +28,7 @@
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:oor="http://openoffice.org/2001/registry">
+ <xsl:param name="prefix"/>
<xsl:strip-space elements="*"/>
<xsl:preserve-space elements="value"/>
<xsl:template match="/">
@@ -44,12 +45,13 @@
(e.g., xcs files preceeding xcu files).
-->
<xsl:for-each select="list/filename">
+ <xsl:variable name="doc" select="document(concat($prefix, .))"/>
<xsl:choose>
- <xsl:when test="count(document(.)/oor:component-schema) = 1">
- <xsl:apply-templates select="document(.)/oor:component-schema"/>
+ <xsl:when test="count($doc/oor:component-schema) = 1">
+ <xsl:apply-templates select="$doc/oor:component-schema"/>
</xsl:when>
- <xsl:when test="count(document(.)/oor:component-data) = 1">
- <xsl:apply-templates select="document(.)/oor:component-data"/>
+ <xsl:when test="count($doc/oor:component-data) = 1">
+ <xsl:apply-templates select="$doc/oor:component-data"/>
</xsl:when>
<xsl:otherwise>
<xsl:message terminate="yes">