473,386 Members | 1,830 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Editing a Generated XSL file with PHP

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
1 1057
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Brian K | last post by:
I am new to Apache Batik and I am now doing a SVG Editor for my project. I use Java as programming language. I use Batik to generate the SVG from Java Graphics2D, as I would like to transform...
0
by: Victor Engmark | last post by:
I am quite new to XForms, but I need to do a feasibility study to see whether a system I'm supposed to make can be done without any scripting or programming language (to make it simple and not need...
12
by: Ron Weldy | last post by:
I have a test server runinng 2003/IIS 6 with a mixture of asp and asp.net files. On my workstation I have a share set up to the folder where the web files reside. I am just doing quick and dirty...
0
by: Vanga Sasidhar | last post by:
Hi All, Please help me in the following problem. I am having some files with AVI extension. I want to make two programs in Visual Basic .NET which will work with these AVI Files. One program...
2
by: Mad Scientist Jr | last post by:
I am editing an existing application that has a System.Windows.Forms.TreeView with a right-click menu with several options. I want to get rid of the TreeView alltogether and rip out the code for...
1
by: Jon Gabel | last post by:
OK, I know your're not supposed to do this. But it would be very handy to be able to edit Windows Form Designer generated code when generating lots of similar objects. In Visual Studio 2005, I...
12
by: Thomas Bartkus | last post by:
Does anyone use emacs together with both WordStar key bindings and python mode? I'm afraid that Wordstar editing key commands are burned R/O into my knuckles! I would like to play with emacs...
1
by: AmitKu | last post by:
I've got the Gridview going at full speed, and I've enabled editing, but when I click on the "edit" button, this ugly editing UI comes up. Well it's not ugly, but it's not great either. How do I...
1
by: =?Utf-8?B?TmV0aGVzaA==?= | last post by:
Where I can find to download "Manifest Generation and Editing Tool (Mage.exe) " or "Manifest Generation and Editing Tool, Graphical Client (MageUI.exe) ". Is there any other tool which will help...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.