By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,384 Members | 671 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,384 IT Pros & Developers. It's quick & easy.

Editing a Generated XSL file with PHP

P: n/a
Hi there

Using an XML file containing customer elements:
<customers>
<customer>
<namebob </name>
</customer>
....
...
</customers>

And an XSL file, I have a php file containing java script which takes
these 2 files and formats it to display in html table format the
customers details.

Now:
The php file is passed a specific customer name through a URL. I now
want to take these 2 files and display the record containing the
customer name passed in. This requires changing the XSL code to:
<xsl:if test="foo:name='bob'">
<tr>
<td><xsl:value-of select= "foo:name"/></td>
</tr>

But how can I automatically update the XSL file to search for the
specific customer name passed in the URL.
<xsl:if test="foo:name='PASSED CUSTOMER NAME'">
Is there a way to edit the XSL file through PHP to do this and if so
how would I go about doing this. If there isn't a way, what do you
think my best solution would be.

I am quite new to web technologies so any help would be greatly
appreciated! Thanks for your time.
Best regards
Chris
Dec 13 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
On 13 Dec, 11:56, crazychris...@hotmail.com wrote:
Could you explain this bit:
And an XSL file, I have a php file containing java script which takes
these 2 files and formats it to display in html table format the
customers details.
It doesn't make sense?
Dec 13 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.