diff options
author | Jörg Barfurth <jb@openoffice.org> | 2002-11-22 10:48:55 +0000 |
---|---|---|
committer | Jörg Barfurth <jb@openoffice.org> | 2002-11-22 10:48:55 +0000 |
commit | 542333bc66714300eee0ee6efc871086c2ca3ede (patch) | |
tree | 25b562f921100f7c48f3ced3cbd602e69082a665 /officecfg/util/schema_trim.xsl | |
parent | 9c437c2096563196395f304c26d82c1c8b737910 (diff) |
#104662# Represent NIL defaults by absence of <value> tags only; xsi:nil is deprecated in the input
Diffstat (limited to 'officecfg/util/schema_trim.xsl')
-rw-r--r-- | officecfg/util/schema_trim.xsl | 27 |
1 files changed, 6 insertions, 21 deletions
diff --git a/officecfg/util/schema_trim.xsl b/officecfg/util/schema_trim.xsl index 899d661edc7d..fe8244983b2e 100644 --- a/officecfg/util/schema_trim.xsl +++ b/officecfg/util/schema_trim.xsl @@ -3,9 +3,9 @@ * * $RCSfile: schema_trim.xsl,v $ * - * $Revision: 1.6 $ + * $Revision: 1.7 $ * - * last change: $Author: tpf $ $Date: 2002-08-23 08:49:36 $ + * last change: $Author: jb $ $Date: 2002-11-22 11:48:55 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -87,30 +87,15 @@ <!-- suppress all documentation items --> <xsl:template match = "info"/> -<!-- suppress values, which do not have content and are not nil --> - <xsl:template match="value[@xsi:nil='true']"> - <xsl:if test="contains(../@oor:type, 'string') or contains(../@oor:type, 'hexBinary') or contains(../@oor:type, 'list')"> - <xsl:copy> - <xsl:apply-templates select="*|@*"/> - </xsl:copy> - </xsl:if> - </xsl:template> - +<!-- suppress values, which are marked as nil --> + <xsl:template match="value[@xsi:nil='true']" /> - <xsl:template match="value[@oor:separator]"> +<!-- copy all other values with content --> + <xsl:template match="value"> <xsl:copy> <xsl:apply-templates select="*|@*"/> <xsl:value-of select="."/> </xsl:copy> </xsl:template> - <xsl:template match="value"> - <xsl:if test="string-length(current())"> - <xsl:copy> - <xsl:apply-templates select="*|@*"/> - <xsl:value-of select="."/> - </xsl:copy> - </xsl:if> - </xsl:template> - </xsl:transform> |