Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jul 31st, 2012  |  syntax: None  |  size: 22.83 KB  |  hits: 14  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. xslt multilevel grouping - convert from one xml format to other
  2. <?xml version="1.0" encoding="UTF-8"?>
  3.   <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  4.   <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
  5.   <xsl:template match="text() | @*">
  6.     <xsl:apply-templates select="text() | @*"/>
  7.   </xsl:template>
  8.   <xsl:template match="SalesOrder">
  9.     <SalesOrder z:Id="i1" xmlns="http://schemas.datacontract.org/2004/07/Eurofins.Genomics.Egsp.Xbo.OrderManagement" xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/">
  10.       <BillTo>
  11.         <xsl:value-of select="BillTo"/>
  12.       </BillTo>
  13.       <OrderReferenceCustomer>
  14.         <xsl:value-of select="OrderID"/>
  15.       </OrderReferenceCustomer>
  16.       <OrderStatus>
  17.         <xsl:value-of select="OrderStatus"/>
  18.       </OrderStatus>
  19.       <Contact>
  20.         <xsl:value-of select="BillTo"/>
  21.       </Contact>
  22.       <ShipTo>
  23.         <xsl:value-of select="ShipTo"/>
  24.       </ShipTo>
  25.       <SoldTo>
  26.         <xsl:value-of select="SoldTo"/>
  27.       </SoldTo>
  28.       <SoldBy>
  29.         <xsl:value-of select="SoldBy"/>
  30.       </SoldBy>
  31.       <Site>
  32.         <xsl:value-of select="OrderSite"/>
  33.       </Site>
  34.       <ConfirmedDate>
  35.         <xsl:value-of select="ConfirmedDate"/>
  36.       </ConfirmedDate>
  37.       <xsl:apply-templates/>
  38.     </SalesOrder>
  39.   </xsl:template>
  40.   <xsl:template match="FulfilmentInfo">
  41.     <FulfillmentInfo>
  42.       <TestOrder>
  43.         <xsl:value-of select="TestOrder"/>
  44.       </TestOrder>
  45.       <PromotionCode>
  46.         <xsl:value-of select="PromotionCode"/>
  47.       </PromotionCode>
  48.       <FirstConfirmedDate>
  49.         <xsl:value-of select="FirstConfirmedDate"/>
  50.       </FirstConfirmedDate>
  51.       <DocumentationLanguage>
  52.         <xsl:value-of select="DocumentationLanguage"/>
  53.       </DocumentationLanguage>
  54.     </FulfillmentInfo>
  55.   </xsl:template>
  56.   <xsl:template match="PaymentOptions">
  57.     <PaymentInformations>
  58.         <xsl:apply-templates />
  59.     </PaymentInformations>
  60.   </xsl:template>
  61.   <xsl:template match="PaymentOptions">
  62.     <PaymentInformation>
  63.       <PaymentMethod>
  64.         <xsl:value-of select="PaymentMethod"/>
  65.       </PaymentMethod>
  66.     </PaymentInformation>
  67.   </xsl:template>
  68. </xsl:stylesheet>
  69.        
  70. <SalesOrder>
  71.       <BillTo>anyType</BillTo>
  72.       <OrderReferenceCustomer>anyType</OrderReferenceCustomer>
  73.       <OrderStatus>InCart</OrderStatus>
  74.       <Contact>anyType</Contact>
  75.       <ShipTo>anyType</ShipTo>
  76.       <SoldTo>anyType</SoldTo>
  77.       <SoldBy>anyType</SoldBy>
  78.       <Site>TKY</Site>
  79.       <ConfirmedDate>1900-01-01T01:01:01+05:30</ConfirmedDate>
  80.       <FulfillmentInfo xmlns="">
  81.         <TestOrder>true</TestOrder>
  82.         <PromotionCode>anyType</PromotionCode>
  83.         <FirstConfirmedDate>1900-01-01T01:01:01+05:30</FirstConfirmedDate>
  84.         <DocumentationLanguage>anyType</DocumentationLanguage>
  85.       </FulfillmentInfo>
  86.       <PaymentInformation xmlns="">
  87.         <PaymentMethod>CC</PaymentMethod>
  88.       </PaymentInformation>
  89.       <PaymentInformation xmlns="">
  90.         <PaymentMethod>PO</PaymentMethod>
  91.       </PaymentInformation>
  92.       <PaymentInformation xmlns="">
  93.         <PaymentMethod>EVO</PaymentMethod>
  94.       </PaymentInformation>
  95.     </SalesOrder>
  96.        
  97. <SalesOrder>
  98.   <BillTo>anyType</BillTo>
  99.   <OrderReferenceCustomer>anyType</OrderReferenceCustomer>
  100.   <OrderStatus>InCart</OrderStatus>
  101.   <Contact>anyType</Contact>
  102.   <ShipTo>anyType</ShipTo>
  103.   <SoldTo>anyType</SoldTo>
  104.   <SoldBy>anyType</SoldBy>
  105.   <Site>TKY</Site>
  106.   <ConfirmedDate>1900-01-01T01:01:01+05:30</ConfirmedDate>
  107.   <FulfillmentInfo xmlns="">
  108.     <TestOrder>true</TestOrder>
  109.     <PromotionCode>anyType</PromotionCode>
  110.     <FirstConfirmedDate>1900-01-01T01:01:01+05:30</FirstConfirmedDate>
  111.     <DocumentationLanguage>anyType</DocumentationLanguage>
  112.   </FulfillmentInfo>
  113. <PaymentInformations>
  114.   <PaymentInformation xmlns="">
  115.     <PaymentMethod>CC</PaymentMethod>
  116.   </PaymentInformation>
  117.   <PaymentInformation xmlns="">
  118.     <PaymentMethod>PO</PaymentMethod>
  119.   </PaymentInformation>
  120.   <PaymentInformation xmlns="">
  121.     <PaymentMethod>EVO</PaymentMethod>
  122.   </PaymentInformation>
  123. </PaymentInformations>
  124. </SalesOrder>
  125.        
  126. <?xml version="1.0" encoding="utf-8"?>
  127. <GenomicOrder>
  128.   <SalesOrder>
  129.     <OrderID>anyType</OrderID>
  130.     <ProductionOrderCount>1</ProductionOrderCount>
  131.     <OrderStatus>InCart</OrderStatus>
  132.     <Contact>anyType</Contact>
  133.     <ShipTo>anyType</ShipTo>
  134.     <SoldTo>anyType</SoldTo>
  135.     <BillTo>anyType</BillTo>
  136.     <SoldBy>anyType</SoldBy>
  137.     <OrderSite>TKY</OrderSite>
  138.     <ConfirmedDate>1900-01-01T01:01:01+05:30</ConfirmedDate>
  139.     <OrderRef>
  140.       <Type>ERP</Type>
  141.       <OrderRef>OrderRef1</OrderRef>
  142.     </OrderRef>
  143.     <OrderRef>
  144.       <Type>CUSTOMER</Type>
  145.       <OrderRef>OrderRef2</OrderRef>
  146.     </OrderRef>
  147.     <OrderRef>
  148.       <Type>EXT</Type>
  149.       <OrderRef>OrderRef3</OrderRef>
  150.     </OrderRef>
  151.     <FulfilmentInfo>
  152.       <TestOrder>true</TestOrder>
  153.       <PromotionCode>anyType</PromotionCode>
  154.       <Comment>
  155.         <CommentType>anyType</CommentType>
  156.         <CommentText>anyType</CommentText>
  157.         <CommentDate>1900-01-01T01:01:01+05:30</CommentDate>
  158.         <InternalComment>true</InternalComment>
  159.       </Comment>
  160.       <Comment>
  161.         <CommentType>anyType</CommentType>
  162.         <CommentText>anyType</CommentText>
  163.         <CommentDate>0001-01-01T00:00:00+05:30</CommentDate>
  164.         <InternalComment>false</InternalComment>
  165.       </Comment>
  166.       <Comment>
  167.         <CommentType>anyType</CommentType>
  168.         <CommentText>anyType</CommentText>
  169.         <CommentDate>9999-12-31T23:59:59.9999999+05:30</CommentDate>
  170.         <InternalComment>true</InternalComment>
  171.       </Comment>
  172.       <Shipment>
  173.         <shippingMethod>anyType</shippingMethod>
  174.         <shippingCarrier>anyType</shippingCarrier>
  175.         <shippingAccount>anyType</shippingAccount>
  176.         <condolidatedShipment>anyType</condolidatedShipment>
  177.         <ShippingCost>
  178.           <NetPrice>1</NetPrice>
  179.           <Tax>anyType</Tax>
  180.           <Currency>anyType</Currency>
  181.           <CalculationDate>anyType</CalculationDate>
  182.         </ShippingCost>
  183.       </Shipment>
  184.       <FirstConfirmedDate>1900-01-01T01:01:01+05:30</FirstConfirmedDate>
  185.       <DocumentationLanguage>anyType</DocumentationLanguage>
  186.       <GiftCertificate>anyType</GiftCertificate>
  187.       <GiftCertificate>anyType</GiftCertificate>
  188.       <GiftCertificate>anyType</GiftCertificate>
  189.     </FulfilmentInfo>
  190.     <PaymentOptions>
  191.       <PaymentMethod>CC</PaymentMethod>
  192.       <TransactionId>anyType</TransactionId>
  193.       <CardID>anyType</CardID>
  194.       <PoNumber>PoNumber1</PoNumber>
  195.       <Amount>1</Amount>
  196.     </PaymentOptions>
  197.     <PaymentOptions>
  198.       <PaymentMethod>PO</PaymentMethod>
  199.       <TransactionId>anyType</TransactionId>
  200.       <CardID>anyType</CardID>
  201.       <PoNumber>PoNumber2</PoNumber>
  202.       <Amount>-3.40282347E+38</Amount>
  203.     </PaymentOptions>
  204.     <PaymentOptions>
  205.       <PaymentMethod>EVO</PaymentMethod>
  206.       <TransactionId>anyType</TransactionId>
  207.       <CardID>anyType</CardID>
  208.       <PoNumber>PoNumber3</PoNumber>
  209.       <Amount>3.40282347E+38</Amount>
  210.     </PaymentOptions>
  211.   </SalesOrder>
  212.   <ProductionOrder>
  213.     <extpectedDeliveryDate>anyType</extpectedDeliveryDate>
  214.     <ProductionSite>TKY</ProductionSite>
  215.     <ProductionSystem>anyType</ProductionSystem>
  216.     <BusinessUnit>GSY</BusinessUnit>
  217.     <Comment>
  218.       <CommentType>anyType</CommentType>
  219.       <CommentText>anyType</CommentText>
  220.       <CommentDate>1900-01-01T01:01:01+05:30</CommentDate>
  221.       <InternalComment>true</InternalComment>
  222.     </Comment>
  223.     <Comment>
  224.       <CommentType>anyType</CommentType>
  225.       <CommentText>anyType</CommentText>
  226.       <CommentDate>0001-01-01T00:00:00+05:30</CommentDate>
  227.       <InternalComment>false</InternalComment>
  228.     </Comment>
  229.     <Comment>
  230.       <CommentType>anyType</CommentType>
  231.       <CommentText>anyType</CommentText>
  232.       <CommentDate>9999-12-31T23:59:59.9999999+05:30</CommentDate>
  233.       <InternalComment>true</InternalComment>
  234.     </Comment>
  235.     <Price>
  236.       <NetPrice>1</NetPrice>
  237.       <Tax>anyType</Tax>
  238.       <Currency>anyType</Currency>
  239.       <CalculationDate>anyType</CalculationDate>
  240.     </Price>
  241.     <Shipment>
  242.       <shippingMethod>anyType</shippingMethod>
  243.       <shippingCarrier>anyType</shippingCarrier>
  244.       <shippingAccount>anyType</shippingAccount>
  245.       <condolidatedShipment>anyType</condolidatedShipment>
  246.       <ShippingCost>
  247.         <NetPrice>-3.40282347E+38</NetPrice>
  248.         <Tax>anyType</Tax>
  249.         <Currency>anyType</Currency>
  250.         <CalculationDate>anyType</CalculationDate>
  251.       </ShippingCost>
  252.     </Shipment>
  253.     <OrderItems>
  254.       <ItemName>anyType</ItemName>
  255.       <Quantity>anyType</Quantity>
  256.       <UnitPrice>
  257.         <NetPrice>1</NetPrice>
  258.         <Tax>anyType</Tax>
  259.         <Currency>anyType</Currency>
  260.         <CalculationDate>anyType</CalculationDate>
  261.       </UnitPrice>
  262.       <KitNumber>anyType</KitNumber>
  263.       <KitComponents>
  264.         <KitComponentNumber>anyType</KitComponentNumber>
  265.         <Quantity>anyType</Quantity>
  266.         <Price>
  267.           <NetPrice>1</NetPrice>
  268.           <Tax>anyType</Tax>
  269.           <Currency>anyType</Currency>
  270.           <CalculationDate>anyType</CalculationDate>
  271.         </Price>
  272.       </KitComponents>
  273.       <ProductionInformation>
  274.         <GeneItem>anyType</GeneItem>
  275.       </ProductionInformation>
  276.     </OrderItems>
  277.     <OrderItems>
  278.       <ItemName>anyType</ItemName>
  279.       <Quantity>anyType</Quantity>
  280.       <UnitPrice>
  281.         <NetPrice>-3.40282347E+38</NetPrice>
  282.         <Tax>anyType</Tax>
  283.         <Currency>anyType</Currency>
  284.         <CalculationDate>anyType</CalculationDate>
  285.       </UnitPrice>
  286.       <KitNumber>anyType</KitNumber>
  287.       <KitComponents>
  288.         <KitComponentNumber>anyType</KitComponentNumber>
  289.         <Quantity>anyType</Quantity>
  290.         <Price>
  291.           <NetPrice>-3.40282347E+38</NetPrice>
  292.           <Tax>anyType</Tax>
  293.           <Currency>anyType</Currency>
  294.           <CalculationDate>anyType</CalculationDate>
  295.         </Price>
  296.       </KitComponents>
  297.       <ProductionInformation>
  298.         <GeneItem>anyType</GeneItem>
  299.       </ProductionInformation>
  300.     </OrderItems>
  301.     <OrderItems>
  302.       <ItemName>anyType</ItemName>
  303.       <Quantity>anyType</Quantity>
  304.       <UnitPrice>
  305.         <NetPrice>3.40282347E+38</NetPrice>
  306.         <Tax>anyType</Tax>
  307.         <Currency>anyType</Currency>
  308.         <CalculationDate>anyType</CalculationDate>
  309.       </UnitPrice>
  310.       <KitNumber>anyType</KitNumber>
  311.       <KitComponents>
  312.         <KitComponentNumber>anyType</KitComponentNumber>
  313.         <Quantity>anyType</Quantity>
  314.         <Price>
  315.           <NetPrice>3.40282347E+38</NetPrice>
  316.           <Tax>anyType</Tax>
  317.           <Currency>anyType</Currency>
  318.           <CalculationDate>anyType</CalculationDate>
  319.         </Price>
  320.       </KitComponents>
  321.       <ProductionInformation>
  322.         <GeneItem>anyType</GeneItem>
  323.       </ProductionInformation>
  324.     </OrderItems>
  325.     <ProductionOrderStatus>CART</ProductionOrderStatus>
  326.   </ProductionOrder>
  327.   <ProductionOrder>
  328.     <extpectedDeliveryDate>anyType</extpectedDeliveryDate>
  329.     <ProductionSite>EBE</ProductionSite>
  330.     <ProductionSystem>anyType</ProductionSystem>
  331.     <BusinessUnit>OLIGO</BusinessUnit>
  332.     <Comment>
  333.       <CommentType>anyType</CommentType>
  334.       <CommentText>anyType</CommentText>
  335.       <CommentDate>1899-11-30T01:01:01+05:30</CommentDate>
  336.       <InternalComment>false</InternalComment>
  337.     </Comment>
  338.     <Comment>
  339.       <CommentType>anyType</CommentType>
  340.       <CommentText>anyType</CommentText>
  341.       <CommentDate>1900-02-02T01:01:01+05:30</CommentDate>
  342.       <InternalComment>true</InternalComment>
  343.     </Comment>
  344.     <Comment>
  345.       <CommentType>anyType</CommentType>
  346.       <CommentText>anyType</CommentText>
  347.       <CommentDate>0001-02-02T00:00:00+05:30</CommentDate>
  348.       <InternalComment>false</InternalComment>
  349.     </Comment>
  350.     <Price>
  351.       <NetPrice>-3.40282347E+38</NetPrice>
  352.       <Tax>anyType</Tax>
  353.       <Currency>anyType</Currency>
  354.       <CalculationDate>anyType</CalculationDate>
  355.     </Price>
  356.     <Shipment>
  357.       <shippingMethod>anyType</shippingMethod>
  358.       <shippingCarrier>anyType</shippingCarrier>
  359.       <shippingAccount>anyType</shippingAccount>
  360.       <condolidatedShipment>anyType</condolidatedShipment>
  361.       <ShippingCost>
  362.         <NetPrice>3.40282347E+38</NetPrice>
  363.         <Tax>anyType</Tax>
  364.         <Currency>anyType</Currency>
  365.         <CalculationDate>anyType</CalculationDate>
  366.       </ShippingCost>
  367.     </Shipment>
  368.     <OrderItems>
  369.       <ItemName>anyType</ItemName>
  370.       <Quantity>anyType</Quantity>
  371.       <UnitPrice>
  372.         <NetPrice>-0.100000024</NetPrice>
  373.         <Tax>anyType</Tax>
  374.         <Currency>anyType</Currency>
  375.         <CalculationDate>anyType</CalculationDate>
  376.       </UnitPrice>
  377.       <KitNumber>anyType</KitNumber>
  378.       <KitComponents>
  379.         <KitComponentNumber>anyType</KitComponentNumber>
  380.         <Quantity>anyType</Quantity>
  381.         <Price>
  382.           <NetPrice>0.100000024</NetPrice>
  383.           <Tax>anyType</Tax>
  384.           <Currency>anyType</Currency>
  385.           <CalculationDate>anyType</CalculationDate>
  386.         </Price>
  387.       </KitComponents>
  388.       <ProductionInformation>
  389.         <GeneItem>anyType</GeneItem>
  390.       </ProductionInformation>
  391.     </OrderItems>
  392.     <OrderItems>
  393.       <ItemName>anyType</ItemName>
  394.       <Quantity>anyType</Quantity>
  395.       <UnitPrice>
  396.         <NetPrice>2.1</NetPrice>
  397.         <Tax>anyType</Tax>
  398.         <Currency>anyType</Currency>
  399.         <CalculationDate>anyType</CalculationDate>
  400.       </UnitPrice>
  401.       <KitNumber>anyType</KitNumber>
  402.       <KitComponents>
  403.         <KitComponentNumber>anyType</KitComponentNumber>
  404.         <Quantity>anyType</Quantity>
  405.         <Price>
  406.           <NetPrice>2.1</NetPrice>
  407.           <Tax>anyType</Tax>
  408.           <Currency>anyType</Currency>
  409.           <CalculationDate>anyType</CalculationDate>
  410.         </Price>
  411.       </KitComponents>
  412.       <ProductionInformation>
  413.         <GeneItem>anyType</GeneItem>
  414.       </ProductionInformation>
  415.     </OrderItems>
  416.     <OrderItems>
  417.       <ItemName>anyType</ItemName>
  418.       <Quantity>anyType</Quantity>
  419.       <UnitPrice>
  420.         <NetPrice>3.40282347E+38</NetPrice>
  421.         <Tax>anyType</Tax>
  422.         <Currency>anyType</Currency>
  423.         <CalculationDate>anyType</CalculationDate>
  424.       </UnitPrice>
  425.       <KitNumber>anyType</KitNumber>
  426.       <KitComponents>
  427.         <KitComponentNumber>anyType</KitComponentNumber>
  428.         <Quantity>anyType</Quantity>
  429.         <Price>
  430.           <NetPrice>-3.40282347E+38</NetPrice>
  431.           <Tax>anyType</Tax>
  432.           <Currency>anyType</Currency>
  433.           <CalculationDate>anyType</CalculationDate>
  434.         </Price>
  435.       </KitComponents>
  436.       <ProductionInformation>
  437.         <GeneItem>anyType</GeneItem>
  438.       </ProductionInformation>
  439.     </OrderItems>
  440.     <ProductionOrderStatus>ORDERED</ProductionOrderStatus>
  441.   </ProductionOrder>
  442.   <ProductionOrder>
  443.     <extpectedDeliveryDate>anyType</extpectedDeliveryDate>
  444.     <ProductionSite>HSV</ProductionSite>
  445.     <ProductionSystem>anyType</ProductionSystem>
  446.     <BusinessUnit>NGS</BusinessUnit>
  447.     <Comment>
  448.       <CommentType>anyType</CommentType>
  449.       <CommentText>anyType</CommentText>
  450.       <CommentDate>9999-11-29T23:59:59.9999999+05:30</CommentDate>
  451.       <InternalComment>true</InternalComment>
  452.     </Comment>
  453.     <Comment>
  454.       <CommentType>anyType</CommentType>
  455.       <CommentText>anyType</CommentText>
  456.       <CommentDate>1899-10-29T01:01:01+05:30</CommentDate>
  457.       <InternalComment>false</InternalComment>
  458.     </Comment>
  459.     <Comment>
  460.       <CommentType>anyType</CommentType>
  461.       <CommentText>anyType</CommentText>
  462.       <CommentDate>1900-03-06T01:01:01+05:30</CommentDate>
  463.       <InternalComment>true</InternalComment>
  464.     </Comment>
  465.     <Price>
  466.       <NetPrice>3.40282347E+38</NetPrice>
  467.       <Tax>anyType</Tax>
  468.       <Currency>anyType</Currency>
  469.       <CalculationDate>anyType</CalculationDate>
  470.     </Price>
  471.     <Shipment>
  472.       <shippingMethod>anyType</shippingMethod>
  473.       <shippingCarrier>anyType</shippingCarrier>
  474.       <shippingAccount>anyType</shippingAccount>
  475.       <condolidatedShipment>anyType</condolidatedShipment>
  476.       <ShippingCost>
  477.         <NetPrice>-0.100000024</NetPrice>
  478.         <Tax>anyType</Tax>
  479.         <Currency>anyType</Currency>
  480.         <CalculationDate>anyType</CalculationDate>
  481.       </ShippingCost>
  482.     </Shipment>
  483.     <OrderItems>
  484.       <ItemName>anyType</ItemName>
  485.       <Quantity>anyType</Quantity>
  486.       <UnitPrice>
  487.         <NetPrice>3.40282347E+38</NetPrice>
  488.         <Tax>anyType</Tax>
  489.         <Currency>anyType</Currency>
  490.         <CalculationDate>anyType</CalculationDate>
  491.       </UnitPrice>
  492.       <KitNumber>anyType</KitNumber>
  493.       <KitComponents>
  494.         <KitComponentNumber>anyType</KitComponentNumber>
  495.         <Quantity>anyType</Quantity>
  496.         <Price>
  497.           <NetPrice>3.40282347E+38</NetPrice>
  498.           <Tax>anyType</Tax>
  499.           <Currency>anyType</Currency>
  500.           <CalculationDate>anyType</CalculationDate>
  501.         </Price>
  502.       </KitComponents>
  503.       <ProductionInformation>
  504.         <GeneItem>anyType</GeneItem>
  505.       </ProductionInformation>
  506.     </OrderItems>
  507.     <OrderItems>
  508.       <ItemName>anyType</ItemName>
  509.       <Quantity>anyType</Quantity>
  510.       <UnitPrice>
  511.         <NetPrice>1.2</NetPrice>
  512.         <Tax>anyType</Tax>
  513.         <Currency>anyType</Currency>
  514.         <CalculationDate>anyType</CalculationDate>
  515.       </UnitPrice>
  516.       <KitNumber>anyType</KitNumber>
  517.       <KitComponents>
  518.         <KitComponentNumber>anyType</KitComponentNumber>
  519.         <Quantity>anyType</Quantity>
  520.         <Price>
  521.           <NetPrice>1.2</NetPrice>
  522.           <Tax>anyType</Tax>
  523.           <Currency>anyType</Currency>
  524.           <CalculationDate>anyType</CalculationDate>
  525.         </Price>
  526.       </KitComponents>
  527.       <ProductionInformation>
  528.         <GeneItem>anyType</GeneItem>
  529.       </ProductionInformation>
  530.     </OrderItems>
  531.     <OrderItems>
  532.       <ItemName>anyType</ItemName>
  533.       <Quantity>anyType</Quantity>
  534.       <UnitPrice>
  535.         <NetPrice>3.2</NetPrice>
  536.         <Tax>anyType</Tax>
  537.         <Currency>anyType</Currency>
  538.         <CalculationDate>anyType</CalculationDate>
  539.       </UnitPrice>
  540.       <KitNumber>anyType</KitNumber>
  541.       <KitComponents>
  542.         <KitComponentNumber>anyType</KitComponentNumber>
  543.         <Quantity>anyType</Quantity>
  544.         <Price>
  545.           <NetPrice>3.2</NetPrice>
  546.           <Tax>anyType</Tax>
  547.           <Currency>anyType</Currency>
  548.           <CalculationDate>anyType</CalculationDate>
  549.         </Price>
  550.       </KitComponents>
  551.       <ProductionInformation>
  552.         <GeneItem>anyType</GeneItem>
  553.       </ProductionInformation>
  554.     </OrderItems>
  555.     <ProductionOrderStatus>REVIEW</ProductionOrderStatus>
  556.   </ProductionOrder>
  557. </GenomicOrder>
  558.        
  559. <?xml version="1.0" encoding="utf-8"?>
  560. <SalesOrder xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Eurofins.Genomics.Egsp.Xbo.OrderManagement" z:Id="i1">
  561.   <CreatedByClient >testString</CreatedByClient>
  562.   <CreatedByUser >testString</CreatedByUser>
  563.   <CreatedOn >2012-04-26T17:44:15.4556116+05:30</CreatedOn>
  564.   <ExchangeableBusinessObjectId >00000000-0000-0000-0000-000000000000</ExchangeableBusinessObjectId>
  565.   <IncrementalId >0</IncrementalId>
  566.   <InstanceStatus >Active</InstanceStatus>
  567.   <ModifiedByClient  i:nil="true"/>
  568.   <ModifiedByUser  i:nil="true"/>
  569.   <ModifiedOn  i:nil="true"/>
  570.   <BillTo>self</BillTo>
  571.   <ConfirmedDate>2012-04-26T17:44:15.4546116+05:30</ConfirmedDate>
  572.   <Contact z:Id="i2">
  573.     <CreatedByClient >TestApplication</CreatedByClient>
  574.     <CreatedByUser >Ram</CreatedByUser>
  575.     <CreatedOn >2012-04-26T17:44:15.4546116+05:30</CreatedOn>
  576.     <ExchangeableBusinessObjectId >00000000-0000-0000-0000-000000000000</ExchangeableBusinessObjectId>
  577.     <IncrementalId >0</IncrementalId>
  578.     <InstanceStatus >Active</InstanceStatus>
  579.     <ModifiedByClient  i:nil="true"/>
  580.     <ModifiedByUser  i:nil="true"/>
  581.     <ModifiedOn  i:nil="true"/>
  582.     <Address z:Id="i3">
  583.       <CreatedByClient  i:nil="true"/>
  584.       <CreatedByUser  i:nil="true"/>
  585.       <CreatedOn >2012-04-26T17:44:15.4556116+05:30</CreatedOn>
  586.       <ExchangeableBusinessObjectId >00000000-0000-0000-0000-000000000000</ExchangeableBusinessObjectId>
  587.       <IncrementalId >0</IncrementalId>
  588.       <InstanceStatus >Active</InstanceStatus>
  589.       <ModifiedByClient  i:nil="true"/>
  590.       <ModifiedByUser  i:nil="true"/>
  591.       <ModifiedOn  i:nil="true"/>
  592.       <AddressType>Contact</AddressType>
  593.       <City>Bangalore</City>
  594.       <Country>India</Country>
  595.       <CustomField1 i:nil="true"/>
  596.       <CustomField2 i:nil="true"/>
  597.       <Fax i:nil="true"/>
  598.       <FirstName i:nil="true"/>
  599.       <LastName i:nil="true"/>
  600.       <Line1 i:nil="true"/>
  601.       <Line2 i:nil="true"/>
  602.       <Line3 i:nil="true"/>
  603.       <Mobile i:nil="true"/>
  604.       <Phone i:nil="true"/>
  605.       <Recipient i:nil="true"/>
  606.       <State i:nil="true"/>
  607.       <Street i:nil="true"/>
  608.       <Title i:nil="true"/>
  609.       <Zip i:nil="true"/>
  610.     </Address>
  611.     <EmailAddress>ramprasad@eurofins.com</EmailAddress>
  612.     <VatId i:nil="true"/>
  613.   </Contact>
  614.   <FulfillmentInfo z:Id="i4">
  615.     <CreatedByClient  i:nil="true"/>
  616.     <CreatedByUser >ram</CreatedByUser>
  617.     <CreatedOn  i:nil="true"/>
  618.     <ExchangeableBusinessObjectId >00000000-0000-0000-0000-000000000000</ExchangeableBusinessObjectId>
  619.     <IncrementalId >0</IncrementalId>
  620.     <InstanceStatus >Active</InstanceStatus>
  621.     <ModifiedByClient  i:nil="true"/>
  622.     <ModifiedByUser  i:nil="true"/>
  623.     <ModifiedOn  i:nil="true"/>
  624.     <Comments i:nil="true"/>
  625.     <DocumentationLanguage>testString</DocumentationLanguage>
  626.     <FirstConfirmedDate>2012-04-26T17:44:15.4536116+05:30</FirstConfirmedDate>
  627.     <GiftCertificate i:nil="true"/>
  628.     <GiftCertificates i:nil="true"/>
  629.     <PromotionCode>testString</PromotionCode>
  630.     <TestOrder>false</TestOrder>
  631.   </FulfillmentInfo>
  632.   <OrderReference>test</OrderReference>
  633.   <OrderReferenceCustomer>Order123456</OrderReferenceCustomer>
  634.   <OrderReferenceExternal>testext</OrderReferenceExternal>
  635.   <OrderStatus>Review</OrderStatus>
  636.   <PaymentInformations>
  637.     <PaymentInformation z:Id="i5">
  638.       <CreatedByClient >testString</CreatedByClient>
  639.       <CreatedByUser >testString</CreatedByUser>
  640.       <CreatedOn >2012-04-26T17:44:15.4536116+05:30</CreatedOn>
  641.       <ExchangeableBusinessObjectId >00000000-0000-0000-0000-000000000000</ExchangeableBusinessObjectId>
  642.       <IncrementalId >0</IncrementalId>
  643.       <InstanceStatus >Active</InstanceStatus>
  644.       <ModifiedByClient  i:nil="true"/>
  645.       <ModifiedByUser  i:nil="true"/>
  646.       <ModifiedOn  i:nil="true"/>
  647.       <Amount>123</Amount>
  648.       <EvoCardId>ER</EvoCardId>
  649.       <PaymentMethod>EvoCard</PaymentMethod>
  650.       <PoNumber i:nil="true"/>
  651.       <TransactionID i:nil="true"/>
  652.     </PaymentInformation>
  653.   </PaymentInformations>
  654.        
  655. <xsl:template match="/">
  656.     <xsl:apply-templates select="GenomicOrder/SalesOrder"/>
  657.  </xsl:template>
  658.  ...
  659.  
  660.   <xsl:template match="SalesOrder">
  661.     <SalesOrder>
  662.     ...
  663.       <xsl:apply-templates select="FulfilmentInfo"/>
  664.       <PaymentInformations>
  665.           <xsl:apply-templates select="PaymentOptions/PaymentMethod"/>
  666.       </PaymentInformations>
  667.     </SalesOrder>
  668.   </xsl:template>
  669.   ...
  670.   <xsl:template match="PaymentMethod">
  671.     <PaymentInformation>
  672.       <PaymentMethod>
  673.         <xsl:value-of select="."/>
  674.       </PaymentMethod>
  675.     </PaymentInformation>
  676.   </xsl:template>
  677.   ...