You are viewing a plain text version of this content. The canonical link for it is here.
Posted to docs@httpd.apache.org by Erik Abele <er...@codefaktor.de> on 2003/07/29 17:38:10 UTC

xml/xhtml validation issues

Just a quick heads up for our translators...

I got the following errors while validating the XML sources of our docs 
(both the 2.0 branch and cvs head):

APACHE_2_0_BRANCH

validate-xml:
[xmlvalidate] /Users/erik/Desktop/manual-2.0/handler.xml.ru:146:56: 
Element type "nobr" must be declared.
[xmlvalidate] /Users/erik/Desktop/manual-2.0/handler.xml.ru:155:80: The 
content of element type "p" must match 
"(em|strong|code|a|br|directive|module|img|cite|q|dfn|var|transnote)".
[xmlvalidate] /Users/erik/Desktop/manual-2.0/handler.xml.ru is not a 
valid XML document

CVS HEAD

validate-xml:
[xmlvalidate] 
/Users/erik/Desktop/manual-2.1/vhosts/name-based.xml.ja:201:20: 
Attribute "modoule" must be declared for element type "directive".
[xmlvalidate] /Users/erik/Desktop/manual-2.1/vhosts/name-based.xml.ja 
is not a valid XML document

I can't fix this by myself at the moment because of charset issues. The 
solutions are obvious: the first one nags on the <nobr> tag which 
should be omitted (IMHO) and the second one is just a typo.

Cheers,
Erik


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


Re: xml/xhtml validation issues

Posted by André Malo <nd...@perlig.de>.
* Erik Abele wrote:

> On 29/07/2003, at 05:51, Ilia Soldis wrote:
> 
>> It's a pity that we can not use <nobr> tag in documents. It is used to
>> make
>> code string r->handler unbreakable. It looks ugly: r
>> ->handler
>> or r->
>> handler.
>> But ok I'll remove it.
> 
> AFAIK <nobr> wasn't even in the W3C HTML4 spec and is definitely not in
> the XHTML specs. It's purely propietary... but as a solution we could
> use something like 'whitespace: nowrap;' in the CSS and a <span
> class="foo"> tag to apply the style inline.
> 
> I'd be happy to provide a patch, if it turns out to be such important
> but for now I don't see a strong need for it.

This happens afaik only in IE and 'white-space: nowrap' doesn't help (simply
because it's not a whitespace :-). So it's not worth the effort.
I'm fine with removing <nobr>, *shrug* it's HTML. It's not expected to be
displayed exactly everwhere. Just imagine a text browser that breaks at 80
chars per line...

Side note: Ilia, please do not add extra information into the translation at
all (except <transnote>s, of course). The way to add things is always English
original -> translation/transformation/whatever (or should be, however).

nd

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


Re: xml/xhtml validation issues

Posted by Erik Abele <er...@codefaktor.de>.
On 29/07/2003, at 05:51, Ilia Soldis wrote:

> It's a pity that we can not use <nobr> tag in documents. It is used to 
> make
> code string r->handler unbreakable. It looks ugly: r
> ->handler
> or r->
> handler.
> But ok I'll remove it.

AFAIK <nobr> wasn't even in the W3C HTML4 spec and is definitely not in 
the XHTML specs. It's purely propietary... but as a solution we could 
use something like 'whitespace: nowrap;' in the CSS and a <span 
class="foo"> tag to apply the style inline.

I'd be happy to provide a patch, if it turns out to be such important 
but for now I don't see a strong need for it.

Cheers,
Erik


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


Re: xml/xhtml validation issues

Posted by Ilia Soldis <so...@infolio.ru>.
> validate-xml:
> [xmlvalidate] /Users/erik/Desktop/manual-2.0/handler.xml.ru:146:56:
> Element type "nobr" must be declared.
> [xmlvalidate] /Users/erik/Desktop/manual-2.0/handler.xml.ru:155:80: The
> content of element type "p" must match
> "(em|strong|code|a|br|directive|module|img|cite|q|dfn|var|transnote)".
> [xmlvalidate] /Users/erik/Desktop/manual-2.0/handler.xml.ru is not a
> valid XML document
>

> I can't fix this by myself at the moment because of charset issues. The
> solutions are obvious: the first one nags on the <nobr> tag which
> should be omitted (IMHO) and the second one is just a typo.

It's a pity that we can not use <nobr> tag in documents. It is used to make
code string r->handler unbreakable. It looks ugly: r
->handler
or r->
handler.
But ok I'll remove it.


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


Re: xml/xhtml validation issues

Posted by Erik Abele <er...@codefaktor.de>.
Thanks Marika, applied.
Also thanks to Ilia, who fixed the other issue :-)

Cheers,
Erik

On 29/07/2003, at 06:14, marika@plum.freemail.ne.jp wrote:

> On Tue, 29 Jul 2003 17:38:10 +0200
> Erik Abele <er...@codefaktor.de> wrote by Apple Mail (2.552) :
> xml/xhtml validation issues
>
>> validate-xml:
>> [xmlvalidate]
>> /Users/erik/Desktop/manual-2.1/vhosts/name-based.xml.ja:201:20:
>> Attribute "modoule" must be declared for element type "directive".
>> [xmlvalidate] /Users/erik/Desktop/manual-2.1/vhosts/name-based.xml.ja
>> is not a valid XML document
>
> apply please
>
>
> --
> BIBLONE3
> Nobuyuki Morita
> marika@plum.freemail.ne.jp--- 
> httpd-docs-2.1\manual\vhosts\name-based.xml.ja	2003-06-16 17:16:36 
> +0900
> +++ httpd-docs-2.1\manual\vhosts\name-based.xml.ja	2003-07-30 00:57:14 
> +0900
> @@ -198,7 +198,7 @@
>
>      <p>結果として、リストの最初のバーチャルホストが <em>デフォルト</em> の
>      バーチャルホストになります。IP アドレスが <directive
> -    modoule="core">NameVirtualHost</directive>
> +    module="core">NameVirtualHost</directive>
>      ディレクティブにマッチした場合は、<em>メインのサーバ</em> の
>      <directive module="core">DocumentRoot</directive>
>      は<strong>決して使われません</strong>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
> For additional commands, e-mail: docs-help@httpd.apache.org


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


Re: xml/xhtml validation issues

Posted by ma...@plum.freemail.ne.jp.
On Tue, 29 Jul 2003 17:38:10 +0200 
Erik Abele <er...@codefaktor.de> wrote by Apple Mail (2.552) :
xml/xhtml validation issues

> validate-xml:
> [xmlvalidate] 
> /Users/erik/Desktop/manual-2.1/vhosts/name-based.xml.ja:201:20: 
> Attribute "modoule" must be declared for element type "directive".
> [xmlvalidate] /Users/erik/Desktop/manual-2.1/vhosts/name-based.xml.ja 
> is not a valid XML document

apply please


--
BIBLONE3
Nobuyuki Morita
marika@plum.freemail.ne.jp