Re: [xsl] Difference in data?

Subject: Re: [xsl] Difference in data?
From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx>
Date: Thu, 30 Sep 2010 11:36:38 -0400
At 2010-09-30 08:10 -0700, Abe Scott wrote:
Exhibit A:

<identification>
    <returned_name_address>
        <name_address>Doe, John</name_address>
</returned_name_address>
<returned_name_address>
    <name_address>33235 N Main St</name_address>
</returned_name_address>
<returned_name_address>
<name_address>CLEVELAND OH 441245239</name_address>
</returned_name_address></identification>


Exhibit B:


<identification>
<returned_name_address>
    <name_address>Doe, John</name_address>
    <name_address>33235 N Main St</name_address>
    <name_address>CLEVELAND OH 441245239</name_address>
</returned_name_address></identification>

This doesn't really fall into "xsl", I know.. but knew this forum could help.

Yes, it isn't related to XSL and should not have been posted here in order to reduce the signal/noise ratio for XSL/XPath issues.


One list you could have posted this to is XML Dev:

http://www.xml.org/xml-dev/

I

understand that A is multiple rows in the <returned_name_address> table. How
would you describe B? We're getting B back in a result set from a vendor
service and I'm having trouble explaining to them why it's bad. Any help would
be appreciated.

You could cite the improper cardinalities: it seems that the cardinality of <returned_name_address> is supposed to be "1 or more" and the cardinality of <name_address> is "1" in Exhibit A, and that isn't what is being used in Exhibit B.


But ask on XML-Dev and see what other people have to say.

I hope this helps.

. . . . . . . . . . . Ken

--
XSLT/XQuery training:   after http://XMLPrague.cz 2011-03-28/04-01
Vote for your XML training:   http://www.CraneSoftwrights.com/s/i/
Crane Softwrights Ltd.          http://www.CraneSoftwrights.com/s/
G. Ken Holman                 mailto:gkholman@xxxxxxxxxxxxxxxxxxxx
Male Cancer Awareness Nov'07  http://www.CraneSoftwrights.com/s/bc
Legal business disclaimers:  http://www.CraneSoftwrights.com/legal

Current Thread