472,119 Members | 1,701 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,119 software developers and data experts.

XSLT concat what is wrong w/ the following

Expand|Select|Wrap|Line Numbers
  1. <xsl:param name="foostart" select=(xsl:value-of select="startdate")/>
  2.            <xsl:param name="fooend" select =(xsl:value-of select= "enddate")/>
  3.            <xs:param name="startend select=("concat($foostart,'-',$fooend)" />

and

Expand|Select|Wrap|Line Numbers
  1. <td><xsl:value-of select="concat(xsl:value-of select ="starttime","-", xsl:value-of select="endtime")"/></td>
Aug 5 '09 #1
5 4214
Dormilich
8,658 Expert Mod 8TB
you didn’t quote properly.

the first 2 lines (resp. the attribute values) are not quoted at all, the 3rd one misses 1 and has a ( too much, the 4th one is not correctly nested (the attribute value goes from the first " to the next ")
Aug 6 '09 #2
what would the correct lines be?

these aren't attributes ....but elements
Aug 6 '09 #3
Dormilich
8,658 Expert Mod 8TB
to give you an example
Expand|Select|Wrap|Line Numbers
  1. <xsl:param name="foostart" select="xsl:value-of select='startdate'"/>
this would be valid (though I don’t know, whether it’s what you want)
Aug 7 '09 #4
<xsl:param name="startend" select=("concat($foostart,'-',$fooend))" />

what is the matter w/ this...and should this be a param or a variable?
Aug 12 '09 #5
Dormilich
8,658 Expert Mod 8TB
still not valid, omit the outmost parentheses.

whether this should be a variable or parameter depends on its use, refer to the specs for that.
Aug 13 '09 #6

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

1 post views Thread by Patrick Reilly | last post: by
4 posts views Thread by Gerald Aichholzer | last post: by
6 posts views Thread by Scott Zabolotzky | last post: by
reply views Thread by david.paik | last post: by
3 posts views Thread by rls03 | last post: by
8 posts views Thread by Hercules Dev. | last post: by
10 posts views Thread by olivier.scalbert | last post: by
1 post views Thread by Sandeep Singh | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.