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

RE: Variable Problems

Subject: RE: Variable Problems
From: "James Game" <jgame@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 7 Sep 2005 10:09:50 +0100
james game
Hi Joris  (don't know what happened with previous post)

This is an example of data I have pulled from another source and I will be
looking for the same structure.  The fields are obviously named slightly
different but you get the idea.  This is the output I receive once run
through Oxygen using Xalan.

Im not too sure where the XML / XSL disagree (original post)- could you
point that out for me.

Many Thanks,
James

<DATAPACKET xmlns:ReutersNS="http://www.w3.org/1999/xhtml"
Version="2.0"><METADATA><FIELDS><FIELD WIDTH="255" fieldtype="string"
attrname="id"></FIELD>
<FIELD WIDTH="255" fieldtype="string" attrname="price"></FIELD>
<FIELD WIDTH="255" fieldtype="string" attrname="status"></FIELD>
<FIELD WIDTH="255" fieldtype="string" attrname="starpoint1"></FIELD>
<FIELD WIDTH="255" fieldtype="string" attrname="starpoint2"></FIELD>
<FIELD WIDTH="255" fieldtype="string" attrname="starpoint3"></FIELD>
<FIELD WIDTH="255" fieldtype="string" attrname="starpoint4"></FIELD>
<FIELD WIDTH="255" fieldtype="string" attrname="image1"></FIELD>
<FIELD WIDTH="255" fieldtype="string" attrname="image2"></FIELD>
<FIELD WIDTH="255" fieldtype="string" attrname="image3"></FIELD>
<FIELD WIDTH="255" fieldtype="string" attrname="image4"></FIELD>
<FIELD WIDTH="255" fieldtype="string" attrname="street"></FIELD>
<FIELD WIDTH="255" fieldtype="string" attrname="town"></FIELD>
<FIELD WIDTH="255" fieldtype="string" attrname="county"></FIELD>
</FIELDS>
</METADATA>
<ROWDATA><ROW county="East Sussex" town="Brighton" street="Campbell Road"
image3="" image2="" image1="HIR00001863.JPG" starpoint4="Bathroom"
starpoint3="2 Bedrooms" starpoint2="Kitchen" starpoint1="Lounge"
price="&pound;155,000" status="On Market" id="HIR00002400"></ROW>
<ROW county="East Sussex" town="Brighton" street="Canfield Road" image3=""
image2="" image1="HIR00001771.JPG" starpoint4="3 Bedrooms"
starpoint3="Kitchen" starpoint2="Dining Room" starpoint1="Lounge"
price="OIEO &pound;210,000" status="On Market" id="HIR00002554"></ROW>
<ROW county="East Sussex" town="Brighton" street="Ingham Drive" image3=""
image2="" image1="HIR00001785.JPG" starpoint4="Utility Room"
starpoint3="Kitchen" starpoint2="Dining Room" starpoint1="Lounge"
price="&pound;174,950" status="On Market" id="HIR00002571"></ROW>
<ROW county="East Sussex" town="Brighton" street="Pankhurst Avenue"
image3="" image2="" image1="HIR00001733.JPG" starpoint4="Separate WC"
starpoint3="Bathroom" starpoint2="Kitchen" starpoint1="Lounge"
price="&pound;179,950" status="On Market" id="HIR00002584"></ROW>
<ROW county="East Sussex" town="Brighton" street="Upper Lewes Road"
image3="" image2="" image1="HIR00001752.JPG" starpoint4="Rear Walled Patio
Garden" starpoint3="Bathroom" starpoint2="Bedroom" starpoint1="Open Plan
Lounge/Kitchen" price="&pound;120,000" status="On Market"
id="HIR00002605"></ROW>
<ROW county="East Sussex" town="Brighton" street="Haig Avenue" image3=""
image2="" image1="HIR00001797.JPG" starpoint4="2 Bedrooms"
starpoint3="Utility/Storage Area" starpoint2="Kitchen" starpoint1="Through
Lounge/Dining Room" price="&pound;167,000" status="On Market"
id="HIR00002608"></ROW>
<ROW county="East Sussex" town="Brighton" street="Arnold Street" image3=""
image2="" image1="HIR00001769.JPG" starpoint4="" starpoint3="" starpoint2=""
starpoint1="" price="&pound;200,000 - &pound;220,000" status="On Market"
id="HIR00002610"></ROW>
</ROWDATA>
</DATAPACKET>


 

-----Original Message-----
From: Joris Gillis [mailto:roac@xxxxxxxxxx] 
Sent: 07 September 2005 08:56
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re:  Variable Problems

Hi,

Tempore 17:16:06, die 09/06/2005 AD, hinc in xsl-list@xxxxxxxxxxxxxxxxxxxxxx
scripsit James Game <james_game2002@xxxxxxxxxxxxx>:

> I am trying to extract all data highlighted in Red on my XML and 
> populate to the rows specified.  As you can see the xml structure is 
> not the freindliest (especially to a newb) and i am finding this very 
> hard going.  So far i have manged to get the data output but not into 
> the rows. I would appreciate any help you guys can offer pointing me in
the right direction.

Your XML and XSLT disagree (you're attempting to extract nodes that do not
exist).
Could you provide the output you'd like to have? Then I might have a better
chance to put you on the right track...

regards,
--
Joris Gillis (http://users.telenet.be/root-jg/me.html)
Gaudiam omnibus traderat W3C, nec vana fides

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.