473,372 Members | 897 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,372 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)" />


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 4371
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
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
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

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

Similar topics

by: Patrick Reilly | last post by:
I am trying to implement a better method than I already have to document database schemas with XML, and use XSLT to both generate database DDL statements (CREATE TABLE, etc) and to transform to...
by: Gerald Aichholzer | last post by:
Hello, I need to specify the following attribute in an xhtml-file containing TAL templates: <div tal:attributes="onMouseOver concat('func(',xyz,')')"> which results in <div...
by: Scott Zabolotzky | last post by:
I have the following XML sample: <Component Name="A"> <Param Name="OptionEnabled" DataType="boolean"> <Default>true</Default> </Param> <Param Name="Size" DataType="unsignedInt"/> <Param...
by: david.paik | last post by:
Given the data: <?xml version="1.0" encoding="UTF-8"?> <?xml-stylesheet type="text/xsl" href="C:\junk\830new.xslt"?> <SC830> <SC830_3 bano="S67777" cuno="002620" year="2007" week="38"...
by: rls03 | last post by:
I have the following which creates a variable containing a relative path where <xsl:value-of select="."/returns a portion of the filename: <xsl:variable...
by: Hercules Dev. | last post by:
Hi all, I'm new in xslt and xpath, so my question might be simple but i'm learning. I have an XML document and need to transform it into another XML, I use xslt and it works, but there is a...
by: olivier.scalbert | last post by:
Hello, the following constraints: source: <Source> <Item>AAA</Item> <Item>BBBBBBBBBBB</Item> <Item>CCCCCCCCC</Item> <Item>DDDDDDDDDDDDDDD</Item>
by: CAM123 | last post by:
I have added: <br><xsl:value-of select="Line" /></br> to my XSLT stylesheet to get a line per repeating block. When I view the output as XML it looks perfect - one line per block. However...
by: Sandeep Singh | last post by:
Hi, How to do group by in XSLT ? I tried on the following codes: <files> <file name="swablr.eps" size="4313" project="mars"/> <file name="batboy.wks" size="424" ...
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.