Subject: Re: [xsl] Standards checkers for XSLT From: Kamal Bhatt <kbhatt@xxxxxxxxx> Date: Tue, 28 Nov 2006 08:19:42 +1100 |
My apologies for replying off-list; apparently I need to update my subscription since our email has been "upgraded" (and names changed), since my post to the list was kicked back. But here's my two cents worth on the naming concept:
It's not working. The error rate (organization/nesting) is very high. I'm catching the errors by converting all the attribute values to elements and validating against a more structured schema. In other words, they cannot adequately parse/QC their own content using attributes, so I'm helping them clean up their data by providing feedback from my conversion process. (note: The conversion is for a specific project, not just for fixing their data problems; that's a side effect).
Frankly, in most (*but not all*) situations I've run across, using attributes to define content this way scares me. You can't define "grouping" this way, except in the most general sense, because attributes cannot enforce element order.
My reply: I assume that QC means "quality control".
So what you are saying is that this is better: <Manufacturers> <Manufacturer>Toyota</Manufacturer> <Manufacterer>Ford</Manufacturer> </Manufacturers>
Joe Fawcett wrote:Point taken. My point was more about the grouping of elements rather than naming, but you are right.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: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"/>.
<Ford>...</Ford> <Holden>...</Holden> <Toyota>...</Toyota>
is less preferred to
<Manufacturers> <Ford>...</Ford> <Holden>...</Holden> <Toyota>...</Toyota> </Manufacturers>
Any other tips?
Cheers.
-- Kamal Bhatt
Much easier to select appropriately as well.
-- Kamal Bhatt
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] merge/join two xml files., chun ji | Thread | Re: [xsl] Standards checkers for XS, Dimitre Novatchev |
RE: [xsl] Using COUNT to create uni, Austin, Darrel | Date | Re: [xsl] Using COUNT to create uni, David Carlisle |
Month |