469,327 Members | 1,242 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,327 developers. It's quick & easy.

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 4125
Dormilich
8,651 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,651 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,651 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
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by Purva khokhar | last post: by
reply views Thread by haryvincent176 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.