Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
|
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 21st, 2008, 06:04 AM
Authorized User
 
Join Date: Jul 2008
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Default how to match the values to the scale

As m creating a chart with using xml and xslt.mnot able to solve a problem as in the chart m creating a scale hour from 00:00 to 23:00 each of 60 width in <th> in table.
then in <td> each display a task related to scale as if task start time is 04:00 then it matches with scale and then it draw the task. how it will be done ????
please help me :(

 
Old July 21st, 2008, 06:08 AM
samjudson's Avatar
Friend of Wrox
 
Join Date: Aug 2007
Posts: 2,128
Thanks: 1
Thanked 189 Times in 188 Posts
Default

Please read the post "How to create a good XSLT Post": http://p2p.wrox.com/topic.asp?TOPIC_ID=49630

Then please provide details of your source XML, what you would like your output to look like, and what you have tired so far.

Also, if you could refrain from abbreviating every other word it would make it much easier to read what you are writing.

/- Sam Judson : Wrox Technical Editor -/
 
Old July 21st, 2008, 06:17 AM
Authorized User
 
Join Date: Jul 2008
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Default


Now the xslt:

this is the complete code,and can u help me as how to match the values to the scale.
 
Old July 21st, 2008, 09:39 PM
mhkay's Avatar
Wrox Author
 
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
Default

Your stylesheet is missing a version attribute, which (a) is illegal (and should cause a fatal error), and (b) means that we don't know whether you are using XSLT 1.0 or XSLT 2.0. This is relevant because XSLT 2.0 has extensive operations for manipulating dates and times. However, you already seem to be doing this using substring(), so I guess it's 1.0.

I get a rough idea of what you are trying to do, but I don't think I understand it in enough detail to show you the code, or even suggest an algorithm. Also I'm really not convinced that using tables is the right way to do this kind of thing - wouldn't SVG be more suitable?

Try producing a simplified version of the problem: simplify the input and show is the desired HTML output.

Michael Kay
http://www.saxonica.com/
Author, XSLT 2.0 and XPath 2.0 Programmer's Reference





Similar Threads
Thread Thread Starter Forum Replies Last Post
template match doesnt match the required node Tomi XSLT 2 March 12th, 2007 06:24 AM
Figuring out which values don't match ninel SQL Server 2000 7 May 12th, 2006 01:26 AM
non-linear y-axis scale for stock charts Alseikhan Excel VBA 0 March 28th, 2006 01:54 PM
How to Scale Pictures down gmoney060 Classic ASP Basics 1 September 13th, 2004 06:40 PM
Alter FIeld Size And Scale fastcorvette Access 3 December 17th, 2003 06:04 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.