summaryrefslogtreecommitdiff
path: root/officecfg/util/schema_trim.xsl
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2004-07-05 12:48:43 +0000
committerOliver Bolte <obo@openoffice.org>2004-07-05 12:48:43 +0000
commit347003b021d45e397e8778a76b6ef00450b40838 (patch)
tree081ef6f99308af6fb930758d232a9e649eb1eb4d /officecfg/util/schema_trim.xsl
parentb912e9319b150dbe3d497eb5024694ac704f7b65 (diff)
INTEGRATION: CWS scp2officecfg (1.7.306); FILE MERGED
2004/06/17 09:40:49 jb 1.7.306.1: #i18588# Include documentation into delivered schemas
Diffstat (limited to 'officecfg/util/schema_trim.xsl')
-rw-r--r--officecfg/util/schema_trim.xsl26
1 files changed, 22 insertions, 4 deletions
diff --git a/officecfg/util/schema_trim.xsl b/officecfg/util/schema_trim.xsl
index fe8244983b2e..bb7093eb5f1a 100644
--- a/officecfg/util/schema_trim.xsl
+++ b/officecfg/util/schema_trim.xsl
@@ -3,9 +3,9 @@
*
* $RCSfile: schema_trim.xsl,v $
*
- * $Revision: 1.7 $
+ * $Revision: 1.8 $
*
- * last change: $Author: jb $ $Date: 2002-11-22 11:48:55 $
+ * last change: $Author: obo $ $Date: 2004-07-05 13:48:43 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -84,8 +84,26 @@
<!-- suppress the constraints of the schema
<xsl:template match = "constraints"/> -->
-<!-- suppress all documentation items -->
- <xsl:template match = "info"/>
+<!-- suppress all documentation items
+ <xsl:template match = "info"/> -->
+
+<!-- suppress constraints for deprecated items -->
+ <xsl:template match = "constraints[../info/deprecated]"/>
+
+<!-- suppress all documentation for deprecated items -->
+ <xsl:template match = "desc[../deprecated]"/>
+ <xsl:template match = "label[../deprecated]"/>
+
+<!-- copy all other documentation with content -->
+ <xsl:template match="desc|label">
+ <xsl:copy>
+ <xsl:apply-templates select="@*"/>
+ <xsl:value-of select="."/>
+ </xsl:copy>
+ </xsl:template>
+
+<!-- suppress all author items -->
+ <xsl:template match = "author"/>
<!-- suppress values, which are marked as nil -->
<xsl:template match="value[@xsi:nil='true']" />