I have a registration form that is taking information from a XML file and using a XSLT template to transform this data into HTML output, which is then shown on screen.

The problem I have is that a need to output a database driven list of companies into the XSLT. Next I need to match up any companies that appear in my XML to this database listbox...

Any ideas how I can do this?

I thought of doing a simple "find and replace" by just placing a <input name="changeme"/> in my XSLT and inject the database list. But I need to select those companies from the XML list, which I cannot do this way!

Any help much appreciated...