Presentation is loading. Please wait.

Presentation is loading. Please wait.

XML 102 Mike Rawlins Rawlins EC Consulting. Soup to Nuts Data content based on TS190 Based on XML Forum approach: Instance document representation W3C.

Similar presentations


Presentation on theme: "XML 102 Mike Rawlins Rawlins EC Consulting. Soup to Nuts Data content based on TS190 Based on XML Forum approach: Instance document representation W3C."— Presentation transcript:

1 XML 102 Mike Rawlins Rawlins EC Consulting

2 Soup to Nuts Data content based on TS190 Based on XML Forum approach: Instance document representation W3C Schema XSLT transform to HTML for Display XSLT transform to XML for application And then a miracle occurs….

3 Example TS 190 Student Enrollment Verification Response - School to National Student Loan Clearinghouse Header data Date, time, references Enrollment information Sender - school Receiver - clearinghouse

4 Example - TS 190, continued Student Name, ID, birth date, address School Name, FICE number

5 DISCLAIMER!!! These are example documents to be used only for illustration of approach and technique. They do not represent XML Forum standards or work in progress. In other words, this is all just Mike’s stuff!

6 Instance Document StudentEnrollmentVerificationResponse. XML Disclaimer - Neither PESC nor the XML Forum endorse any particular XML product. XML Spy just happens to be the one that Mike likes and has licensed.

7 Instance Document Features Based on XML Forum Combined Data Dictionary 2.0 Only uses elements Minimal namespace prefixes Date handling different from X12 Boolean instead of Yes/No Uses several code lists from X12

8 Schema Document Features Modular structure Uses two namespaces (PESC XML will probably use several) Extensive use of types No global elements Code validation, lengths, cardinality

9 XLST Basics XPath expressions: Walk the tree Similar to UNIX directory paths Template matches path expression xsl:value-of inserts node value xsl:apply-templates invokes another template at current context

10 XSLT for HTML Output xsl:output method=“html” Insert HTML code into a template Values to be displayed as “value-of” Stylesheet reference in instance XML Version and tool incompatibilities: Beware of IE5! IE6 and Netscape6 OK

11 XSLT for XML Output xsl:output method=“xml” Insert XML markup for target document Element and attribute values with “value-of” Namespace considerations Declare result namespaces exclude-result-prefixes

12 And then a miracle occurs... Transform XML to CSV with program Can do with XSLT May not be the best approach Load CSV to application

13 Recommended Resources XML Forum Technical Specification www.w3c.org XML Schema Recommendation XSLT Recommendation Tools XML Spy - Win32 only XML Authority - All Java platforms

14 Books XSLT 2nd Edition - Michael Kay, Wrox Essential XML Quick Reference - Skonnard & Gudgin, AW developmentor Using XML with Legacy Business Applications - Mike Rawlins, Addison Wesley (late 2002)


Download ppt "XML 102 Mike Rawlins Rawlins EC Consulting. Soup to Nuts Data content based on TS190 Based on XML Forum approach: Instance document representation W3C."

Similar presentations


Ads by Google