Re: Designing XML for XSLT (Was: Re: [xsl] newbie: xsl:key and summation of substrings)

Subject: Re: Designing XML for XSLT (Was: Re: [xsl] newbie: xsl:key and summation of substrings)
From: Peter Flynn <peter@xxxxxxxxxxx>
Date: Tue, 11 Dec 2001 11:14:49 +2400
At Monday, 10 December 2001, Jeni wrote:

>Does anyone know of a set of guidelines for designing markup languages
>for processing with XSLT? 

Not specifically for XSLT, but Eve's book on DTD design has
lots of good suggestions.

>If not, it could be a useful resource to put
>together somewhere. Things like:
>
> - keep numbers and units separate
> - be consistent in case use in attribute/element values
> - use namespaces to embed HTML in XML, not CDATA sections
>
>Any others?

Store dates in ISO format (or provide an attribute to do this).
Put categorical data in attributes, not in character data content.

Umm. This would certainly be a good resource.

-- 
///Peter








 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread