xsddoc/src/net/sf/xframe/xsddoc/xslt component.xsl,1.26,1.27

Kurt Riede <[email protected]>
Newsgroups gmane.text.xml.xframe.xsddoc.devel
Message-ID <[email protected]>
Update of /cvsroot/xframe/xsddoc/src/net/sf/xframe/xsddoc/xslt
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16010/src/net/sf/xframe/xsddoc/xslt

Modified Files:
	component.xsl 
Log Message:
Fix for Bug [1015389] documentation of nested element incomplete (this fix avoids unwanted repeating of nested documentation)

Index: component.xsl
===================================================================
RCS file: /cvsroot/xframe/xsddoc/src/net/sf/xframe/xsddoc/xslt/component.xsl,v
retrieving revision 1.26
retrieving revision 1.27
diff -C2 -d -r1.26 -r1.27
*** component.xsl	15 Sep 2004 15:18:01 -0000	1.26
--- component.xsl	20 Sep 2004 19:30:41 -0000	1.27
***************
*** 190,200 ****
          </doc:typeReference>
        </xsl:if>
!       <xsl:if test=".//xs:annotation/xs:documentation">
!         <xsl:for-each select=".//xs:annotation/xs:documentation">
!           <doc:documentation>
!             <xsl:copy-of select="* | text()"/>
!           </doc:documentation>
!         </xsl:for-each>
!       </xsl:if>
        <doc:source>
          <xsl:apply-templates select="." mode="xmldoc">
--- 190,194 ----
          </doc:typeReference>
        </xsl:if>
!       <xsl:apply-templates select="." mode="collectDocs"/>
        <doc:source>
          <xsl:apply-templates select="." mode="xmldoc">
***************
*** 205,208 ****
--- 199,213 ----
    </xsl:template>
    <!--
+     Collect nested documentation.
+   -->
+   <xsl:template match="*" mode="collectDocs">
+     <xsl:for-each select="xs:annotation/xs:documentation">
+       <doc:documentation>
+         <xsl:copy-of select="* | text()"/>
+       </doc:documentation>
+     </xsl:for-each>
+     <xsl:apply-templates select="*[(local-name() != 'element') or (@name = '')]" mode="collectDocs"/>
+   </xsl:template>
+   <!--
      Recursive build list of all super types of a simpleType or a complexType.
    -->



-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.