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

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

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

If you don't mention XHTML Transitional nowhere but  still see it=20
generated, then it is a supernatural...
Nothing I can do for that ;-)


list.fluxcms a =C3=A9crit :
> OK. But my mytheme/staticl.xsl starts:
>
> <?xml version=3D"1.0"?>
> <xsl:stylesheet version=3D"1.0"=20
> xmlns:i18n=3D"http://apache.org/cocoon/i18n/2.1"=20
> xmlns:xsl=3D"http://www.w3.org/1999/XSL/Transform"=20
> xmlns:xhtml=3D"http://www.w3.org/1999/xhtml"=20
> xmlns=3D"http://www.w3.org/1999/xhtml" exclude-result-prefixes=3D"xhtml=
">
>     <xsl:import href=3D"../standard/common.xsl"/>
>     <xsl:import href=3D"master.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 my ../standard/common.xsl:
>
> <?xml version=3D"1.0"?>
> <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:php=3D"http://php.net/xsl"
>     xmlns:i18n=3D"http://apache.org/cocoon/i18n/2.1"
>     xmlns:blog=3D"http://bitflux.org/doctypes/blog"
>     exclude-result-prefixes=3D"xhtml php blog 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"/>
>
>
>
> Thomas.
>
> Zitat von florent Claude <[email protected]>:
>
>> I meant : By default, the first xsl to be called is
>> /themes/your_theme/static.xsl
>>
>>
>>
>> list.fluxcms a =C3=A9crit :
>>> And that, what my standard/static.xsl is looking:
>>>
>>>
>>> <?xml version=3D"1.0"?>
>>> <xsl:stylesheet version=3D"1.0" =20
>>> xmlns:xsl=3D"http://www.w3.org/1999/XSL/Transform" =20
>>> xmlns:xhtml=3D"http://www.w3.org/1999/xhtml" =20
>>> xmlns=3D"http://www.w3.org/1999/xhtml">
>>>    <xsl:output encoding=3D"utf-8" method=3D"xml"
>>>    doctype-system=3D"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dt=
d"
>>>    doctype-public=3D"-//W3C//DTD XHTML 1.0 Strict//EN"/>
>>>    <xsl:template match=3D"/">
>>>
>>>        <html>
>>>
>>>            <xsl:call-template name=3D"htmlhead"/>
>>>
>>> But the result: still: transitional :-/
>>>
>>> Thomas.
>>>
>>>
>>> Zitat von florent Claude <[email protected]>:
>>>
>>>> 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.d=
td"
>>>>>   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.d=
td"
>>>>>   doctype-public=3D"-//W3C//DTD XHTML 1.0 Strict//EN"/>
>>>>>
>>>>>
>>>>> But still -- Transitional :-(
>>>>>
>>>>> Thomas.
>>>>>
>>>
>>>
>>>
>>> Thomas.
>>>
>>> ----------------------------------------------------------------
>>> This message was sent using IMP, the Internet Messaging Program.
>>>
>
>
>
> Thomas.
>
> ----------------------------------------------------------------
> This message was sent using IMP, the Internet Messaging Program.
>

--------------080803060800050106070102
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">If you don't mention XHTML Transitional nowhere
but </font><font face=3D"sans-serif"> still see it generated, </font><fon=
t
 face=3D"sans-serif">then it is a supernatural... </font><br>
Nothing I can do for that ;-)<br>
<br>
<br>
list.fluxcms a =C3=A9crit=C2=A0:
<blockquote
 cite=3D"mid:[email protected]"
 type=3D"cite">OK. But my mytheme/staticl.xsl starts:
  <br>
  <br>
&lt;?xml version=3D"1.0"?&gt;
  <br>
&lt;xsl:stylesheet version=3D"1.0"
xmlns:i18n=3D<a class=3D"moz-txt-link-rfc2396E" href=3D"http://apache.org=
/cocoon/i18n/2.1">"http://apache.org/cocoon/i18n/2.1"</a>
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://www.w3.or=
g/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>
exclude-result-prefixes=3D"xhtml"&gt;
  <br>
=C2=A0=C2=A0=C2=A0 &lt;xsl:import href=3D"../standard/common.xsl"/&gt;
  <br>
=C2=A0=C2=A0=C2=A0 &lt;xsl:import href=3D"master.xsl"/&gt;
  <br>
  <br>
=C2=A0=C2=A0=C2=A0 &lt;xsl:output encoding=3D"utf-8" method=3D"xml"
  <br>
=C2=A0=C2=A0=C2=A0 doctype-system=3D<a class=3D"moz-txt-link-rfc2396E" hr=
ef=3D"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">"http://www.w3.o=
rg/TR/xhtml1/DTD/xhtml1-strict.dtd"</a>
  <br>
=C2=A0=C2=A0=C2=A0 doctype-public=3D"-//W3C//DTD XHTML 1.0 Strict//EN"/&g=
t;
  <br>
  <br>
  <br>
And my ../standard/common.xsl:
  <br>
  <br>
&lt;?xml version=3D"1.0"?&gt;
  <br>
&lt;xsl:stylesheet version=3D"1.0"
  <br>
=C2=A0=C2=A0=C2=A0 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/Transf=
orm"</a>
  <br>
=C2=A0=C2=A0=C2=A0 xmlns:xhtml=3D<a class=3D"moz-txt-link-rfc2396E" href=3D=
"http://www.w3.org/1999/xhtml">"http://www.w3.org/1999/xhtml"</a>
  <br>
=C2=A0=C2=A0=C2=A0 xmlns=3D<a class=3D"moz-txt-link-rfc2396E" href=3D"htt=
p://www.w3.org/1999/xhtml">"http://www.w3.org/1999/xhtml"</a>
  <br>
=C2=A0=C2=A0=C2=A0 xmlns:php=3D<a class=3D"moz-txt-link-rfc2396E" href=3D=
"http://php.net/xsl">"http://php.net/xsl"</a>
  <br>
=C2=A0=C2=A0=C2=A0 xmlns:i18n=3D<a class=3D"moz-txt-link-rfc2396E" href=3D=
"http://apache.org/cocoon/i18n/2.1">"http://apache.org/cocoon/i18n/2.1"</=
a>
  <br>
=C2=A0=C2=A0=C2=A0 xmlns:blog=3D<a class=3D"moz-txt-link-rfc2396E" href=3D=
"http://bitflux.org/doctypes/blog">"http://bitflux.org/doctypes/blog"</a>
  <br>
=C2=A0=C2=A0=C2=A0 exclude-result-prefixes=3D"xhtml php blog i18n"
  <br>
=C2=A0=C2=A0=C2=A0 &gt;
  <br>
  <br>
=C2=A0=C2=A0=C2=A0 &lt;xsl:output encoding=3D"utf-8" method=3D"xml"
  <br>
=C2=A0=C2=A0=C2=A0 doctype-system=3D<a class=3D"moz-txt-link-rfc2396E" hr=
ef=3D"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">"http://www.w3.o=
rg/TR/xhtml1/DTD/xhtml1-strict.dtd"</a>
  <br>
=C2=A0=C2=A0=C2=A0 doctype-public=3D"-//W3C//DTD XHTML 1.0 Strict//EN"/&g=
t;
  <br>
  <br>
  <br>
  <br>
Thomas.
  <br>
  <br>
Zitat von florent Claude <a class=3D"moz-txt-link-rfc2396E" href=3D"mailt=
o:[email protected]">&lt;[email protected]&gt;</a>:
  <br>
  <br>
  <blockquote type=3D"cite">I meant : By default, the first xsl to be
called is
    <br>
/themes/your_theme/static.xsl
    <br>
    <br>
    <br>
    <br>
list.fluxcms a =C3=A9crit :
    <br>
    <blockquote type=3D"cite">And that, what my standard/static.xsl is
looking:
      <br>
      <br>
      <br>
&lt;?xml version=3D"1.0"?&gt;
      <br>
&lt;xsl:stylesheet version=3D"1.0"=C2=A0
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>=C2=A0
xmlns:xhtml=3D<a class=3D"moz-txt-link-rfc2396E" href=3D"http://www.w3.or=
g/1999/xhtml">"http://www.w3.org/1999/xhtml"</a>=C2=A0
xmlns=3D<a class=3D"moz-txt-link-rfc2396E" href=3D"http://www.w3.org/1999=
/xhtml">"http://www.w3.org/1999/xhtml"</a>&gt;
      <br>
=C2=A0=C2=A0 &lt;xsl:output encoding=3D"utf-8" method=3D"xml"
      <br>
=C2=A0=C2=A0 doctype-system=3D<a class=3D"moz-txt-link-rfc2396E" href=3D"=
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">"http://www.w3.org/TR/=
xhtml1/DTD/xhtml1-strict.dtd"</a>
      <br>
=C2=A0=C2=A0 doctype-public=3D"-//W3C//DTD XHTML 1.0 Strict//EN"/&gt;
      <br>
=C2=A0=C2=A0 &lt;xsl:template match=3D"/"&gt;
      <br>
      <br>
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 &lt;html&gt;
      <br>
      <br>
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 &lt;xsl:call=
-template name=3D"htmlhead"/&gt;
      <br>
      <br>
But the result: still: transitional :-/
      <br>
      <br>
Thomas.
      <br>
      <br>
      <br>
Zitat von florent Claude <a class=3D"moz-txt-link-rfc2396E" href=3D"mailt=
o:[email protected]">&lt;[email protected]&gt;</a>:
      <br>
      <br>
      <blockquote type=3D"cite">By default, the first xsl to be called is
static.xsl
        <br>
        <br>
        <br>
list.fluxcms a =C3=A9crit :
        <br>
        <blockquote type=3D"cite">I use following code in my
xsl-stylesheets: (this is master.xsl)
          <br>
          <br>
&lt;xsl:stylesheet version=3D"1.0"
          <br>
=C2=A0 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>
          <br>
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 xmlns:xhtml=3D<a class=3D"moz-txt-link-rfc=
2396E" href=3D"http://www.w3.org/1999/xhtml">"http://www.w3.org/1999/xhtm=
l"</a>
          <br>
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 xmlns=3D<a class=3D"moz-txt-link-rfc2396E"=
 href=3D"http://www.w3.org/1999/xhtml">"http://www.w3.org/1999/xhtml"</a>
          <br>
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 xmlns:forms=3D<a class=3D"moz-txt-link-rfc=
2396E" href=3D"http://bitflux.org/forms">"http://bitflux.org/forms"</a>
          <br>
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 xmlns:php=3D<a class=3D"moz-txt-link-rfc23=
96E" href=3D"http://php.net/xsl">"http://php.net/xsl"</a>
          <br>
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 xmlns:i18n=3D<a class=3D"moz-txt-link-rfc2=
396E" href=3D"http://apache.org/cocoon/i18n/2.1">"http://apache.org/cocoo=
n/i18n/2.1"</a>
          <br>
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 exclude-result-prefixes=3D"xhtml forms php=
 i18n"
          <br>
          <br>
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 &gt;
          <br>
=C2=A0 &lt;xsl:import href=3D"../standard/mastercommon.xsl" /&gt;
          <br>
=C2=A0 &lt;xsl:output encoding=3D"utf-8" method=3D"xml"
          <br>
=C2=A0 doctype-system=3D<a class=3D"moz-txt-link-rfc2396E" href=3D"http:/=
/www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">"http://www.w3.org/TR/xhtml1=
/DTD/xhtml1-strict.dtd"</a>
          <br>
=C2=A0 doctype-public=3D"-//W3C//DTD XHTML 1.0 Strict//EN"/&gt;
          <br>
          <br>
And I added to ../standard/mastercommon.xsl:
          <br>
          <br>
&lt;xsl:stylesheet version=3D"1.0"
          <br>
=C2=A0 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>
          <br>
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 xmlns:xhtml=3D<a class=3D"moz-txt-link-rfc=
2396E" href=3D"http://www.w3.org/1999/xhtml">"http://www.w3.org/1999/xhtm=
l"</a>
          <br>
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 xmlns=3D<a class=3D"moz-txt-link-rfc2396E"=
 href=3D"http://www.w3.org/1999/xhtml">"http://www.w3.org/1999/xhtml"</a>
          <br>
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 xmlns:forms=3D<a class=3D"moz-txt-link-rfc=
2396E" href=3D"http://bitflux.org/forms">"http://bitflux.org/forms"</a>
          <br>
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 xmlns:php=3D<a class=3D"moz-txt-link-rfc23=
96E" href=3D"http://php.net/xsl">"http://php.net/xsl"</a>
          <br>
=C2=A0=C2=A0 xmlns:i18n=3D<a class=3D"moz-txt-link-rfc2396E" href=3D"http=
://apache.org/cocoon/i18n/2.1">"http://apache.org/cocoon/i18n/2.1"</a>
          <br>
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 exclude-result-prefixes=3D"xhtml forms php=
 i18n"
          <br>
          <br>
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 &gt;
          <br>
=C2=A0 &lt;xsl:output encoding=3D"utf-8" method=3D"xml"
          <br>
=C2=A0 doctype-system=3D<a class=3D"moz-txt-link-rfc2396E" href=3D"http:/=
/www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">"http://www.w3.org/TR/xhtml1=
/DTD/xhtml1-strict.dtd"</a>
          <br>
=C2=A0 doctype-public=3D"-//W3C//DTD XHTML 1.0 Strict//EN"/&gt;
          <br>
          <br>
          <br>
But still -- Transitional :-(
          <br>
          <br>
Thomas.
          <br>
          <br>
        </blockquote>
      </blockquote>
      <br>
      <br>
      <br>
Thomas.
      <br>
      <br>
----------------------------------------------------------------
      <br>
This message was sent using IMP, the Internet Messaging Program.
      <br>
      <br>
    </blockquote>
  </blockquote>
  <br>
  <br>
  <br>
Thomas.
  <br>
  <br>
----------------------------------------------------------------
  <br>
This message was sent using IMP, the Internet Messaging Program.
  <br>
  <br>
</blockquote>
</body>
</html>

--------------080803060800050106070102--

--===============0297470791==
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

--===============0297470791==--