Problem defining a variable name

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mrsmith221189
    New Member
    • Nov 2008
    • 1

    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
  • jkmyoung
    Recognized Expert Top Contributor
    • Mar 2006
    • 2057

    #2
    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?

    Comment

    Working...