Author: jgrandy
Date: 2007-07-19 09:29:19 -0700 (Thu, 19 Jul 2007)
New Revision: 5704

Added:
   openlaszlo/branches/legals/docs/src/xsl/dbk-toc2nav.xsl
Modified:
   openlaszlo/branches/legals/docs/src/build.xml
   openlaszlo/branches/legals/docs/src/xsl/dbkpreprocessexamples.xsl
   openlaszlo/branches/legals/docs/src/xsl/parameters.xsl
Log:
Change 20070718-jgrandyw-D by [EMAIL PROTECTED] on 2007-07-18 23:09:39 PDT
    in /Users/jgrandyw/dev/svn/openlaszlo/branches/legals
    for http://svn.openlaszlo.org/openlaszlo/branches/legals

Summary: Incomplete attempt to generate XML TOC from HTML title page. See 
comments in docs/src/build.xml for details.

New Features:

Bugs Fixed:

Technical Reviewer: (pending)
QA Reviewer: (pending)
Doc Reviewer: (pending)

Documentation:

Release Notes:

Details:
    

Tests:



Modified: openlaszlo/branches/legals/docs/src/build.xml
===================================================================
--- openlaszlo/branches/legals/docs/src/build.xml       2007-07-19 16:30:12 UTC 
(rev 5703)
+++ openlaszlo/branches/legals/docs/src/build.xml       2007-07-19 16:29:19 UTC 
(rev 5704)
@@ -1183,6 +1183,47 @@
     </antcall>
   </target>
   
+  <!-- Theoretically, this task can be used to generate an XML version of the 
+       User Guide's table of contents. This XML TOC could be used to
+       drive a left navigation bar for a more interactive interface to the
+       User's Guide. However, there are two problems that have yet to be 
+       resolved:
+       
+       1. This task requires that docs/userindex.html be a valid XML document,
+          which means that it must be output as XHTML
+          
+       2. Saxon 6.5.5 appears to output header material when generating XML in
+          this particular case. Simply turning on XHTML (by loading 
+          'xhtml/chunk.xsl' instead of 'html/chunk.xsl' in common-html.xsl)
+          causes userindex.html to have this header:
+          
+          <?xml version="1.0" encoding="UTF-8"?>tandalone="yes"?>
+
+          Turning off generation of the xml header similarly causes Saxon to
+          generate a truncated version of the DOCTYPE declaration.
+          
+          It appears to be a buffer overflow or underflow error.
+    -->
+  <target name="users.xmltoc" depends="init">
+    <java classname="com.icl.saxon.StyleSheet"
+          fork="yes"
+          failonerror="yes"
+          maxmemory="512m">
+      <classpath refid="saxon.processor.classpath"/>
+      <jvmarg 
value="-Djavax.xml.parsers.DocumentBuilderFactory=org.apache.xerces.jaxp.DocumentBuilderFactoryImpl"/>
+      <jvmarg 
value="-Djavax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAXParserFactoryImpl"/>
+      <jvmarg 
value="-Dorg.apache.xerces.xni.parser.XMLParserConfiguration=org.apache.xerces.parsers.XIncludeParserConfiguration"/>
+
+      <arg line="-x org.apache.xml.resolver.tools.ResolvingXMLReader"/>
+      <arg line="-y org.apache.xml.resolver.tools.ResolvingXMLReader"/>
+      <arg line="-r org.apache.xml.resolver.tools.CatalogResolver"/>
+      <arg line="-o ${docs.output.dir}/userindex.xml"/>
+      <arg line="${docs.output.dir}/userindex.html"/>
+      <arg line="xsl/dbk-toc2nav.xsl"/>
+      <arg line="base.dir=${docs.output.dir}/"/>
+    </java>
+  </target>
+  
   <target name="users.clean" 
depends="reference.clean,developers.clean,deployers.clean">
     <delete failonerror="false">
       <fileset dir="${docs.output.dir}" includes="userindex.dbk"/>

Added: openlaszlo/branches/legals/docs/src/xsl/dbk-toc2nav.xsl


Property changes on: openlaszlo/branches/legals/docs/src/xsl/dbk-toc2nav.xsl
___________________________________________________________________
Name: svn:mime-type
   + text/plain
Name: svn:eol-style
   + native

Modified: openlaszlo/branches/legals/docs/src/xsl/dbkpreprocessexamples.xsl
===================================================================
--- openlaszlo/branches/legals/docs/src/xsl/dbkpreprocessexamples.xsl   
2007-07-19 16:30:12 UTC (rev 5703)
+++ openlaszlo/branches/legals/docs/src/xsl/dbkpreprocessexamples.xsl   
2007-07-19 16:29:19 UTC (rev 5704)
@@ -18,7 +18,6 @@
                 exclude-result-prefixes="exslt dyn xi saxon dbk"
                 version="1.0">
 
-  <?xsl :import 
href="http://docbook.sourceforge.net/release/xsl/current/html/chunk.xsl"/ ?>
   <xsl:import 
href="http://docbook.sourceforge.net/release/xsl/current/lib/lib.xsl"/>
   <xsl:import href="lzx-pretty-print.xsl"/>
 

Modified: openlaszlo/branches/legals/docs/src/xsl/parameters.xsl
===================================================================
--- openlaszlo/branches/legals/docs/src/xsl/parameters.xsl      2007-07-19 
16:30:12 UTC (rev 5703)
+++ openlaszlo/branches/legals/docs/src/xsl/parameters.xsl      2007-07-19 
16:29:19 UTC (rev 5704)
@@ -51,23 +51,23 @@
   <xsl:param name="show.comments">1</xsl:param>
 
   <xsl:param name="generate.toc">
+    set       toc,title,index
+    book      toc,title,figure,table,example,equation,refentry
+    part      toc,title,figure,table,example,equation,refentry
+    chapter   toc,title
+    preface   toc,title
+    reference toc,title
     appendix  toc,title
-    appendix/index  toc,title
-    article/appendix  nop
-    article   toc,title
-    book      toc,title
-    chapter   toc,title,figure,table,example,equation,refentry
-    part      toc,title
-    preface   toc,title
     qandadiv  toc
     qandaset  toc
-    reference toc,title
     sect1     toc
     sect2     toc
     sect3     toc
     sect4     toc
     sect5     toc
     section   toc
-    set       toc,title
+    appendix/index  toc,title
+    article/appendix  nop
+    article   toc,title
   </xsl:param>
 </xsl:stylesheet>


_______________________________________________
Laszlo-checkins mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-checkins

Reply via email to