You are viewing a plain text version of this content. The canonical link for it is here.
Posted to svn@forrest.apache.org by tw...@apache.org on 2005/09/09 15:44:59 UTC

svn commit: r279773 - /forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.xhtml2/resources/stylesheets/xhtml2_to_html.xsl

Author: twilliams
Date: Fri Sep  9 06:44:45 2005
New Revision: 279773

URL: http://svn.apache.org/viewcvs?rev=279773&view=rev
Log:
reverted last changes

Modified:
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.xhtml2/resources/stylesheets/xhtml2_to_html.xsl

Modified: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.xhtml2/resources/stylesheets/xhtml2_to_html.xsl
URL: http://svn.apache.org/viewcvs/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.xhtml2/resources/stylesheets/xhtml2_to_html.xsl?rev=279773&r1=279772&r2=279773&view=diff
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.xhtml2/resources/stylesheets/xhtml2_to_html.xsl (original)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.xhtml2/resources/stylesheets/xhtml2_to_html.xsl Fri Sep  9 06:44:45 2005
@@ -33,16 +33,16 @@
   xmlns="http://www.w3.org/2002/06/xhtml2" 
   xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
   xmlns:html="http://www.w3.org/2002/06/xhtml2"
-  >
+  > 
   <!-- If imported into another stylesheet, allow the first level heading
     -  depth to be configured -->
   <xsl:param name="xhtml-heading" select="1"/>
 
-  <!-- Use XHTML 1.0 as the output schema 
+  <!-- Use XHTML 1.0 as the output schema -->
   <xsl:output method="html" version="1.0" encoding="utf-8"
     omit-xml-declaration="yes" media-type="text/html"
     doctype-public="-//W3C//DTD HTML 4.01//EN"
-    doctype-system="http://www.w3.org/TR/html4/strict.dtd"/>-->
+    doctype-system="http://www.w3.org/TR/html4/strict.dtd"/>
 
   <!-- Copy elements by default -->
   <xsl:template match="comment()">
@@ -755,33 +755,18 @@
     -->
   <!-- Add our Subversion/CVS Id to the root element -->
   <xsl:template match="html:html">
-  <!-- most of this template is placeholder stuff to get it to look like 
-      the resultant document2html so that I can see if I'm going down
-      the correct path
-      -->
-   <tocitems>
-     <tocitem level="1" href="#welcome" title="Welcome"></tocitem>
-    </tocitems>
-   <meta-data></meta-data>
-   <div id="content">
-    <div id="skinconf-printlink"></div>
-    <div id="skinconf-xmllink"></div>
-    <div id="skinconf-podlink"></div>
-    <div id="skinconf-txtlink"></div>
-    <div id="skinconf-pdflink"></div>
-    <div id="disable-font-script"></div>
-
+   <xsl:comment> $Id: xhtml2html.xslt 127 2004-11-14 03:06:21Z etherealwake $ </xsl:comment>
+   <html>
     <xsl:apply-templates select="@*"/>
     <xsl:apply-templates/>
-   
-   </div>
+   </html>
   </xsl:template>
   <!-- Specify namespace for metadata (if not using schema.X links) -->
   <xsl:template match="html:html/@profile">
    <xsl:attribute name="profile"><xsl:value-of select="."/></xsl:attribute>
   </xsl:template>
   <!-- Add a generator tag to the head section -->
-  <xsl:template match="html:headDISABLED">
+  <xsl:template match="html:head">
    <head>
     <xsl:apply-templates select="@*"/>
     <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
@@ -792,7 +777,7 @@
    </head>
   </xsl:template>
   <!-- <title> and <body> are pretty much copied as is -->
-  <xsl:template match="html:title|html:bodyDISABLE">
+  <xsl:template match="html:title|html:body">
    <xsl:element name="{local-name()}">
     <xsl:apply-templates select="@*"/>
     <xsl:apply-templates/>
@@ -829,7 +814,7 @@
    </xsl:choose>
   </xsl:template>
   <!-- We will treat sections as simple <div>s of class section -->
-  <xsl:template match="html:section|html:body">
+  <xsl:template match="html:section">
    <xsl:call-template name="block">
     <xsl:with-param name="element" select="'div'"/>
     <xsl:with-param name="class" select="'section'"/>