Chapter 6 
281
Compare this listing of invoice information with that of adventure builder's
canonical model, shown in Code Example 6.3. adventure builder can convert an
invoice from this supplier to its canonical data model by applying in the interac 
tion layer of the Web service the style sheet shown in Code Example 6.7. The
style sheet defines rules, such as those for matching templates (
match ...>
), that are applied to the supplier invoice and corresponding XML
fragment when the canonical model is generated.
    xmlns:xsl= http://www.w3.org/1999/XSL/Transform 
    xmlns:bpi= http://java.sun.com/blueprints/ns/invoice >
     
     
     
      
"http://www.w3.org/2001/XMLSchema instance"
xsi:schemaLocation=
"http://java.sun.com/blueprints/ns/invoice   
http://java.sun.com/blueprints/schemas/invoice.xsd">
       
      
     
     
           
     
     
           
     
     
     
     
           
     
Code Example 6.7
Style Sheet to Convert Supplier Invoice to Canonical Model
<





New Page 1









Clan Web Hosting