> > On 29 Nov 2007, at 23:02, Hampton wrote:
> > > I was unaware that XML requires a double quote.
> >
> > So was I, but I've read the XML specification, so it's not for lack of
> > interest. Where are double quotes required? What issue are you
> > responding to here? The spec's section on attribute literal syntax
> (http://www.w3.org/TR/REC-xml/#IDANUDS
> > ) explicitly says that they can be single- or double-quoted (and
> > therefore can't contain literal double- and single-quote characters
> > respectively) which is the way I've always understood it, but perhaps
> > I'm missing something obvious.
> >
> > That being said, it's my personal preference to use double-quotes in
> > XML wherever possible -- perhaps just because they're less likely to
> > appear in attribute values, so fewer entity references are required --
> > and for that reason (+ laziness) I'd be pleased to see Haml's default
> > changed to double-quotes. I think it's just the less surprising
> > option, particularly since I'm sure there are plenty of newbies who
> > don't realise apostrophes are allowed at all.
> >
> > Cheers,
> > -Tom
> >


I, too, have read the XML specifications and missed this requirement.
However, I always use double quotes, not because of some
specification, but because it's the language convention.
I was once helping someone new to Ruby. They were fairly resistant to
the idea of do..end blocks, instead preferring {...}. I was insistent
about using the former, not because of some specification, but because
of language conventions. Double quotes should be used by default in
HTML, XHTML, XML, etc.

Daniel Brumbaugh Keeney

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Haml" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/haml?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to