4 messages in com.googlegroups.google-gadgets-apinxsl - the values attribute
FromSent OnAttachments
willwade09 Feb 2006 14:55 
mesch10 Feb 2006 04:31 
fillup15 Feb 2006 09:24 
mesch15 Feb 2006 19:53 
Subject:nxsl - the values attribute
From:willwade (will@gmail.com)
Date:02/09/2006 02:55:12 PM
List:com.googlegroups.google-gadgets-api

Hi there The docs seem pretty sparse on this issue so wonder if anyone out there knows what Im on about..

I have an xml file that Im doing a simple bit of transforming and looks like this:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?><feed xml:lang="en-US"> <title mode="escaped" type="text/html">pics</title> <info mode="xml" type="text/html"> <div xmlns="http://www.w3.org/1999/xhtml"> This is a feed created for google homepage </div> </info> <entry> <issued>20060209</issued> <image type="image/html">http://www.test.com/someimage.gif</image> </entry>

(etc..)

What I want to do is simply show the first image.. so I currently have.. var nxsl = xmlParse('' + '<div select="/feed/entry[1]">' + ' <img select="image" content="." />' + '</div>'); which gives back: <img>http://www.test.com/someimage.gif</img> which as we all know isnt how a img tag looks like. On the reference page (http://www.google.com/apis/homepage/reference.html) it states that the "values" attribute is what I probably need... but cant get the name:pair thing working - what does the name pair look like?

thanks will