From: <tec...@us...> - 2007-02-17 16:13:40
|
Revision: 931 http://svn.sourceforge.net/colorer/?rev=931&view=rev Author: techtonik Date: 2007-02-17 08:13:39 -0800 (Sat, 17 Feb 2007) Log Message: ----------- process attributes derived from extended types Modified Paths: -------------- branches/TECHTONIK-HRC-REF/colorer/doc/hrc-ref/db-xsdoc.xsl Modified: branches/TECHTONIK-HRC-REF/colorer/doc/hrc-ref/db-xsdoc.xsl =================================================================== --- branches/TECHTONIK-HRC-REF/colorer/doc/hrc-ref/db-xsdoc.xsl 2007-02-17 15:29:11 UTC (rev 930) +++ branches/TECHTONIK-HRC-REF/colorer/doc/hrc-ref/db-xsdoc.xsl 2007-02-17 16:13:39 UTC (rev 931) @@ -21,6 +21,7 @@ <xsl:value-of select='normalize-space($ann/xs:documentation)'/> </para> <xsl:apply-templates select='.//xs:attribute[@name]' mode='xsdoc'/> + <xsl:apply-templates select='.//xs:complexContent' mode='xsdoc'/> <xsl:if test='.//xs:element[@name]'> <para role='xsdocdecl'>Content:</para> <xsl:apply-templates select='.//xs:element[@name]' mode='xsdoc'/> @@ -29,6 +30,15 @@ </xsl:template> +<xsl:template match="xs:complexContent" mode='xsdoc'> + <xsl:variable name="this_att" select="xs:extension/xs:attribute" /> + <xsl:variable name="extd_att" select="/*/xs:complexType[@name = current()/xs:extension/@base]//xs:attribute" /> + + <!-- process intersection for extended elements --> + <xsl:apply-templates select='$extd_att[@name != $this_att/@name]' mode='xsdoc'/> +</xsl:template> + + <xsl:template match="xs:element[@name and not(ancestor::xs:element)]" mode="xsdoc"> <xsl:variable name='reftype' select='/xs:schema/xs:element/@name'/> @@ -54,7 +64,6 @@ </xsl:choose> </xsl:variable> - <para role='xsdochead'>Element: <xsl:choose> <xsl:when test='@type = @name'> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |