Re: change doctype to XHTML1.0 STRICT - question to the developers

florent Claude <[email protected]> Tue, 17 Nov 2009 22:07:09 +0100
Newsgroups gmane.comp.cms.bitflux.general
Message-ID <[email protected]>
This is a multi-part message in MIME format.
--===============0085356041==
Content-Type: multipart/alternative;
 boundary="------------050609050405010606080008"

This is a multi-part message in MIME format.
--------------050609050405010606080008
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: quoted-printable

By default, the first xsl to be called is static.xsl


list.fluxcms a =C3=A9crit :
> I use following code in my xsl-stylesheets: (this is master.xsl)
>
> <xsl:stylesheet version=3D"1.0"
>     xmlns:xsl=3D"http://www.w3.org/1999/XSL/Transform"
>         xmlns:xhtml=3D"http://www.w3.org/1999/xhtml"
>         xmlns=3D"http://www.w3.org/1999/xhtml"
>         xmlns:forms=3D"http://bitflux.org/forms"
>         xmlns:php=3D"http://php.net/xsl"
>         xmlns:i18n=3D"http://apache.org/cocoon/i18n/2.1"
>         exclude-result-prefixes=3D"xhtml forms php i18n"
>
>         >
>     <xsl:import href=3D"../standard/mastercommon.xsl" />
>     <xsl:output encoding=3D"utf-8" method=3D"xml"
>     doctype-system=3D"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd=
"
>     doctype-public=3D"-//W3C//DTD XHTML 1.0 Strict//EN"/>
>
> And I added to ../standard/mastercommon.xsl:
>
> <xsl:stylesheet version=3D"1.0"
>     xmlns:xsl=3D"http://www.w3.org/1999/XSL/Transform"
>         xmlns:xhtml=3D"http://www.w3.org/1999/xhtml"
>         xmlns=3D"http://www.w3.org/1999/xhtml"
>         xmlns:forms=3D"http://bitflux.org/forms"
>         xmlns:php=3D"http://php.net/xsl"
>      xmlns:i18n=3D"http://apache.org/cocoon/i18n/2.1"
>         exclude-result-prefixes=3D"xhtml forms php i18n"
>
>         >
>     <xsl:output encoding=3D"utf-8" method=3D"xml"
>     doctype-system=3D"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd=
"
>     doctype-public=3D"-//W3C//DTD XHTML 1.0 Strict//EN"/>
>
>
> But still -- Transitional :-(
>
> Thomas.
>  =20

--------------050609050405010606080008
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content=3D"text/html;charset=3DUTF-8" http-equiv=3D"Content-Type"=
>
</head>
<body bgcolor=3D"#ffffff" text=3D"#000000">
<font face=3D"sans-serif">By default, the first xsl to be called is
static.xsl<br>
<br>
</font><br>
list.fluxcms a =C3=A9crit=C2=A0:
<blockquote cite=3D"mid:388184e089e0746be232ac808507350d@localhost"
 type=3D"cite">
  <pre wrap=3D"">I use following code in my xsl-stylesheets: (this is mas=
ter.xsl)

&lt;xsl:stylesheet version=3D"1.0"
    xmlns:xsl=3D<a class=3D"moz-txt-link-rfc2396E" href=3D"http://www.w3.=
org/1999/XSL/Transform">"http://www.w3.org/1999/XSL/Transform"</a>
        xmlns:xhtml=3D<a class=3D"moz-txt-link-rfc2396E" href=3D"http://w=
ww.w3.org/1999/xhtml">"http://www.w3.org/1999/xhtml"</a>
        xmlns=3D<a class=3D"moz-txt-link-rfc2396E" href=3D"http://www.w3.=
org/1999/xhtml">"http://www.w3.org/1999/xhtml"</a>
        xmlns:forms=3D<a class=3D"moz-txt-link-rfc2396E" href=3D"http://b=
itflux.org/forms">"http://bitflux.org/forms"</a>
        xmlns:php=3D<a class=3D"moz-txt-link-rfc2396E" href=3D"http://php=
.net/xsl">"http://php.net/xsl"</a>
        xmlns:i18n=3D<a class=3D"moz-txt-link-rfc2396E" href=3D"http://ap=
ache.org/cocoon/i18n/2.1">"http://apache.org/cocoon/i18n/2.1"</a>
        exclude-result-prefixes=3D"xhtml forms php i18n"

        &gt;
    &lt;xsl:import href=3D"../standard/mastercommon.xsl" /&gt;
    &lt;xsl:output encoding=3D"utf-8" method=3D"xml"
    doctype-system=3D<a class=3D"moz-txt-link-rfc2396E" href=3D"http://ww=
w.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">"http://www.w3.org/TR/xhtml1/DT=
D/xhtml1-strict.dtd"</a>
    doctype-public=3D"-//W3C//DTD XHTML 1.0 Strict//EN"/&gt;

And I added to ../standard/mastercommon.xsl:

&lt;xsl:stylesheet version=3D"1.0"
    xmlns:xsl=3D<a class=3D"moz-txt-link-rfc2396E" href=3D"http://www.w3.=
org/1999/XSL/Transform">"http://www.w3.org/1999/XSL/Transform"</a>
        xmlns:xhtml=3D<a class=3D"moz-txt-link-rfc2396E" href=3D"http://w=
ww.w3.org/1999/xhtml">"http://www.w3.org/1999/xhtml"</a>
        xmlns=3D<a class=3D"moz-txt-link-rfc2396E" href=3D"http://www.w3.=
org/1999/xhtml">"http://www.w3.org/1999/xhtml"</a>
        xmlns:forms=3D<a class=3D"moz-txt-link-rfc2396E" href=3D"http://b=
itflux.org/forms">"http://bitflux.org/forms"</a>
        xmlns:php=3D<a class=3D"moz-txt-link-rfc2396E" href=3D"http://php=
.net/xsl">"http://php.net/xsl"</a>
     xmlns:i18n=3D<a class=3D"moz-txt-link-rfc2396E" href=3D"http://apach=
e.org/cocoon/i18n/2.1">"http://apache.org/cocoon/i18n/2.1"</a>
        exclude-result-prefixes=3D"xhtml forms php i18n"

        &gt;
    &lt;xsl:output encoding=3D"utf-8" method=3D"xml"
    doctype-system=3D<a class=3D"moz-txt-link-rfc2396E" href=3D"http://ww=
w.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">"http://www.w3.org/TR/xhtml1/DT=
D/xhtml1-strict.dtd"</a>
    doctype-public=3D"-//W3C//DTD XHTML 1.0 Strict//EN"/&gt;


But still -- Transitional :-(

Thomas.
  </pre>
</blockquote>
</body>
</html>

--------------050609050405010606080008--

--===============0085356041==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

-- 
bitflux-cms mailing list
[email protected]
http://lists.bitflux.ch/cgi-bin/listinfo/bitflux-cms

--===============0085356041==--