Subject: RE: [xsl] Variable Problems From: "James Game" <jgame@xxxxxxxxxxxxxxxxxxxxxxx> Date: Wed, 7 Sep 2005 09:47:02 +0100 |
<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> Hi Joris 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. (different <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="Bevendean Crescent" image3="HIR00001768.JPG" image2="HIR00001764.JPG" image1="HIR00001763.JPG" starpoint4="Bathroom" starpoint3="3 Bedrooms" starpoint2="Kitchen" starpoint1="23' Through Lounge/Diner" price="£189,950" status="On Market" id="HIR00000426"></ROW> </ROWDATA> </DATAPACKET> Many Thanks, James -----Original Message----- From: Joris Gillis [mailto:roac@xxxxxxxxxx] Sent: 07 September 2005 08:56 To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: Re: [xsl] 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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Variable Problems, Joris Gillis | Thread | RE: [xsl] Variable Problems, James Game |
Re: [xsl] Solution: Passing Cookie , Joris Gillis | Date | Re: [xsl] efficient use of key elem, andrew welch |
Month |