• Hey Guest. Check out your NeoGAF Wrapped 2025 results here!

need a bit of help with xml/xsl...

Status
Not open for further replies.

7imz

Member
Here's the xml file

<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="digicam.xsl"?>
<!DOCTYPE camera SYSTEM "digicam.dtd">

<application>
<camera model="ePhoto CL50" UPC="6984861204">
<manufacturer>Agfa</manufacturer>
<imgSize>1600 x 1200</imgSize>
<LCDSize>1.8"</LCDSize>
<storageMedia>SM</storageMedia>
<lensDetail>3x</lensDetail>
<warrantyInfo>1 year</warrantyInfo>
<battery>4xAA</battery>
<URL>http://www.steves-digicams.com/cl50.html</URL>
</camera>

<camera model="PowerShot A80" UPC="9764030714">
<manufacturer>Canon</manufacturer>
<imgSize>2272 x 1704</imgSize>
<LCDSize>1.5"</LCDSize>
<storageMedia>CF</storageMedia>
<lensDetail>3x</lensDetail>
<warrantyInfo>2 years</warrantyInfo>
<battery>4xAA</battery>
<URL>http://www.steves-digicams.com/2003_reviews/a80.html</URL>
</camera>


<camera model="EX-S3" UPC="9059330173">
<manufacturer>Casio</manufacturer>
<imgSize>2048 x 1536</imgSize>
<LCDSize>2"</LCDSize>
<storageMedia>SD/MMC</storageMedia>
<lensDetail>36mm</lensDetail>
<warrantyInfo>1 year</warrantyInfo>
<battery>Lithium rechargeable battery</battery>
<URL>http://www.steves-digicams.com/2003_reviews/exs3.html</URL>
</camera>


<camera model="FinePix A350" UPC="5439601927">
<manufacturer>Fuji </manufacturer>
<imgSize>5-Megapixel</imgSize>
<LCDSize>1.7"</LCDSize>
<storageMedia>xD</storageMedia>
<lensDetail>3x</lensDetail>
<warrantyInfo>6 months</warrantyInfo>
<battery>2xAA</battery>
<URL>http://www.steves-digicams.com/2005_reviews/fuji_a350.html</URL>
</camera>


<merchant name="Best Buy" phone="1-866-BEST BUY">
<URL>www.bestbuy.ca</URL>
<hoursOfService>monday to friday 9 to 5</hoursOfService>
<deliveryTime>2 to 3 business days</deliveryTime>
<payment>Visa</payment>
<camerasSold>model="ePhoto CL50" UPC="6984861204" price="199.99" availability="Yes"</camerasSold>
</merchant>


<merchant name="Future Shop" phone=" 1-800-663-2275">
<URL>www.futureshop.ca</URL>
<hoursOfService>24/7</hoursOfService>
<deliveryTime>5 to 7 business days</deliveryTime>
<payment>MasterCard</payment>
<camerasSold>model="PowerShot A80"UPC="9764030714" price="299.99" availability="Yes"</camerasSold>
<camerasSold>model="ePhoto CL50" UPC="6984861204" price="199.99" availability="No"</camerasSold>
</merchant>


<merchant name="Amazon" phone="1-800-8amazon">
<URL>www.amazon.com</URL>
<hoursOfService>24/7</hoursOfService>
<deliveryTime>3 to 4 business days</deliveryTime>
<payment>Visa, Mastercard, American Express</payment>
<camerasSold>model="ePhoto CL50" UPC="6984861204" price="199.99" availability="Yes"</camerasSold>
<camerasSold>model="PowerShot A80"UPC="9764030714" price="299.99" availability="No"</camerasSold>
<camerasSold>model="FinePix A350" UPC="5439601927" price="249.99" availability="Yes"</camerasSold>
</merchant>

</application>


-------------------------------------------------------------------------------------

what i want to do exactly is print in seperate tables, the camera models and the name of the merchants who sell them... i've been at it for sometime now but i can't figure it out...

on a side note... everytime i try to burn a cd, my computer freezes up, begins dump of physical memory then restarts... any ideas why...

thanks
 
Status
Not open for further replies.
Top Bottom