cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject cvs commit: xml-cocoon2/documentation/stylesheets doclist2document.xsl
Date Wed, 21 Nov 2001 13:56:02 GMT
crossley    01/11/21 05:56:02

  Added:       documentation/stylesheets doclist2document.xsl
  New stylesheet for "List of docs".
  Revision  Changes    Path
  1.1                  xml-cocoon2/documentation/stylesheets/doclist2document.xsl
  Index: doclist2document.xsl
  <?xml version="1.0"?>
   <xsl:import href="copyover.xsl"/>
   <xsl:template match="doclist">
      <title>List of all documentation</title>
       This complete list shows, at-a-glance, how all of the documentation
       fits together. The side-panel of each page is used to reach relevant
       documents, according to its location in the hierarchical documentation.
  <anchor id="issues"/>
      <note>FIXME: many of the links are busted, because the first transformation
       does not have available the path info (e.g. userdocs/concepts/). We only
       have a relative URI available (e.g. catalog.html). One way to fix that
       would be to add a &quot;uri&quot; attribute to the &lt;book&gt; element
       in each book.xml (sounds hack). Another possibility: can a variable be
       passed via each map:part ?
      <note>The documentation/sitemap.xmap defines the aggregation and
       transformations for match=doclist
   <xsl:template match="book">
    <s1 title="{@title}">
   <xsl:template match="menu[position()=1]">
   <xsl:template match="menu">
    <p><strong><xsl:value-of select="@label"/></strong></p>
   <xsl:template match="menu-item | external">
    <xsl:if test="not(@type) or @type!='hidden'">
     <xsl:if test="@label!='Main' and @label!='User Documentation'">
      <li><xsl:value-of select="@label"/>
       (<link href="#issues">link coming soon</link> for
        <code>href=<xsl:value-of select="@href"/></code>)
      <li><link href="{@href}"><xsl:value-of select="@label"/></link></li>
   <xsl:template match="node()|@*" priority="-1"/>

In case of troubles, e-mail:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message