View Single Post
Old 01-09-2013, 08:47 PM   PM User | #3
sbhmf
New Coder

 
Join Date: Jan 2013
Location: Sunnyvale, CA
Posts: 39
Thanks: 3
Thanked 1 Time in 1 Post
sbhmf is an unknown quantity at this point
I'm not responding here to the original post, but am commenting on the previous one.

Difficult to distinguish the quotes from the apostrophes (a.k.a. single-quotes) on my display, but it appears that they are not paired properly:

'<xsl:value-of select="Data/DataRow[@index="+(i+1)+"]/ID"/>'

might be intended as

'<xsl:value-of select=\'Data/DataRow[@index="' + (i+1) + '"]/ID\'/>'

wherein the quotes that are adjacent to plus signs, like the initial and final quotes, are all apostrophes, the index attribute's value is wrapped in real double-line quotes, and the value of the select attribute is wrapped in escaped apostrophes (single-quotes). That way, the final will look something like: <xsl:value-of select='Data/DataRow[@index="10"]/ID' />.

My XSLT is somewhat rusty, but I think there's a problem with the /ID after the @index - it should not be there. You might want to make sure that your code correctly builds your querystring. Why not set up an alert and see what the concatenated querystring looks like and make sure it is correctly formatted?

In case you have not yet discovered it, zvon.org is one of the noted sites for xslt documentation and examples. Perhaps you will find what you are looking for there.

Hope it helps.

Last edited by sbhmf; 01-09-2013 at 08:58 PM.. Reason: fixed typo and added a comment
sbhmf is offline   Reply With Quote