You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by ah...@apache.org on 2005/09/16 17:22:42 UTC

svn commit: r289581 - in /maven/maven-1/plugins/trunk: changes/src/plugin-resources/changes.jsl changes/xdocs/changes.xml xdoc/xdocs/faq.fml xdoc/xdocs/index.xml

Author: aheritier
Date: Fri Sep 16 08:22:36 2005
New Revision: 289581

URL: http://svn.apache.org/viewcvs?rev=289581&view=rev
Log:
Fix some xhtml warnings/errors

Modified:
    maven/maven-1/plugins/trunk/changes/src/plugin-resources/changes.jsl
    maven/maven-1/plugins/trunk/changes/xdocs/changes.xml
    maven/maven-1/plugins/trunk/xdoc/xdocs/faq.fml
    maven/maven-1/plugins/trunk/xdoc/xdocs/index.xml

Modified: maven/maven-1/plugins/trunk/changes/src/plugin-resources/changes.jsl
URL: http://svn.apache.org/viewcvs/maven/maven-1/plugins/trunk/changes/src/plugin-resources/changes.jsl?rev=289581&r1=289580&r2=289581&view=diff
==============================================================================
--- maven/maven-1/plugins/trunk/changes/src/plugin-resources/changes.jsl (original)
+++ maven/maven-1/plugins/trunk/changes/src/plugin-resources/changes.jsl Fri Sep 16 08:22:36 2005
@@ -58,7 +58,7 @@
                             <j:set var="date"><x:expr select="@date"/></j:set>
                             <j:set var="description"><x:expr select="@description"/></j:set>
                             <j:set var="anchorName"><doc:escapeNameToken value="${version}"/></j:set>
-                            <td><a href="#${anchorName}">${version}</a></td>
+                            <td><a href="#Release${anchorName}">${version}</a></td>
                             <td>${date}</td>
                             <td>${description}</td>
                         </tr>
@@ -76,7 +76,7 @@
       <j:set var="version"><x:expr select="@version"/></j:set>
       <section name="${sectionName}">
         <j:set var="anchorName"><doc:escapeNameToken value="${version}"/></j:set>
-        <a name="${anchorName}"/>
+        <a id="Release${anchorName}" name="Release${anchorName}"/>
         <table>
           <tr><th style='width:50px'>Type</th><th>Changes</th><th style='width:70px'>By</th></tr>
           <j:choose>

Modified: maven/maven-1/plugins/trunk/changes/xdocs/changes.xml
URL: http://svn.apache.org/viewcvs/maven/maven-1/plugins/trunk/changes/xdocs/changes.xml?rev=289581&r1=289580&r2=289581&view=diff
==============================================================================
--- maven/maven-1/plugins/trunk/changes/xdocs/changes.xml (original)
+++ maven/maven-1/plugins/trunk/changes/xdocs/changes.xml Fri Sep 16 08:22:36 2005
@@ -25,6 +25,7 @@
   </properties>
   <body>
     <release version="1.6-SNAPSHOT" date="in SVN">
+      <action dev="aheritier" type="fix">Fix XTHML 1.0 compliance.</action>
       <action dev="ltheussl" type="fix" issue="MPCHANGES-22" due-to="Mike Traum">Document description attribute of release element.</action>
       <action dev="brett" type="add">Add a live bookmark link for the RSS for Firefox.</action>
       <action dev="vmassol" type="fix" issue="MPCHANGES-14">

Modified: maven/maven-1/plugins/trunk/xdoc/xdocs/faq.fml
URL: http://svn.apache.org/viewcvs/maven/maven-1/plugins/trunk/xdoc/xdocs/faq.fml?rev=289581&r1=289580&r2=289581&view=diff
==============================================================================
--- maven/maven-1/plugins/trunk/xdoc/xdocs/faq.fml (original)
+++ maven/maven-1/plugins/trunk/xdoc/xdocs/faq.fml Fri Sep 16 08:22:36 2005
@@ -150,7 +150,7 @@
       <question>Can I use Unicode characters in my xml files?</question>
       <answer>
         Yes. You will have to set you system locale accordingly when
-        you generate a site, <emph>eg.</emph> on Linux:
+        you generate a site, <em>eg.</em> on Linux:
         '<code>export LANG=en_US.UTF-8</code>'.
       </answer>
     </faq>

Modified: maven/maven-1/plugins/trunk/xdoc/xdocs/index.xml
URL: http://svn.apache.org/viewcvs/maven/maven-1/plugins/trunk/xdoc/xdocs/index.xml?rev=289581&r1=289580&r2=289581&view=diff
==============================================================================
--- maven/maven-1/plugins/trunk/xdoc/xdocs/index.xml (original)
+++ maven/maven-1/plugins/trunk/xdoc/xdocs/index.xml Fri Sep 16 08:22:36 2005
@@ -1,6 +1,6 @@
 <?xml version="1.0"?>
 <!DOCTYPE document [
-    <!ENTITY escapeXmlExample SYSTEM "file:xdocs/escapeXml.xml">
+  <!ENTITY escapeXmlExample SYSTEM "escapeXml.xml">
 ]>
 <!--
 /*
@@ -41,7 +41,7 @@
         <p>There are a few additions to the anakia format, highlighted in the subsequent sections.</p>
       </subsection>
       <subsection name="Additional Files">
-      <p>In addition to xdocs, users may wish to include other types of files such as images, their own HTML files, PDFs, etc.  By default, this plugin will copy all files located in the <code>maven.docs.src</code> directory (<code>xdocs</code> by default) to the final generated site.</p>
+        <p>In addition to xdocs, users may wish to include other types of files such as images, their own HTML files, PDFs, etc.  By default, this plugin will copy all files located in the <code>maven.docs.src</code> directory (<code>xdocs</code> by default) to the final generated site.</p>
         <p>If you create a <code>style/project.css</code> stylesheet under <code>maven.docs.src</code>, it will be copied to the resulting document tree and imported into each page (via <code>@import</code>).  This allows you to easily add and modify the styles that are provided by Maven.</p>
       </subsection>
       <subsection name="Footer Tag">
@@ -54,17 +54,12 @@
    </footer>]]></source>
       </subsection>
       <subsection name="Navigation bar">
-        <p>
-          You can put a navigation bar on bottom of each page by including
-          a <code>&lt;navbar/&gt;</code> element in an xdoc's body.
-          This element takes three optional attributes,
-          <code>prev</code>, <code>home</code> and <code>next</code>, as
-          shown in the following example:
-        </p>
+        <p>You can put a navigation bar on bottom of each page by including a <code>&lt;navbar/&gt;</code> element in an xdoc's body. This element takes three optional attributes, <code>prev</code>, <code>home</code> and <code>next</code>, as shown in the following example: </p>
         <source><![CDATA[<navbar prev="first.html" home="../index.html" next="next.html"/>]]></source>
       </subsection>
       <subsection name="Google Search">
-        <p>If a <code>search</code> element is found in the <code>navigation.xml</code> body, a search navigation menu is generated that uses <a href="http://www.google.com">google</a></p>
+        <p>If a <code>search</code> element is found in the <code>navigation.xml</code> body, a search navigation menu is generated that uses <a href="http://www.google.com">google</a>
+        </p>
       </subsection>
       <subsection name="escapeXml Tag">
         <p>If you need to include the contents of another XML document in your document, you can use the <code>&lt;escapeXml&gt;</code> tag, as demonstrated below. For instance, the code:</p>
@@ -79,51 +74,26 @@
         </source>
       </subsection>
       <subsection name="Open Link in New Window">
-        <p>To open a link in a new window, use the "target" attribute. For example, for a menu item: <source><![CDATA[<item name="Name" href="URL" target="_blank"/>]]></source> XDoc automatically adds the "Opens in a new window" icon and "New Window" tooltip to links with the "target" attribute.</p>
+        <p>To open a link in a new window, use the "target" attribute. For example, for a menu item: </p>
+        <source><![CDATA[<item name="Name" href="URL" target="_blank"/>]]></source>
+        <p>XDoc automatically adds the "Opens in a new window" icon and "New Window" tooltip to links with the "target" attribute.</p>
       </subsection>
       <subsection name="External Link Icon">
         <p>XDoc automatically adds the "External Link" icon and tooltip to links referring to external sites (actually, any absolute url).</p>
       </subsection>
       <subsection name="Referencing sections and subsections">
-        <p>
-          From version <code>1.10</code> on, the <code>xdoc</code> plugin
-          allows for an optional <code>id</code> tag in the <code>section</code>
-          and <code>subsection</code> elements:
-        </p>
+        <p>From version <code>1.10</code> on, the <code>xdoc</code> plugin allows for an optional <code>id</code> tag in the <code>section</code> and <code>subsection</code> elements: </p>
         <source><![CDATA[<section name="Section" id="Section1">
-    <subsection name="SubSection" id="SubSection1">
-    </subsection>
+  <subsection name="SubSection" id="SubSection1">
+  </subsection>
 </section>]]></source>
-        <p>
-          An anchor is constructed from each <code>id</code> tag,
-          so you can reference sections and subsections from other source
-          documents. Note that each <code>id</code> tag has to be unique
-          within one source document.
-        </p>
-        <p>
-          In previous versions of the plugin, an <code>id</code> tag
-          was constructed from section/subsection names, replacing special
-          characters by underscores. For backwards compatibility reasons,
-          we keep this behaviour, <emph>i.e.</emph>, if no <code>id</code> tag
-          is present, an anchor is constructed from the <code>name</code> tag.
-          Note that this presents two shortcomings:
-        </p>
+        <p>An anchor is constructed from each <code>id</code> tag, so you can reference sections and subsections from other source documents. Note that each <code>id</code> tag has to be unique within one source document.</p>
+        <p>In previous versions of the plugin, an <code>id</code> tag was constructed from section/subsection names, replacing special characters by underscores. For backwards compatibility reasons, we keep this behaviour, <em>i.e.</em>, if no <code>id</code> tag is present, an anchor is constructed from the <code>name</code> tag. Note that this presents two shortcomings:</p>
         <ul>
-          <li>
-            If two sections or subsections have identical names
-            (within one source document), you will get an ambiguity when
-            referencing them. Also the resulting html document will not be
-            valid XHTML.
-          </li>
-          <li>
-            For long section titles, this leads to rather
-            cumbersome anchor names.
-          </li>
+          <li>If two sections or subsections have identical names (within one source document), you will get an ambiguity when referencing them. Also the resulting html document will not be valid XHTML.</li>
+          <li>For long section titles, this leads to rather cumbersome anchor names.</li>
         </ul>
-        <p>
-          We recommend that you provide an <code>id</code> tag if you
-          want to reference a section or subsection.
-        </p>
+        <p>We recommend that you provide an <code>id</code> tag if you want to reference a section or subsection.</p>
       </subsection>
     </section>
   </body>



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org