[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: How do you this XML document to this other one (DTD to DTD)


Subject: Re: How do you this XML document to this other one (DTD to DTD)
From: "Matt MacKenzie" <matt@xxxxxxxxxxxxxxx>
Date: Wed, 28 Apr 1999 20:13:54 -0300

----- Original Message -----
From: <Francois_Deza@xxxxxxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxx>
Sent: Wednesday, April 28, 1999 6:14 PM
Subject: How do you this XML document to this other one (DTD to DTD)


:
:
: How do you map this thru a XSL stylesheet
:
: Input XML:
:
: <PRODUCT_FORM>
:      <IND_SURNAME>Deza</IND_SURNAME>
:      <IND_BIRTHDATE>13-11-63</IND_BIRTHDATE>
:      <PRIMARY_ADDR_STREET_NAME>Am Seestern</PRIMARY_ADDR_STREET_NAME>
:      <PRIMARY_ADDR_STREET_NUMBER>444</PRIMARY_ADDR_STREET_NUMBER>
: </PRODUCT_FORM>
:
:
: to this
:
: Output XML:
:
: <IndCompleteOrderForm>
:
:      <Surname>Deza</Surname>
:
:      <IndCustomer>
:           <BirthDate>13-11-63</BirthDate>
:      </IndCustomer>
:
:      <PrimAddress>
:           <StreetName>Am Seestern</StreetName>
:           <StreetNumber>444</StreetNumber>
:      </PrimAddress>
:
: </IndCompleteOrderForm>
:
:
: As you can see data are shuffled and restructured. From a tree of depth1
we
:  go to a tree of irregular depth.
:

I think you are confused as to what XSL does.  XSL, or eXtensible Style
Language is used to format XML for display.  What you want to do is reformat
the XML, and this can be accomplished with a simple Perl, Python, ...,
script.


________________________________________________
Matthew MacKenzie           matt@xxxxxxxxxxxxxxx
   http://www.cartnetwork.com/people/matt.lsp



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



Current Thread
Keywords