Hi,
I think kalot2k said the first ContentItem is an article. He would organize
an ariticle and a photo related it and a photo's caption.
So, I would suggest as follows;
Because the Characteristics Property that provides information about the
physical characteristics.A cation might be not a physical characteristics.
And the NewsComponent element has the Role element. The Role element
can indicate the role between NewsComponents.
NewsComponent
-NewsComponent Role="article"
-ContentItem
for an article
-NewsComponent Role="caption"
-ContentItem
for a caption
-NewsComponent Role="photo"
-ContentItem
for a photo
OR; more complex
NewsComponent
-NewsComponent Role="article"
-ContentItem
for an article
-NewsComponent Role="photo"
-NewsComponent Role="caption"
-ContentItem
for a caption
-NewsComponent Role="main"
-ContentItem
for a photo
If you don't like a layered architecture;
This another tricky approach is using Euid attribute( not recommend)
NewsComponent
-NewsComponent Role="article"
-ContentItem
for an article
-NewsComponent Role="photo"
-ContentItem Euid="caption"
for a caption
-ContentItem Euid="main"
for a photo
Hiroshi
----- Original Message -----
From: "Laurent Le Meur" <laurent.lemeur@...>
To: <newsml@yahoogroups.com>
Sent: Tuesday, March 28, 2006 7:19 AM
Subject: RE: [newsml] My design for Photo's Caption. Is it OK?
Hi,
Wat is the use of the first ContentItem (Text) if it is not the caption?
Laurent Le Meur
AFP
> -----Message d'origine-----
> De : newsml@yahoogroups.com [mailto:newsml@yahoogroups.com] De la part de
> kalot2k
> Envoyé : lundi 27 mars 2006 11:02
> À : newsml@yahoogroups.com
> Objet : [newsml] My design for Photo's Caption. Is it OK?
>
> Hi,
>
> Please advise....
>
> newsml.org show some newsml sample of AFP.
> It's have hierarchical NewsComponent for Photo and Photo's Caption.
>
> but I don't wanna this structure.
> so, I design the structure for Photo (below)
>
> NewsComponent
> - ContentItem
> - DataContent ( have Text )
> - ContentItem
> - DataContent ( have Photo )
> - Characteristics
> - Property FormalName="Caption" Value="Photo's Caption"
>
> Is it OK?
>
>
> Thank you very much for your help.
>
>
>
>
>
>
>
> Find more on NewsML at http://www.newsml.org
>
> Yahoo! Groups Links
>
>
>
>
>
Find more on NewsML at http://www.newsml.org
Yahoo! Groups Links