Hi
This is probably a daft question but i'm gonna ask it anyway.
Is it possible to mix XSLT with data access logic?
What i'm trying to do is read an xml file, use values from one element to lookup another value in a database and then replace the original xml element value with the one found in the database.
For example:
<?xml version="1.0" encoding="utf-8"?>
<Vehicles>
<Vehicle>
<DealerID>2719</DealerID>
</Vehicle>
</Vehicles>
In the xml above, I want to be able to extract the DealerID 2719, look in the database to find a corresponding value (say 3087) and replace the value in the xml file.
The resulting xml file would like like the following:
<?xml version="1.0" encoding="utf-8"?>
<Vehicles>
<Vehicle>
<DealerID>3087</DealerID>
</Vehicle>
</Vehicles>
Any help/comments appreciated.
Smeat
This is probably a daft question but i'm gonna ask it anyway.
Is it possible to mix XSLT with data access logic?
What i'm trying to do is read an xml file, use values from one element to lookup another value in a database and then replace the original xml element value with the one found in the database.
For example:
<?xml version="1.0" encoding="utf-8"?>
<Vehicles>
<Vehicle>
<DealerID>2719</DealerID>
</Vehicle>
</Vehicles>
In the xml above, I want to be able to extract the DealerID 2719, look in the database to find a corresponding value (say 3087) and replace the value in the xml file.
The resulting xml file would like like the following:
<?xml version="1.0" encoding="utf-8"?>
<Vehicles>
<Vehicle>
<DealerID>3087</DealerID>
</Vehicle>
</Vehicles>
Any help/comments appreciated.
Smeat