Return-Path: Delivered-To: apmail-xml-forrest-dev-archive@xml.apache.org Received: (qmail 13383 invoked by uid 500); 27 Jan 2003 00:26:24 -0000 Mailing-List: contact forrest-cvs-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: forrest-dev@xml.apache.org Delivered-To: mailing list forrest-cvs@xml.apache.org Received: (qmail 13372 invoked from network); 27 Jan 2003 00:26:24 -0000 Received: from icarus.apache.org (208.185.179.13) by daedalus.apache.org with SMTP; 27 Jan 2003 00:26:24 -0000 Received: (qmail 83901 invoked by uid 1352); 27 Jan 2003 00:26:23 -0000 Date: 27 Jan 2003 00:26:23 -0000 Message-ID: <20030127002623.83900.qmail@icarus.apache.org> From: jefft@apache.org To: xml-forrest-cvs@apache.org Subject: cvs commit: xml-forrest/src/resources/library/xslt faq2document.xsl X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N jefft 2003/01/26 16:26:23 Modified: src/documentation/content/xdocs faq.xml src/resources/fresh-site/src/documentation/content/xdocs site.xml src/resources/library/xslt faq2document.xsl Added: src/resources/fresh-site/src/documentation/content/xdocs faq.xml Log: - Improved faq2document.xsl to use @id tags on elements for fragment identifiers. - Added a sample FAQ to the seed webapp Revision Changes Path 1.20 +150 -139 xml-forrest/src/documentation/content/xdocs/faq.xml Index: faq.xml =================================================================== RCS file: /home/cvs/xml-forrest/src/documentation/content/xdocs/faq.xml,v retrieving revision 1.19 retrieving revision 1.20 diff -u -r1.19 -r1.20 --- faq.xml 19 Jan 2003 11:13:26 -0000 1.19 +++ faq.xml 27 Jan 2003 00:26:23 -0000 1.20 @@ -3,143 +3,154 @@ - - - When building my project, I get an validation error: Document root - element "site", must match DOCTYPE root "null".. - - -

- You are probably trying to build the project with an old version of - Forrest (built before 2003-01-08) that is incorrectly trying to validate - the site.xml file. If so, please update your Forrest - installation. -

-

- Alternatively, you may be building with an up-to-date Forrest, but have - overridden forrest.validate.xdocs.excludes in - forrest.properties. With the introduction of - site.xml, the above property must have site.xml - listed to prevent an attempt at DTD-based validation. -

-
-
- - - - The tab link in my site incorrectly assumes that 'index.html' is present in - the linked-to directory. How do I fix this? - - -

- In tabs.xml, use @href instead of @dir, and omit the trailing - '/'. That will leave which file to serve up to the sitemap. For example, if - the 'User Manual' tab should link to manual/Introduction.html, - tabs.xml should contain: -

- - ]]> -

- and add this rule to the sitemap: -

- - - - ]]> -
-
- - - - Why do the generated documents look a little strange? - - -

- Because we are in transition to the new document-v11.dtd - and there are still some stylesheets that need tweaking. - See the Demo document-v11 - and Standards Compliance. -

-
-
- - - - I have checked out a working copy of xml-forrest CVS, now what? - - -

- Run "./build.sh docs" to see the documentation - for Forrest. - The documentation is generated in the build/site/ directory. - Logfiles are in the build/tmp/context/WEB-INF/logs/ directory. -

-
-
- - - - I gather that I will be able to use the Forrest infrastructure to build - my own website. - - -

- That is correct. Many of us want to do that, and that is partially why we - are working here. Forrest is designed to not only build websites for - the various Apache projects, but also so that you can apply your own skins - to your own content. Try this ... - "./build.sh clean docs -Duse.skin=basic" - then copy the basic skin to make your own. -

-

- The forrestbot is under-development to - automate the production of your documentation. -

-
-
- - - - Why am i a little confused by the Forrest documentation? - - -

- Sorry, we are working on that for the next release. Forrest development has - been very fast recently. Some of the documentation refers to old methods. - Your best bet is to start with the - Using Forrest document. -

-
-
- - - - How can i help? - - -

- Join the forrest-dev mailing list - and help to discuss it. Read the - Forrest Primer for an overview. - See the - To Do List and choose something that - interests you. -

-
-
- - - - Why is build docs failing on subsequent builds? - - -

- It is a bug. Workaround: ./build.sh clean docs every time. - There is an entry on the To Do List. -

-
-
- + + Getting Started + + + I have checked out a working copy of xml-forrest CVS, now what? + + +

+ Run "./build.sh docs" to see the documentation + for Forrest. + The documentation is generated in the build/site/ directory. + Logfiles are in the build/tmp/context/WEB-INF/logs/ directory. +

+
+
+ + + + Why is build docs failing on subsequent builds? + + +

+ It is a bug. Workaround: ./build.sh clean docs every time. + There is an entry on the To Do List. +

+
+
+
+ + + + + Technical + + + When building my project, I get an validation error: Document root + element "site", must match DOCTYPE root "null".. + + +

+ You are probably trying to build the project with an old version of + Forrest (built before 2003-01-08) that is incorrectly trying to validate + the site.xml file. If so, please update your Forrest + installation. +

+

+ Alternatively, you may be building with an up-to-date Forrest, but have + overridden forrest.validate.xdocs.excludes in + forrest.properties. With the introduction of + site.xml, the above property must have site.xml + listed to prevent an attempt at DTD-based validation. +

+
+
+ + + + The tab link in my site incorrectly assumes that 'index.html' is present in + the linked-to directory. How do I fix this? + + +

+ In tabs.xml, use @href instead of @dir, and omit the trailing + '/'. That will leave which file to serve up to the sitemap. For example, if + the 'User Manual' tab should link to manual/Introduction.html, + tabs.xml should contain: +

+ + ]]> +

+ and add this rule to the sitemap: +

+ + + + ]]> +
+
+
+ + + General + + + + Why do the generated documents look a little strange? + + +

+ Because we are in transition to the new document-v11.dtd + and there are still some stylesheets that need tweaking. + See the Demo document-v11 + and Standards Compliance. +

+
+
+ + + + I gather that I will be able to use the Forrest infrastructure to build + my own website. + + +

+ That is correct. Many of us want to do that, and that is partially why we + are working here. Forrest is designed to not only build websites for + the various Apache projects, but also so that you can apply your own skins + to your own content. Try this ... + "./build.sh clean docs -Duse.skin=basic" + then copy the basic skin to make your own. +

+

+ The forrestbot is under-development to + automate the production of your documentation. +

+
+
+ + + + Why am i a little confused by the Forrest documentation? + + +

+ Sorry, we are working on that for the next release. Forrest development has + been very fast recently. Some of the documentation refers to old methods. + Your best bet is to start with the + Using Forrest document. +

+
+
+ + + + How can i help? + + +

+ Join the forrest-dev mailing list + and help to discuss it. Read the + Forrest Primer for an overview. + See the + To Do List and choose something that + interests you. +

+
+
+
1.7 +5 -1 xml-forrest/src/resources/fresh-site/src/documentation/content/xdocs/site.xml Index: site.xml =================================================================== RCS file: /home/cvs/xml-forrest/src/resources/fresh-site/src/documentation/content/xdocs/site.xml,v retrieving revision 1.6 retrieving revision 1.7 diff -u -r1.6 -r1.7 --- site.xml 25 Jan 2003 11:30:28 -0000 1.6 +++ site.xml 27 Jan 2003 00:26:23 -0000 1.7 @@ -25,6 +25,7 @@ + @@ -35,7 +36,10 @@ - + + + + 1.1 xml-forrest/src/resources/fresh-site/src/documentation/content/xdocs/faq.xml Index: faq.xml =================================================================== Documentation How can I help write documentation?

This project uses Apache Forrest to generate documentation from XML. Please download a copy of Forrest, which can be used to validate, develop and render a project site.

1.5 +27 -5 xml-forrest/src/resources/library/xslt/faq2document.xsl Index: faq2document.xsl =================================================================== RCS file: /home/cvs/xml-forrest/src/resources/library/xslt/faq2document.xsl,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- faq2document.xsl 1 Nov 2002 02:55:09 -0000 1.4 +++ faq2document.xsl 27 Jan 2003 00:26:23 -0000 1.5 @@ -28,7 +28,10 @@
  • - + + + # +
      @@ -39,16 +42,21 @@
    • - + + + # +
    • -
      - + <xsl:attribute name="id"> + <xsl:call-template name="generate-id"/> + </xsl:attribute> + <title> <xsl:value-of select="title"/> @@ -56,13 +64,27 @@ -
      + + + <xsl:value-of select="question"/>
      +
      + + + ## Got node + + + + + + + +