Hmm...ok, maybe I can work from the DTD listed in the generated XML =
file:
<!DOCTYPE x12doc PUBLIC '-//J Holland//DTD XML X12 Document =
Conversion1.0//EN//XML' 'http://www.kazoocmh.org/x12simple.dtd'>
Is x12simple.dtd available somewhere?
-D
-----Original Message-----
From: John Holland [mailto:jo...@zo...]
Sent: Monday, April 19, 2004 12:58 PM
To: pyx...@li...
Subject: [Pyx12-developer] Re: XSD?
I have not yet written a schema for the xml output files. It should
be possible to write XSLT from the maps that would validate
properly.
It probably is not obvious, but there are two strategies for
converting an X12 docuemtn to a xml document:
x12xml_idtag:
<L2400>
<LX>
<LX01>1</LX01>
</LX>
<SV1>
<SV1>
<SV101-01>HC</SV101-01>
<SV101-02>T1017</SV101-02>
</SV1>
<SV102>262.80</SV102>
<SV103>UN</SV103>
<SV104>1</SV104>
<SV1>
<SV107-01>1</SV107-01>
</SV1>
</SV1>
x12xml_simple:
<loop id=3D'2400'>
<seg id=3D'LX'>
<ele id=3D'LX01'>1</ele>
</seg>
<seg id=3D'SV1'>
<comp id=3D'SV1'>
<subele id=3D'SV101-01'>HC</subele>
<subele id=3D'SV101-02'>T1017</subele>
</comp>
<ele id=3D'SV102'>262.80</ele>
<ele id=3D'SV103'>UN</ele>
<ele id=3D'SV104'>1</ele>
<comp id=3D'SV1'>
<subele id=3D'SV107-01'>1</subele>
</comp>
They are controlled in x12n_document.py. I'll add a command line
switch for it in the next release.
On Mon, Apr 19, 2004 at 11:49:49AM -0400, Darren Hartford wrote:
> Hey all,
> I don't suppose anyone has some .XSD schema files for XML generated =
from pyx12 for the 835 series do they?
--=20
John Holland=20
jo...@zo...
http://www.zoner.org
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=3D1470&alloc_id=3D3638&op=3Dcli=
ck
_______________________________________________
Pyx12-developer mailing list
Pyx...@li...
https://lists.sourceforge.net/lists/listinfo/pyx12-developer
|