Hi,
sorry again.
I have found a workaround.
Here it is :
<xsl:variable name="theFields">
<fields>
<xsl:for-each select="/">
<xsl:for-each select="
/office:document-content/office:body//text:bookmark-ref/@text:ref-name[
generate-id() =
generate-id(
key('groupesdeFieldsParNom', .)[1]
)
]">
<xsl:copy-of select="parent::*"/>
</xsl:for-each>
</xsl:for-each>
<xsl:for-each select="$styles"> ////// below the variable $styles
does not appear in the select expression, and its OK to compute the value
of key().
<xsl:for-each select="
/office:document-styles/office:master-styles/style:master-page//text:bookmark-ref/@text:ref-name[
generate-id() =
generate-id(
key('groupesdeFieldsParNom', .)[1]
)
]">
<xsl:copy-of select="parent::*"/>
</xsl:for-each>
</xsl:for-each>
</fields>
</xsl:variable>
Regards -- Ph D
==
Philippe Drix
___________
__| OBJECTIVA |___________________
http://www.objectiva.fr
21-23, rue Aristide Briand - 92170 Vanves
tel : +33 1 47 36 60 30
fax : +33 1 47 36 61 93
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list