httpd-docs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yoshiki Hayashi <yosh...@xemacs.org>
Subject Re: cvs commit: httpd-2.0/docs/manual/mod mpm_common.xml
Date Wed, 15 May 2002 03:52:20 GMT
Disclaimer: I've only started reading XSLT spec recently and
don't understand details yet.

Justin Erenkrantz <jerenkrantz@apache.org> writes:

> On Mon, May 13, 2002 at 11:59:11AM -0400, Cliff Woolley wrote:
> > Yeah, I tried fixing this PR myself yesterday, but when I ran the
> > transform, it made hundreds of changes to the mpm_common.html file, some
> > of which were no longer valid XHTML.  (Eg, <br /> became <br>)  I assume
> > it's something wrong with my setup (and presumably yours as well, since
> > you say "a good transform setup")?
> 
> Indeed.  I think either someone committed a bad transform or we
> don't have the right versions of the tools.  I think Joshua was
> talking about posting the "right" versions - because what I've
> got changes all files in the manner you've described.  -- justin

I used Xalan-J and got the same changes.  However, looking
at the XSTL spec, <br /> becoming <br> seems like the
correct transformation for html output method.

http://www.w3.org/TR/xslt#section-HTML-Output-Method

    The html output method should not output an end-tag for
    empty elements. For HTML 4.0, the empty elements are area,
    base, basefont, br, col, frame, hr, img, input, isindex,
    link, meta and param. For example, an element written as
    <br/> or <br></br> in the stylesheet should be output as
    <br>.

So I suggest the following patch to change output method to
xml.  With this change, the generated files looks correct
XHTML to me.

The reason I didn't commit this is that I'm not familiar
enough with XSLT to know what other results this change
would give us.  Does this look OK to XSLT-literate people?

Index: manual/style/manual.xsl
===================================================================
RCS file: /home/cvs/httpd-2.0/docs/manual/style/manual.xsl,v
retrieving revision 1.20
diff -u -r1.20 manual.xsl
--- manual/style/manual.xsl	9 May 2002 16:12:06 -0000	1.20
+++ manual/style/manual.xsl	15 May 2002 03:36:36 -0000
@@ -12,7 +12,7 @@
   <!-- Include constants, variables, and macros -->
   <xsl:import href="settings.xsl" />
 
-  <xsl:output method="html" encoding="iso-8859-1" indent="no"/>
+  <xsl:output method="xml" encoding="iso-8859-1" indent="no"/>
 
   <!--                              -->
   <!-- Builds the moduleindex page  -->


-- 
Yoshiki Hayashi

---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org


Mime
View raw message