Hi, I have the following XML file (it is a TCX file)

<?xml version="1.0"?>
<TrainingCenterDatabase xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.garmin.com/xmlschemas/TrainingCenterDatabase/v2">
    <Activity Sport="Biking">
      <Lap StartTime="..">
              <TPX xmlns="http://www.garmin.com/xmlschemas/ActivityExtension/v2">

I want to add the following to each <Trackpoint> tag:


Using the attached xsl sheet. When I run the file with PHP only the identity template is being invoked and not the second template. I think it may be due to namespace but have no idea really. Any ideas greatly appreciated. Thanks James.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.