[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
how to convert a given xml document to other xmldocument using XSL?
for example my XML document xmlA should be Converted to xmlB .how to write an XSL for this?
The following are the Xml documents xmlA and xmlB:
The output xml(i.e)xmlB should be as follows:
END
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
conversion of xml document using xsl
Subject: conversion of xml document using xsl From: "satish gvs" <gvs_sat@xxxxxxxxxxx> Date: Fri, 12 May 2000 07:50:20 PDT |
how to convert a given xml document to other xmldocument using XSL?
for example my XML document xmlA should be Converted to xmlB .how to write an XSL for this?
The following are the Xml documents xmlA and xmlB:
xmlA: <invoice> <InvoiceHeader> <InvoiceDate>19990517</InvoiceDate> <ContractNumber>ABC124</ContractNumber> </InvoiceHeader> <ListOfInvoiceDetail> <InvoiceDetail> <BaseItemDetail> <LineItemNumber>1</LineItemNumber> <SupplierPartNum> SKU123 </SupplierPartNum> <Quantity>10 </Quantity> </BaseItemDetail> <InvoiceUnitPrice>13.95</InvoiceUnitPrice> </InvoiceDetail> <InvoiceDetail> <BaseItemDetail> <LineItemNumber>10</LineItemNumber> <SupplierPartNum> SKUABC</SupplierPartNum> <Quantity>12</Quantity> </BaseItemDetail> <InvoiceUnitPrice>15.75</InvoiceUnitPrice> </InvoiceDetail> </ListOfInvoiceDetail> <InvoiceSummary_r> <SubTotal_r>328.50</SubTotal_r> <Tax>26.947</Tax> <Total>355.437</Total> </InvoiceSummary> </Invoice>
The output xml(i.e)xmlB should be as follows:
<Inv> <InvHead> <InvDate>19990517</InvDate> </InvHead> <InvDetails> <ItemNumber>1</ItemNumber> <PartNum> SKU123</PartNum> <Qty>10</Qty> </InvDetails> <InvDetails> <ItemNumber>10</ItemNumber> <PartNum> SKUABC</PartNum> <Qty>12</Qty> </InvDetails> <total>355.437</total> </Inv>
END
________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
conversion of xml document using XS, satish gvs | Thread | RE: conversion of xml document usin, Kay Michael |
RE: variable and match, Kay Michael | Date | Re: XML slice design, Dan Morrison |
Month |