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
1 1891 jkmyoung 2,057
Recognized Expert Top Contributor
document ('20081111BBCOn e_pl.xml')/tv:TVAMain/tv:ProgramDescr iption/tv:ProgramLocat ionTable/tv:Schedule/tv:ScheduleEven t/tv:PublishedSta rtTime[element=@crid]"/>
shouldn't that be $crid, not @crid?
Sign in to post your reply or Sign up for a free account.
Similar topics |
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 wondering if
there is an equivalent of #define in Python for declaring constants.
Is there an elegant way of defining constants in Python? Please let
me know.
Thanks,
Sriram
|
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 be holding
all of the items in the folder and displaying only the .mdb. This
seems to be a problem with the way I am defining the size of the
array. If I add my .mdb filter to the array loop I get an 'out of
range' error for the n variable?? Can...
|
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 collection that I need.
To begin, I am using xsltproc that conmes with Cygwin as my processor.
I have no particular affinity to this processor except that it is open
source and standards compliant. I don't like M$, but if using a M$
processing...
|
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
for each class. However I am having trouble finding a way to pass this
static member to the subclass.
for instance,
/************ SAMPLE RECORD CLASS ***************/
|
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
popWindow=window.open('http://www.yahoo.com','','width=600,height=400,toolbar=1,location=1,menubar=1,resizable=1,titlebar=1,directories=1,status=1,scrollbars=1');
the sidebars are disabled. I click on the buttons for bookmarks and history
and they do nothing. I...
| |
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 widget each time so
that it doesn't contain earlier ones? Actually, another question I have
is, is there a way to set python so that it will assume any undefined
variable is 0 or ''? That is, I have several statements like "If k 0
then so and so"...
|
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
|
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;
|
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 var being "nextNode3"
I need to specify in the stylesheet to look for the next column – so that I can insert the xml.
This is the code that checks/defines for current & next, with the next being "nextNode"
<xsl:for-each...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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 then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |