maven-xsddoc-plugin/src/plugin-resources xsddoc-report.jsl,1.1,1.2

Kurt Riede <[email protected]> Wed, 20 Oct 2004 17:23:55 +0000
Newsgroups gmane.text.xml.xframe.xsddoc.devel
Message-ID <[email protected]>
Update of /cvsroot/xframe/maven-xsddoc-plugin/src/plugin-resources
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23505/src/plugin-resources

Modified Files:
	xsddoc-report.jsl 
Log Message:
summary of errors, linkcheck report for each schema file

Index: xsddoc-report.jsl
===================================================================
RCS file: /cvsroot/xframe/maven-xsddoc-plugin/src/plugin-resources/xsddoc-report.jsl,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** xsddoc-report.jsl	9 Oct 2004 23:41:48 -0000	1.1
--- xsddoc-report.jsl	20 Oct 2004 17:23:53 -0000	1.2
***************
*** 33,52 ****
        <body>
          <section name="XML Schema Documentation">
!           <p>The following documents contain the results
            the XML Schema documentation tool
!           <a href="http://xframe.sf.net/xsddoc.html">xsddoc</a>.</p>
            <table>
!             <tr>
!               <th>XML Schema Files</th>
!             </tr>
!             <x:set var="docs" select="xsddoc-file"/>
!             <j:forEach var="doc" items="${docs}">
                <tr>
!                 <td>
!                   <a target="_blank" href="xsddocs/${doc.getText()}/index.html">${doc.getText()}</a>
!                 </td>
                </tr>
!             </j:forEach>
            </table>
          </section>
        </body>
--- 33,120 ----
        <body>
          <section name="XML Schema Documentation">
!           <p>The following documents contain the results of
            the XML Schema documentation tool
!           <a href="http://xframe.sourceforge.net/xsddoc/index.html">xsddoc</a>.</p>
!           <j:set var="files"><x:expr select="count(xsddoc)"/></j:set>
!           <j:set var="success"><x:expr select="count(xsddoc[@result = 'success' and @linkcheck = 'OK'])"/></j:set>
!           <j:set var="linkcheck"><x:expr select="count(xsddoc[@linkcheck = 'OK'])"/></j:set>
!           <j:set var="errors"><x:expr select="${files} - ${success}"/></j:set>
!           <j:set var="percentage"><x:expr select="(${success} div ${files}) * 100"/></j:set>
!           <a name="summary"></a>
!           <h2>Summary</h2>
            <table>
!             <thead>
                <tr>
!                 <th>Files</th>
!                 <th>
!                   <a href="#errors">Errors</a>
!                 </th>
!                 <th>Linkcheck</th>
!                 <th>success</th>
!                 <th>success [%]</th>
                </tr>
!             </thead>
!             <tbody>
!               <tr>
!                 <td>${files}</td>
!                 <td>${errors}</td>
!                 <td>${linkcheck}</td>
!                 <td>${success}</td>
!                 <td>${percentage}</td>
!               </tr>
!             </tbody>
!           </table>
!           <a name="files"></a>
!           <h2>Files</h2>
!           <table>
!             <thead>
!               <tr>
!                 <th>XML Schema Files</th>
!                 <th>Reports</th>
!               </tr>
!             </thead>
!             <tbody>
!               <x:set var="docs" select="xsddoc[@result = 'success' and @linkcheck = 'OK']"/>
!               <j:forEach var="doc" items="${docs}">
!                 <tr>
!                   <td>
!                     <a target="_blank" href="xsddocs/${doc.attribute('file').getValue()}/index.html">${doc.attribute('file').getValue()}</a>
!                   </td>
!                   <td>
!                     <a target="_blank" href="xsddocs/${doc.attribute('report').getValue()}"><b>${doc.attribute('result').getValue()}</b></a>
!                   </td>
!                 </tr>
!               </j:forEach>
!             </tbody>
            </table>
+           <a name="errors"></a>
+           <h2>xsddoc errors</h2>
+           <j:if test="${errors != 0}">
+             <table>
+               <thead>
+                 <tr>
+                   <th>XML Schema Files with xsddoc errors</th>
+                   <th>Linkcheck</th>
+                   <th>Report</th>
+                 </tr>
+               </thead>
+               <tbody>
+                 <x:set var="docs" select="xsddoc[@result != 'success' or  @linkcheck != 'OK']"/>
+                 <j:forEach var="doc" items="${docs}">
+                   <tr>
+                     <td>
+                       <a target="_blank" href="xsddocs/${doc.attribute('file').getValue()}/index.html">${doc.attribute('file').getValue()}</a>
+                     </td>
+                     <td>
+                       <a target="_blank" href="xsddocs/${doc.attribute('file').getValue()}-linkcheck.html"><b>${doc.attribute('linkcheck').getValue()}</b></a>
+                     </td>
+                     <td>
+                       <a target="_blank" href="xsddocs/${doc.attribute('file').getValue()}.txt"><b>${doc.attribute('result').getValue()}</b></a>
+                     </td>
+                   </tr>
+                 </j:forEach>
+               </tbody>
+             </table>
+           </j:if>
          </section>
        </body>



-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl