Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

attribut ou balise?

0 views
Skip to first unread message

Rakotomandimby (R12y) Mihamina

unread,
May 14, 2008, 4:32:28 PM5/14/08
to
Bonjour,
Je parcours quelques exemples et je tombe sur celui-ci:
<catalog>
<book isbn="1-56592-724-9">
<title>The Cathedral &amp; the Bazaar</title>
<author>Eric S. Raymond</author>
</book>
<book isbn="1-56592-051-1">
<title>Making TeX Work</title>
<author>Norman Walsh</author>
</book>
</catalog>

Je me demande _une_ chose: Pour avoir mis le ISBN en attribut?
Dans quel cas de figure est-il plus recommandé de faire ça que:
<catalog>
<book>
<isbn>1-56592-724-9</isbn>
<title>The Cathedral &amp; the Bazaar</title>
<author>Eric S. Raymond</author>
</book>
<book>
<isbn>1-56592-051-1</isbn>
<title>Making TeX Work</title>
<author>Norman Walsh</author>
</book>
</catalog>

Xpost, proposez SVP un suivi adapté :)
MErci d'avance.

Yves Lambert

unread,
May 15, 2008, 4:46:54 AM5/15/08
to
Rakotomandimby (R12y) Mihamina wrote:
> Bonjour,

Bonjour,

> Je parcours quelques exemples et je tombe sur celui-ci:
> <catalog>
> <book isbn="1-56592-724-9">

> Je me demande _une_ chose: Pour avoir mis le ISBN en attribut?


> Dans quel cas de figure est-il plus recommandé de faire ça que:
> <catalog>
> <book>
> <isbn>1-56592-724-9</isbn>


Je débute, mais je vois deux trucs :

1. l'ISBN est la clé de "book"
2. les DTD ne permettent pas de typage sémantique et le fait de le mettre en
attribut peut peut-être aider l'appli qui est derrière à valider la
sémantique de l'attribut

> Xpost, proposez SVP un suivi adapté :)

fctx me semble convenir.

--
http://www.madeinfrance.org/superdupont/

0 new messages