Re: [xsl] Standards checkers for XSLT

Subject: Re: [xsl] Standards checkers for XSLT
From: Kamal Bhatt <kbhatt@xxxxxxxxx>
Date: Tue, 28 Nov 2006 07:40:27 +1100
Joe Fawcett wrote:
From: Kamal Bhatt <kbhatt@xxxxxxxxx>
Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: [xsl] Standards checkers for XSLT
Date: Mon, 27 Nov 2006 08:44:24 +1100


Also, here is another question. Does anyone have any standards for designing XML for XSLT? This is going to be an issue in my company some time in the future as we XMLise our documentation. I know that it is good practice to group values eg:

<Ford>...</Ford>
<Holden>...</Holden>
<Toyota>...</Toyota>

is less preferred to

<Manufacturers>
 <Ford>...</Ford>
 <Holden>...</Holden>
 <Toyota>...</Toyota>
</Manufacturers>

Any other tips?

Cheers.

--
Kamal Bhatt

Personally I don't like the second style much either, what happens when you get a manufacturer that has an awkward name, Rolls Royce, for instance. Better to have <manufacturer name="Rolls Royce"/>.
Much easier to select appropriately as well.



Point taken. My point was more about the grouping of elements rather than naming, but you are right.

--
Kamal Bhatt

Current Thread