Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Apache: Docs

Re: svn commit: r1335366 - /httpd/httpd/trunk/docs/manual/style/xsl/common.xsl

 

 

Apache docs RSS feed   Index | Next | Previous | View Threaded


nd at perlig

May 8, 2012, 12:42 AM

Post #1 of 3 (155 views)
Permalink
Re: svn commit: r1335366 - /httpd/httpd/trunk/docs/manual/style/xsl/common.xsl

On Tuesday 08 May 2012 09:35:25 humbedooh [at] apache 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 [at] httpd
For additional commands, e-mail: docs-help [at] httpd


rumble at cord

May 8, 2012, 7:35 AM

Post #2 of 3 (147 views)
Permalink
Re: svn commit: r1335366 - /httpd/httpd/trunk/docs/manual/style/xsl/common.xsl [In reply to]

On 08-05-2012 09:42, André Malo wrote:
> On Tuesday 08 May 2012 09:35:25 humbedooh [at] apache 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 [at] httpd
> For additional commands, e-mail: docs-help [at] httpd
>
I'm not sure I quite follow you there. Could you elaborate on this?

With regards,
Daniel.

---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe [at] httpd
For additional commands, e-mail: docs-help [at] httpd


nd at perlig

May 8, 2012, 7:56 AM

Post #3 of 3 (148 views)
Permalink
Re: svn commit: r1335366 - /httpd/httpd/trunk/docs/manual/style/xsl/common.xsl [In reply to]

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 [at] apache 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 [at] httpd
For additional commands, e-mail: docs-help [at] httpd

Apache docs RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.