List Info

Thread: Brian's outstanding issues 3: nesting




Brian's outstanding issues 3: nesting
user name
2006-09-25 22:24:01
Nesting microformats - there are two questions here.

First, about the statement that other uf's don't handle
nesting
explicitly. Is this a design decision or just a result of it
not being
necessary yet?

Second - the two options listed don't seem like enough.

option 1: requires class names for every reference type. I
don't like
this option either.

option 2: uses type class, but makes it confusing IMO - what
if you
want to include more data about the containing reference
than just one
element? Does the type continue to influence sibling
elements until
another type element cancels it out?

I have another option that might work:

option 3: nest ufs. I've used this a few times in examples
without
anyone commenting on it. Is this OK? What are the pros/cons?
I have
parsed HTML using a DOM traversal before, and this seems
like it'd be
reasonably easy to parse. It's also a little easier to write
and more
obvious than #2, IMO, since it's clear that the elements
under the
container span are all referring to the item that's of type
book...

<span class="citation"><span
class="type">chapter</span>:
    <span class="title">stuff</span>
    <span class="citation
container"><span
class="type">book</span>
        <span class="title">A collection of
stuff</span>
...

Any other options out there? Comments?

Cheers,
-mike

-- 
Michael McCracken
UCSD CSE PhD Candidate
research: http://www.cse.ucs
d.edu/~mmccrack/
misc: http://michael-mccra
cken.net/wp/
_______________________________________________
microformats-discuss mailing list
microformats-discussmicroformats.org
http://microformats.org/mailman/listinfo/microforma
ts-discuss
Brian's outstanding issues 3: nesting
user name
2006-09-25 23:55:51
First, a URL for the wiki page you are referring to would be
helpful 

On 9/25/06, Michael McCracken <michael.mccrackengmail.com> wrote:

> option 1: requires class names for every reference
type. I don't like
> this option either.
>
> option 2: uses type class, but makes it confusing IMO -
what if you
> want to include more data about the containing
reference than just one
> element? Does the type continue to influence sibling
elements until
> another type element cancels it out?

Can't comment on the above since I don't know the context.

> I have another option that might work:
>
> option 3: nest ufs. I've used this a few times in
examples without
> anyone commenting on it. Is this OK? What are the
pros/cons? I have
> parsed HTML using a DOM traversal before, and this
seems like it'd be
> reasonably easy to parse. It's also a little easier to
write and more
> obvious than #2, IMO, since it's clear that the
elements under the
> container span are all referring to the item that's of
type book...
>
> <span class="citation"><span
class="type">chapter</span>:
>     <span
class="title">stuff</span>
>     <span class="citation
container"><span
class="type">book</span>
>         <span class="title">A
collection of stuff</span>

I thnk that's fine, notwithstanding my other quetion about
the "type"
span (which seems even more funky in this case). Also,
"citation"
could probably be "hcite"?

Bruce
_______________________________________________
microformats-discuss mailing list
microformats-discussmicroformats.org
http://microformats.org/mailman/listinfo/microforma
ts-discuss
Brian's outstanding issues 3: nesting
user name
2006-09-26 00:07:59
Sorry, it was hinted at in the first email- I should have
included it in each:
http://microformats.org/wiki/citation-brai
nstorming#Outstanding_Issues


On 9/25/06, Bruce D'Arcus <bdarcus.listsgmail.com> wrote:
> First, a URL for the wiki page you are referring to
would be helpful 
>
> On 9/25/06, Michael McCracken <michael.mccrackengmail.com> wrote:
>
> > option 1: requires class names for every reference
type. I don't like
> > this option either.
> >
> > option 2: uses type class, but makes it confusing
IMO - what if you
> > want to include more data about the containing
reference than just one
> > element? Does the type continue to influence
sibling elements until
> > another type element cancels it out?
>
> Can't comment on the above since I don't know the
context.
>
> > I have another option that might work:
> >
> > option 3: nest ufs. I've used this a few times in
examples without
> > anyone commenting on it. Is this OK? What are the
pros/cons? I have
> > parsed HTML using a DOM traversal before, and this
seems like it'd be
> > reasonably easy to parse. It's also a little
easier to write and more
> > obvious than #2, IMO, since it's clear that the
elements under the
> > container span are all referring to the item
that's of type book...
> >
> > <span class="citation"><span
class="type">chapter</span>:
> >     <span
class="title">stuff</span>
> >     <span class="citation
container"><span
class="type">book</span>
> >         <span class="title">A
collection of stuff</span>
>
> I thnk that's fine, notwithstanding my other quetion
about the "type"
> span (which seems even more funky in this case). Also,
"citation"
> could probably be "hcite"?

Is your other question in the other email thread? If so,
I'll respond
over there.

I have no opinion about citation vs. hcite.
-mike

-- 
Michael McCracken
UCSD CSE PhD Candidate
research: http://www.cse.ucs
d.edu/~mmccrack/
misc: http://michael-mccra
cken.net/wp/
_______________________________________________
microformats-discuss mailing list
microformats-discussmicroformats.org
http://microformats.org/mailman/listinfo/microforma
ts-discuss
Brian's outstanding issues 3: nesting
user name
2006-09-26 00:25:44
Just about this part:
>
> I have no opinion about citation vs. hcite.
> -mike
>

http://microformats.org/wiki/naming-principles#h_word

That page suggests that hcite for the root element is the
way to go.

-mike

-- 
Michael McCracken
UCSD CSE PhD Candidate
research: http://www.cse.ucs
d.edu/~mmccrack/
misc: http://michael-mccra
cken.net/wp/
_______________________________________________
microformats-discuss mailing list
microformats-discussmicroformats.org
http://microformats.org/mailman/listinfo/microforma
ts-discuss
[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )