summaryrefslogtreecommitdiff
path: root/officecfg/util/schema_trim.xsl
diff options
context:
space:
mode:
authorDirk Grobler <dg@openoffice.org>2002-05-19 22:09:37 +0000
committerDirk Grobler <dg@openoffice.org>2002-05-19 22:09:37 +0000
commit3c823da1ae65493278196191aaeb3e441dd1e959 (patch)
tree1cd114c81b07789eeb32dee4366f41c18da8623e /officecfg/util/schema_trim.xsl
parent06373f637aa048e8ec3d1ce53242ac57e2878548 (diff)
#99152# validation for configdata completed
Diffstat (limited to 'officecfg/util/schema_trim.xsl')
-rw-r--r--officecfg/util/schema_trim.xsl43
1 files changed, 2 insertions, 41 deletions
diff --git a/officecfg/util/schema_trim.xsl b/officecfg/util/schema_trim.xsl
index fc123818c3cd..ddf60ab41b6e 100644
--- a/officecfg/util/schema_trim.xsl
+++ b/officecfg/util/schema_trim.xsl
@@ -3,9 +3,9 @@
*
* $RCSfile: schema_trim.xsl,v $
*
- * $Revision: 1.3 $
+ * $Revision: 1.4 $
*
- * last change: $Author: dg $ $Date: 2002-05-17 06:44:21 $
+ * last change: $Author: dg $ $Date: 2002-05-19 22:59:26 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -70,8 +70,6 @@
<xsl:output method="xml" indent="yes"/>
<xsl:namespace-alias stylesheet-prefix="xs" result-prefix="xs"></xsl:namespace-alias>
-<!-- Parameter -->
-<xsl:param name="root">../registry/schema</xsl:param>
<!-- Remove all comments from the schema files -->
<xsl:template match="*|@*">
@@ -89,41 +87,4 @@
<!-- suppress the all documentation items -->
<xsl:template match = "info"/>
-<!-- make sure that missing features are not invoked -->
- <xsl:template match = "item">
- <xsl:message terminate="yes">ERROR: multiple template types for sets are NOT supported!</xsl:message>
- </xsl:template>
-
- <xsl:template match = "set[@oor:extensible='true']">
- <xsl:message terminate="yes">ERROR: extensible sets are currently NOT supported!</xsl:message>
- </xsl:template>
-
-<!-- validate for correct node references -->
- <xsl:template match="@oor:node-type">
- <xsl:choose>
- <xsl:when test="../@oor:component">
- <xsl:variable name ="file">
- <xsl:call-template name="locateFile"><xsl:with-param name="componentName" select="../@oor:component"/></xsl:call-template>
- </xsl:variable>
- <xsl:if test="not(document($file)/oor:component-schema/templates/*[@oor:name=current()])">
- <xsl:message terminate="yes">ERROR: node-type '<xsl:value-of select="current()"/>' not found!</xsl:message>
- </xsl:if>
- </xsl:when>
- <xsl:when test="not(/oor:component-schema/templates/*[@oor:name=current()])">
- <xsl:message terminate="yes">ERROR: node-type '<xsl:value-of select="current()"/>' not found!</xsl:message>
- </xsl:when>
- </xsl:choose>
- <xsl:copy/>
- </xsl:template>
-
-<!-- locate a component file -->
- <xsl:template name="locateFile">
- <xsl:param name="componentName"/>
- <xsl:variable name ="file"><xsl:value-of select="$root"/>/<xsl:value-of select="translate($componentName,'.','/')"/>.xcs</xsl:variable>
- <xsl:if test="not( document($file) )">
- <xsl:message terminate ="yes">**Error: unable to locate document '<xsl:value-of select="translate($componentName,'.','/')"/>.xcd'</xsl:message>
- </xsl:if>
- <xsl:value-of select="$file"/>
- </xsl:template>
-
</xsl:transform>