Subject: RE: xslt assistance please From: "Eliot, Topher" <Christopher_Eliot@xxxxxxxxxxxxx> Date: Fri, 13 Oct 2000 13:23:31 -0600 |
Yes. Go buy a copy of "XSLT Programmer's Reference" by Michael Kay. ISBN 1-861003-12-9 $35. Well worth it. My copy is constantly open by my side. > -----Original Message----- > From: Azariah Jeyakumar [mailto:azariah.jeyakumar@xxxxxxxxxxxxxx] > Sent: Friday, October 13, 2000 12:24 PM > To: 'XSL-List@xxxxxxxxxxxxxxxx' > Subject: xslt assistance please > > > Hi, > > Would someone help me get started with XSLT? I need to > transform 1.xml to > 2.xml. > > Thanks a lot > Azariah > > 1.xml > -------- > > <root> > > <AccountBaseDescriptorType> > <element name="Name" type="string" minOccurs="0" /> > <element name="Medium" type="string" minOccurs="0" /> > <element name="Address" type="string" minOccurs="0" /> > <element name="Id" type="Integer64" minOccurs="0" /> > <element name="remaining" type="string" minOccurs="0" /> > </AccountBaseDescriptorType> > > <AccountCreatableDescriptorType base="AccountBaseDescriptorType" > > <mandatory> > <Name/> > <Address/> > </mandatory> > <prohibited> > <Id/> > </prohibited> > <defaults> > <Medium value="TW_MEDIUM_SMTP_HTTP"/> > </defaults> > </AccountCreatableDescriptorType> > > <AccountDescriptorType base="AccountBaseDescriptorType" > > <mandatory fields="ALL"> > </mandatory> > </AccountDescriptorType> > > </root> > > 2.xml > -------- > <complexType name="AccountBaseDescriptorType"> > <all> > <element name="Name" type="string" minOccurs=0 /> > <element name="Medium" type="string" minOccurs=0 /> > <element name="Address" type="string" minOccurs=0 /> > <element name="Id" type="Integer64" minOccurs=0 /> > <element name="remaining" type="string" minOccurs=0 /> > </all> > </complexType> > > <complexType name="AccountCreatableDescriptorType" > base="AccountBaseDescriptorType" > derivedBy="restriction" > > <all> > <element name="Name" type="string" minOccurs=1 /> > <element name="Medium" type="string" use="default" > value="TW_MEDIUM_SMTP_HTTP" /> > <element name="Address" type="string" minOccurs=1 /> > <element name="Id" type="Integer64" minOccurs=0 > maxOccurs=0 /> > <element name="remaining" type="string" minOccurs=0 /> > </all> > </complexType> > > <complexType name="AccountDescriptorType" > base="AccountBaseDescriptorType" > derivedBy="restriction" > > <all> > <element name="Name" type="string" minOccurs=1 /> > <element name="Medium" type="string" minOccurs=1 /> > <element name="Address" type="string" minOccurs=1 /> > <element name="Id" type="Integer64" minOccurs=1 /> > <element name="remaining" type="string" minOccurs=1 /> > </all> > </complexType> > > PS1: My goal is to generate 2.xml. So, it is OK to > restructure 1.xml to make > the transformation easier-to-write. > PS2: Performance is not a consideration for the transformation. > PS3: The element names "Account...DescriptorType" should not > be hard-coded > in the .xsl file. > > > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: xslt assistance please, Evan Lenz | Thread | RE: xslt assistance please, Kay Michael |
The XSL-List Digest is DOWN!!!, The XSL-List Digest | Date | [ ? ] Ignoring redundancy, Mikol Graves |
Month |