1 <?xml version='
1.0'
encoding=
"UTF-8"?>
2 <xsl:stylesheet version=
"1.0" xmlns:
xsl=
"http://www.w3.org/1999/XSL/Transform" xmlns:
oor=
"http://openoffice.org/2001/registry">
3 <xsl:output method=
"xml" indent=
"yes" omit-xml-declaration=
"no" version=
"1.0" encoding=
"UTF-8"/>
4 <xsl:param name=
"lang"/>
5 <xsl:template match=
"*">
6 <xsl:if test=
"count(.//*[@xml:lang=$lang])>0">
8 <xsl:apply-templates select=
"*|@*"/>
13 <xsl:template match=
"@*">
15 <xsl:apply-templates select=
"*|@*"/>
19 <xsl:template match=
"value">
20 <xsl:if test=
"@xml:lang=$lang">
22 <xsl:apply-templates select=
"@*|text()"/>
27 <xsl:template match=
"text()">
28 <xsl:if test=
"../@xml:lang=$lang">
30 <xsl:apply-templates select=
"@*|text()"/>