[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: xsl for parsing strange xml

Subject: RE: xsl for parsing strange xml
From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx>
Date: Mon, 23 Sep 2002 22:10:26 +0100
sagel_mail_scratch_tl
First, convert the XML to a "normalized" form in which all the
properties are explicitly marked up, rather than packing several things
together in one attribute. Then it shouldn't be too difficult to
organize things as you want using conventional sorting and grouping
techniques.

Michael Kay
Software AG
home: Michael.H.Kay@xxxxxxxxxxxx
work: Michael.Kay@xxxxxxxxxxxxxx 

> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx 
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of 
> Aparna Konduri
> Sent: 23 September 2002 16:22
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  xsl for parsing strange xml
> 
> 
> Hello,
> 
> I need help in parsing an xml file generated for java classes 
> and interfaces. Suppose I have a class like Car, and say Car 
> implements Vehicle interface. 
> 
> interface Vehicle{
> 	getIdentification();	
> }
> 
> class Car implements Vehicle
> {
> 	getName();
> 	getIdenitifcation();
> }
> 
> XML is of the form :
> 
> <member name="T:Car">
> 	<summary>
>       	It's a car class.
>       </summary>
> </member>
> <member name="T:Vehicle">
>       <summary>
> 		It's a vehicle interface.
> 	</summary>	
> </member>
> <member name="M:Vehicle.getIdentification">
>       <summary>
>             Identification of the vehicle.
>       </summary>
> </member>
> <member name="M:Car.getName">
>       <summary>
>             Name of the Car.
>       </summary>
> </member>
> <member name="M:Car.getIdentification">
>       <summary>
>             Name of the Car.
>       </summary>
> </member>
> 
> Note that in xml M: stands for method, and T: stands for Type. 
> Do you see that interface Vehicle information comes in 
> between Car? Because of this html is messed up. 
> 
> How do I tackle this scenario to show html for Vehicle and 
> Car separately? I am using xsl to parse the xml and use <div> 
> tags to group things by class i.e. Class with its methods 
> should be inside a <div>, interface and its methods should be 
> in a separate <div>. I would really appreciate your help.
> 
> Thanks,
> Aparna
> 
> 
> 
> 
> 
> _____________________________________________________________
> Play the ElvisR Scratch & Win for your chance to instantly 
> win $10,000 Cash
> - a 2003 Harley DavidsonR SportsterR - 1 of 25,000 CD's - and 
> more! 
> http://r.lycos.com/r/sagel_mail_scratch_tl/http://win.ipromoti
ons.com/lycos_020801/index.asp?tc=7087 

 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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.