List Info

Thread: How to handle empty lists ?




How to handle empty lists ?
user name
2007-10-30 12:09:01
Hi,

I'm new to microformats.
I'm trying to use microformat style xhtml to represent some
data.

Somme data are lists of items represented by an <ul>
element. XHTML (HTML) do
not allow empty lists, but my data model uses empty lists.

How to deal with this :
- use an empty <span class="empty-list">
element,
- use a fake element <ul><li
class="ignore" /></ul>,
- use empty list and ignore xhtml rule,
- ... ?

Thanks for your suggestions

Michel


_______________________________________________
microformats-discuss mailing list
microformats-discussmicroformats.org
http://microformats.org/mailman/listinfo/microforma
ts-discuss

Re: How to handle empty lists ?
user name
2007-10-30 12:33:25
What is your need for an empty list, if you dont mind me
asking?

On Oct 30, 2007 5:09 PM,  <michel.roussetfree.fr> wrote:
> Hi,
>
> I'm new to microformats.
> I'm trying to use microformat style xhtml to represent
some data.
>
> Somme data are lists of items represented by an
<ul> element. XHTML (HTML) do
> not allow empty lists, but my data model uses empty
lists.
>
> How to deal with this :
> - use an empty <span
class="empty-list"> element,
> - use a fake element <ul><li
class="ignore" /></ul>,
> - use empty list and ignore xhtml rule,
> - ... ?
>
> Thanks for your suggestions
>
> Michel
>
>
> _______________________________________________
> microformats-discuss mailing list
> microformats-discussmicroformats.org
> http://microformats.org/mailman/listinfo/microforma
ts-discuss
>
_______________________________________________
microformats-discuss mailing list
microformats-discussmicroformats.org
http://microformats.org/mailman/listinfo/microforma
ts-discuss

Re: How to handle empty lists ?
country flaguser name
United Kingdom
2007-10-30 12:44:27
On 30 Oct 2007, at 17:09, michel.roussetfree.fr
wrote:

>
> I'm new to microformats.

Welcome!

> I'm trying to use microformat style xhtml to represent
some data.

OK. Howeber, what you're using is really semantic HTML, it's
 
precisely what the class attribute was designed for. Call it
a  
pattern or a data format as you like, but keep in mind that 

‘microformats’ are a process by which formats are defined,
not a  
syntax in itself. The syntax you're using is just HTML.

> Somme data are lists of items represented by an
<ul> element. XHTML  
> (HTML) do
> not allow empty lists, but my data model uses empty
lists.
>
> How to deal with this :
> - use an empty <span
class="empty-list"> element,
> - use a fake element <ul><li
class="ignore" /></ul>,
> - use empty list and ignore xhtml rule,
> - ... ?
>

To be pedantic, is an empty list really a list if it doesn't
list  
anything? For whatever pattern you are designing, why not
just define  
a parsing rule based on the absence of the list? If the list
is  
present, then you know that there is data, if it is absent
then you  
know there is not. Regardless of validation, including an
empty list  
in an HTML document is poor code really.

Ben



_______________________________________________
microformats-discuss mailing list
microformats-discussmicroformats.org
http://microformats.org/mailman/listinfo/microforma
ts-discuss

RE: How to handle empty lists ?
country flaguser name
United Kingdom
2007-10-30 13:03:42
On the subject of lists...

Is this the XOXO format?
Can anyone send me some urls for sites that use XOXO?
(Does the MicroFormats toolbar 'light up' on a page which
uses XOXO and
allow you to export lists to excel or another website the
same way one can
export hCard and hCalendar?

Phil - also new to MicroFormats and want to use it for my
new website...


-----Original Message-----
From: microformats-discuss-bouncesmicroformats.org
[mailto:microformats-discuss-bouncesmicroformats.org] On Behalf
Of Ben Ward
Sent: 30 October 2007 17:44
To: Microformats Discuss
Subject: Re: [uf-discuss] How to handle empty lists ?


On 30 Oct 2007, at 17:09, michel.roussetfree.fr
wrote:

>
> I'm new to microformats.

Welcome!

> I'm trying to use microformat style xhtml to represent
some data.

OK. Howeber, what you're using is really semantic HTML, it's
 
precisely what the class attribute was designed for. Call it
a  
pattern or a data format as you like, but keep in mind that 

'microformats' are a process by which formats are defined,
not a  
syntax in itself. The syntax you're using is just HTML.

> Somme data are lists of items represented by an
<ul> element. XHTML  
> (HTML) do
> not allow empty lists, but my data model uses empty
lists.
>
> How to deal with this :
> - use an empty <span
class="empty-list"> element,
> - use a fake element <ul><li
class="ignore" /></ul>,
> - use empty list and ignore xhtml rule,
> - ... ?
>

To be pedantic, is an empty list really a list if it doesn't
list  
anything? For whatever pattern you are designing, why not
just define  
a parsing rule based on the absence of the list? If the list
is  
present, then you know that there is data, if it is absent
then you  
know there is not. Regardless of validation, including an
empty list  
in an HTML document is poor code really.

Ben



_______________________________________________
microformats-discuss mailing list
microformats-discussmicroformats.org
http://microformats.org/mailman/listinfo/microforma
ts-discuss

_______________________________________________
microformats-discuss mailing list
microformats-discussmicroformats.org
http://microformats.org/mailman/listinfo/microforma
ts-discuss

Re: How to handle empty lists ?
country flaguser name
United Kingdom
2007-10-30 13:18:06
On 30 Oct 2007, at 18:03, Phillip Hofmeyr wrote:
> Is this the XOXO format?
> Can anyone send me some urls for sites that use XOXO?

We've marked up the new category trees and sitemaps on
Kelkoo using  
XOXO:
    • http://www.k
elkoo.co.uk/sm_site-map.html

Ben
_______________________________________________
microformats-discuss mailing list
microformats-discussmicroformats.org
http://microformats.org/mailman/listinfo/microforma
ts-discuss

[1-5]

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