diff options
author | Henning Brinkmann <hbrinkm@openoffice.org> | 2009-07-22 18:19:04 +0200 |
---|---|---|
committer | Henning Brinkmann <hbrinkm@openoffice.org> | 2009-07-22 18:19:04 +0200 |
commit | f4a33744651ffb29bff4487cedb580daa8fbc28d (patch) | |
tree | c0a0da3e3e9628ef81e65da4953b67df4c406f45 /writerfilter/source/ooxml/analyzemodel.xsl | |
parent | b22e08ef79cf968ef413c73f5e4f59658529cdaa (diff) |
consider qname of elements/attributes
Diffstat (limited to 'writerfilter/source/ooxml/analyzemodel.xsl')
-rw-r--r-- | writerfilter/source/ooxml/analyzemodel.xsl | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/writerfilter/source/ooxml/analyzemodel.xsl b/writerfilter/source/ooxml/analyzemodel.xsl index ba0da23602de..a13c7e6fd774 100644 --- a/writerfilter/source/ooxml/analyzemodel.xsl +++ b/writerfilter/source/ooxml/analyzemodel.xsl @@ -4,6 +4,7 @@ xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:rng="http://relaxng.org/ns/structure/1.0"> +<xsl:include href="resourcestools.xsl"/> <xsl:output method="xml"/> <xsl:template match="/"> @@ -20,7 +21,7 @@ <xsl:variable name="defname" select="@name"/> <xsl:for-each select="rng:attribute|rng:element"> <xsl:choose> - <xsl:when test="local-name()='element'"> + <xsl:when test="local-name()='element'"> <element> <xsl:call-template name="defineattrs"> <xsl:with-param name="nsname" select="$nsname"/> @@ -61,11 +62,21 @@ <xsl:when test="$localname='attribute'"> <xsl:for-each select="attribute[@name=$name and @tokenid]"> <xsl:attribute name="tokenid"><xsl:value-of select="@tokenid"/></xsl:attribute> + <xsl:attribute name="qname"> + <xsl:call-template name="idtoqname"> + <xsl:with-param name="id" select="@tokenid"/> + </xsl:call-template> + </xsl:attribute> </xsl:for-each> </xsl:when> <xsl:when test="$localname='element'"> <xsl:for-each select="element[@name=$name and @tokenid]"> <xsl:attribute name="tokenid"><xsl:value-of select="@tokenid"/></xsl:attribute> + <xsl:attribute name="qname"> + <xsl:call-template name="idtoqname"> + <xsl:with-param name="id" select="@tokenid"/> + </xsl:call-template> + </xsl:attribute> </xsl:for-each> </xsl:when> </xsl:choose> |