C
Chrism2671
I'm new to XSLT/XML and I have a very simple, quick question. i've
been trying to convert simple xml files into CSV files and have made a
simple XSLT template using the w3 tutorials, but it doesn't seem to
display anything. It does display plain text I enter into the
templates, the value-of tags just render whitespace.
If anybody can write a template of just a few lines just to
demonstrate how to get it to display something from this XML I would
be very very very appreciative.
<OrganisationList xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="nhs.uk">
<Organisation OrganisationType="15" ParentOrganisation="5HX"
OrganisationCode="E85053">
<PremisesList>
<Premises SiteOrder="0" mainsite="true" PremisesCode="UB5
4AT^1">
<ContactDetails>
<TextPhone>none</TextPhone>
<Fax>020 8422 8040</Fax>
<Telephone>020 8864 8133</Telephone>
</ContactDetails>
<Address>
<Line1>45 Doncaster Drive</Line1>
<Line2>Northolt</Line2>
<Line3>Middx</Line3>
<Line4>none</Line4>
<Line5>none</Line5>
<PostCode>UB5 4AT</PostCode>
</Address>
<PremisesNameList>
<PremisesName NameType="">
<TheName>Dr Balachandran, G</TheName>
</PremisesName>
</PremisesNameList>
</Premises>
</PremisesList>
<NameList OrganisationCode="E85053">
<Name>
<TheName>Dr Balachandran, G</TheName>
</Name>
</NameList>
</Organisation>
</OrganisationList>
been trying to convert simple xml files into CSV files and have made a
simple XSLT template using the w3 tutorials, but it doesn't seem to
display anything. It does display plain text I enter into the
templates, the value-of tags just render whitespace.
If anybody can write a template of just a few lines just to
demonstrate how to get it to display something from this XML I would
be very very very appreciative.
<OrganisationList xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="nhs.uk">
<Organisation OrganisationType="15" ParentOrganisation="5HX"
OrganisationCode="E85053">
<PremisesList>
<Premises SiteOrder="0" mainsite="true" PremisesCode="UB5
4AT^1">
<ContactDetails>
<TextPhone>none</TextPhone>
<Fax>020 8422 8040</Fax>
<Telephone>020 8864 8133</Telephone>
</ContactDetails>
<Address>
<Line1>45 Doncaster Drive</Line1>
<Line2>Northolt</Line2>
<Line3>Middx</Line3>
<Line4>none</Line4>
<Line5>none</Line5>
<PostCode>UB5 4AT</PostCode>
</Address>
<PremisesNameList>
<PremisesName NameType="">
<TheName>Dr Balachandran, G</TheName>
</PremisesName>
</PremisesNameList>
</Premises>
</PremisesList>
<NameList OrganisationCode="E85053">
<Name>
<TheName>Dr Balachandran, G</TheName>
</Name>
</NameList>
</Organisation>
</OrganisationList>