diff options
author | Henning Brinkmann <hbrinkm@openoffice.org> | 2009-07-31 13:07:50 +0200 |
---|---|---|
committer | Henning Brinkmann <hbrinkm@openoffice.org> | 2009-07-31 13:07:50 +0200 |
commit | b7231d22c795059615e3487e7f68b9b91c547c4e (patch) | |
tree | a449bd3205383297ac53f6ed8eb96a0f473a26e6 /writerfilter/source/ooxml/analyzemodel.xsl | |
parent | 86ddb7c092eaf2114860e0976ef50d8bf1d78065 (diff) |
ignore certain namespaces when analyzing model
Diffstat (limited to 'writerfilter/source/ooxml/analyzemodel.xsl')
-rw-r--r-- | writerfilter/source/ooxml/analyzemodel.xsl | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/writerfilter/source/ooxml/analyzemodel.xsl b/writerfilter/source/ooxml/analyzemodel.xsl index 0d7d83afcce7..623d3d75b634 100644 --- a/writerfilter/source/ooxml/analyzemodel.xsl +++ b/writerfilter/source/ooxml/analyzemodel.xsl @@ -9,7 +9,7 @@ <xsl:template match="/"> <analyze> - <xsl:for-each select="/model/namespace"> + <xsl:for-each select="/model/namespace[not(@todo='ignore')]"> <xsl:call-template name="analyzegrammar"/> </xsl:for-each> </analyze> @@ -67,6 +67,15 @@ <xsl:with-param name="id" select="@tokenid"/> </xsl:call-template> </xsl:attribute> + <xsl:attribute name="namespace"> + <xsl:value-of select="$nsname"/> + </xsl:attribute> + <xsl:attribute name="define"> + <xsl:value-of select="$defname"/> + </xsl:attribute> + <xsl:attribute name="name"> + <xsl:value-of select="@name"/> + </xsl:attribute> </xsl:for-each> </xsl:when> <xsl:when test="$localname='element'"> @@ -77,6 +86,15 @@ <xsl:with-param name="id" select="@tokenid"/> </xsl:call-template> </xsl:attribute> + <xsl:attribute name="namespace"> + <xsl:value-of select="$nsname"/> + </xsl:attribute> + <xsl:attribute name="define"> + <xsl:value-of select="$defname"/> + </xsl:attribute> + <xsl:attribute name="name"> + <xsl:value-of select="@name"/> + </xsl:attribute> </xsl:for-each> </xsl:when> </xsl:choose> |