473,461 Members | 1,454 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Problem defining a variable name

Hello everyone.
I'm a novice to XML/XSL so it would be great to learn from the experts.
The ouput of my xml file is BBC EPG(Electronic Programme Guide) table.

I'm having problems defining a variable name for element in xml file.
The output I would like to have is a table is produced with programme name,
programme start time,programme duration and programme details.

The programme start time and programme duration are taken from another xml file,rather than one
defined in the XPATH.I can't seem to manage to extract the data from the second xml file to output values
needed for these two columns, in the format such 2008-11-11T03:35:00Z and PT00H30M00S respectively.
Each programme start/duration need to correspond to programme name/details - at the moment I'm
getting the same value in each cell of programme start/duration.

I think I'm defining the variable required wrong.It would great if somebody could help me.
I've attached the required three files in .zip format.

Thank you very much
John
Attached Files
File Type: zip BBC files.zip (11.5 KB, 87 views)
Nov 29 '08 #1
1 1870
jkmyoung
2,057 Expert 2GB
document ('20081111BBCOne_pl.xml')/tv:TVAMain/tv:ProgramDescription/tv:ProgramLocationTable/tv:Schedule/tv:ScheduleEvent/tv:PublishedStartTime[element=@crid]"/>

shouldn't that be $crid, not @crid?
Dec 1 '08 #2

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

Similar topics

2
by: Sriram Chadalavada | last post by:
Hello everyone, I am a newbie to Python with experience in C programming. For my project, I am re-writing C routines as Python functions. I am currently using raw numerical values and was...
2
by: djharrison | last post by:
I have managed to populate a dropdown box with a list of all files in the current folder and even filtered them by the extension so that it only displays the .mdb files. However, the menu seems to...
5
by: Clifford W. Racz | last post by:
Has anyone solved the issue of translating lists in Word 2003 (WordML) into xHTML? I have been trying to get the nested table code for my XSLT to work for a while now, with no way to get the...
4
by: bingomanatee | last post by:
I am having a problem with inheritance and static properties. I am writing a data record class object structure for Xoops. Because the table name is dynamic, I have to set it as a static member...
8
by: Dominic Tocci | last post by:
I'm searching for a way to use window.open on my web page to open a window in firefox that allows the sidebars to work (bookmarks, history, etc). When I use the following: var...
4
by: gmarkowsky | last post by:
Hi all, I'm trying to write a GUI that will put up multiple widgets in succession. My problem is that each widget also contains the previous widgets when they pop up. How do I reinitialize the...
26
by: Cliff Williams | last post by:
Can someone explain the pros/cons of these different ways of creating a class? // 1 function myclass() { this.foo1 = function() {...} } // 2a
8
by: Rahul | last post by:
Hi, I have the following code and i get a compilation error, int main() { class Locale { public: static int c;
2
by: ismailc | last post by:
Hi, I don't know xml. The stylesheet identifies all the objects from DB & as it reads through the DB, it checks the next object "for-each", I need to check the third object as well & define within...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...

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.