XML, Xpath and XSLT

grassquantityΤεχνίτη Νοημοσύνη και Ρομποτική

15 Νοε 2013 (πριν από 3 χρόνια και 6 μήνες)

70 εμφανίσεις


MISMO Trimester Meeting

June 4
-

7, 2012


Santa Ana, CA

XML, Xpath and XSLT

Greg Alvord

Senior Data Architect, RealEC


David Krause

AVP, Radian Guaranty

June 4, 2012



MISMO Trimester Meeting

June 4
-

7, 2012


Santa Ana, CA

Agenda


Overview


Xpath


XSLT


Real World Scenarios


Background on system layout


Routing rules


Translation between two defined formats


Avoid system customization


Prevent semantic loss



MISMO Trimester Meeting

June 4
-

7, 2012


Santa Ana, CA

Overview


Xpath


Syntax for defining individual pieces of an XML
document using path
-
based expressions


Allows for navigating through XML document and
applying collection of built
-
in functions



MISMO Trimester Meeting

June 4
-

7, 2012


Santa Ana, CA

Overview


XSLT


EXtensible Stylesheet Language Transformation


XSLT is used to transform an XML document into
another XML document, or another type of document
that is recognized by a browser, like HTML and
XHTML


Can add/remove elements and attributes to/from the
appropriate output file


Sort


Perform calculations/logic


XML navigation based on XPath


MISMO Trimester Meeting

June 4
-

7, 2012


Santa Ana, CA


MISMO Trimester Meeting

June 4
-

7, 2012


Santa Ana, CA


MISMO Trimester Meeting

June 4
-

7, 2012


Santa Ana, CA

Message Routing for Generic Endpoints


Generic endpoint for all Origination transactions


Rely on either message level or payload level
information to route accordingly


MISMO Trimester Meeting

June 4
-

7, 2012


Santa Ana, CA

Message Routing for Generic Endpoints


MISMO Trimester Meeting

June 4
-

7, 2012


Santa Ana, CA

Translation Between Formats


Convert external standard format to internal to
be consumed by downstream application


Logic can be simple 1
-
to
-
1 mapping OR more
complex If…Then or Choice logic


MISMO Trimester Meeting

June 4
-

7, 2012


Santa Ana, CA

Translation Between Formats


MISMO Trimester Meeting

June 4
-

7, 2012


Santa Ana, CA

Translation Between Formats


MISMO Trimester Meeting

June 4
-

7, 2012


Santa Ana, CA

Avoid Application Customization


Often times a trading partner will not adhere to
all integration requirements


Ideal to isolate these “one
-
offs”


Prevent from leaking into the base application


Execute a pre
-
process translation to clean up
the XML


MISMO Trimester Meeting

June 4
-

7, 2012


Santa Ana, CA

Avoid Application Customization


MISMO Trimester Meeting

June 4
-

7, 2012


Santa Ana, CA

Avoid Losing Message Granularity/Relevance


Internal organization requirements vs. trading
partner requirement may result in conflict


Similar to avoiding application customization,
can place translation right before message
leaves network


MISMO Trimester Meeting

June 4
-

7, 2012


Santa Ana, CA

Avoid Losing Message Granularity/Relevance


MISMO Trimester Meeting

June 4
-

7, 2012


Santa Ana, CA

Questions?

Greg Alvord

Senior Data Architect

RealEC Technologies

gregory.alvord@RealEC.com



David Krause

AVP Client Services

Radian Guaranty, Inc

david.krause@radian.biz