You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by hu...@apache.org on 2012/05/08 09:35:25 UTC
svn commit: r1335366 - /httpd/httpd/trunk/docs/manual/style/xsl/common.xsl
Author: humbedooh
Date: Tue May 8 07:35:24 2012
New Revision: 1335366
URL: http://svn.apache.org/viewvc?rev=1335366&view=rev
Log:
Small hack so the XSLT process won't turn <div></div> into <div/>, thus messing up the DOM tree.
Modified:
httpd/httpd/trunk/docs/manual/style/xsl/common.xsl
Modified: httpd/httpd/trunk/docs/manual/style/xsl/common.xsl
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/style/xsl/common.xsl?rev=1335366&r1=1335365&r2=1335366&view=diff
==============================================================================
--- httpd/httpd/trunk/docs/manual/style/xsl/common.xsl (original)
+++ httpd/httpd/trunk/docs/manual/style/xsl/common.xsl Tue May 8 07:35:24 2012
@@ -293,8 +293,8 @@
<div class="section">
<h2><a name="comments_section" id="comments_section"><xsl:value-of select="$message[@id='comments']" /></a></h2>
<div class="warning"><strong>This section is experimental!</strong><br/>Comments placed here should not be expected
-to last beyond the testing phase of this system, nor do we in any way guarantee that we'll read them.</div>
-<div id="disqus_thread"></div>
+to last beyond the testing phase of this system, nor do we in any way guarantee that we'll read them.</div>&lf;
+<div id="disqus_thread">&lf;</div>
<script type="text/javascript">
<xsl:text disable-output-escaping="yes"><![CDATA[<!--//--><![CDATA[//><!--]]></xsl:text>
var lang = '<xsl:value-of select="$doclang"/>';<![CDATA[
Re: svn commit: r1335366 - /httpd/httpd/trunk/docs/manual/style/xsl/common.xsl
Posted by André Malo <nd...@perlig.de>.
On Tuesday 08 May 2012 16:35:05 Daniel Gruno wrote:
> On 08-05-2012 09:42, André Malo wrote:
> > On Tuesday 08 May 2012 09:35:25 humbedooh@apache.org wrote:
> >> URL: http://svn.apache.org/viewvc?rev=1335366&view=rev
> >> Log:
> >> Small hack so the XSLT process won't turn <div></div> into <div/>, thus
> >> messing up the DOM tree.
> >
> > Suggestion: document.write() the div container. Then it's also better
> > HTML without JS.
> I'm not sure I quite follow you there. Could you elaborate on this?
Currently there's an empty <div></div> container in the HTML, which is... well
semantic crap ;)
Since the comments are only available if JS is enabled (and only then the div
container is useful), the suggestion is to create the div from within the
javascript.
document.write('<div><\/div>');
This also solves the <div/> problem, since xslt doesn't prcoess it at all.
nd
---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org
Re: svn commit: r1335366 - /httpd/httpd/trunk/docs/manual/style/xsl/common.xsl
Posted by Daniel Gruno <ru...@cord.dk>.
On 08-05-2012 09:42, André Malo wrote:
> On Tuesday 08 May 2012 09:35:25 humbedooh@apache.org wrote:
>
>> URL: http://svn.apache.org/viewvc?rev=1335366&view=rev
>> Log:
>> Small hack so the XSLT process won't turn <div></div> into <div/>, thus
>> messing up the DOM tree.
>
> Suggestion: document.write() the div container. Then it's also better HTML
> without JS.
>
> nd
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
> For additional commands, e-mail: docs-help@httpd.apache.org
>
I'm not sure I quite follow you there. Could you elaborate on this?
With regards,
Daniel.
---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org
Re: svn commit: r1335366 - /httpd/httpd/trunk/docs/manual/style/xsl/common.xsl
Posted by André Malo <nd...@perlig.de>.
On Tuesday 08 May 2012 09:35:25 humbedooh@apache.org wrote:
> URL: http://svn.apache.org/viewvc?rev=1335366&view=rev
> Log:
> Small hack so the XSLT process won't turn <div></div> into <div/>, thus
> messing up the DOM tree.
Suggestion: document.write() the div container. Then it's also better HTML
without JS.
nd
---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org