beginners problems (combining xml feeds etc)
Hi all, sorry if this stuff is really basic but im new to this XMLT stuff (ive completed 1 tutorial!). Right, ive just got a few things I need to sort out, to see if it would be worth me using XMLT in my web site.
Brief description of what I want to be able to do;
A search bar that will be able to search through several xml feeds to find the critera that the users have selected. The user will be able to sort the results shown by any criteria.
1. I plan on using php with XMLT to output the information. However, is it possible to combine more than one XML document?
i.e. joining xml documents in the php line :
$xml = implode('', file('document.xml'))
2. One problem I foresee is that the naming conventions in the various XML feeds are different. e.g. the number of players enrolled at a tournament, one XML feed gives this as <ENROLLED> and another as <PLAYERS>, will this be an issue? How can this be resolved within the XSL documents (how can I alter the match value in <xsl:template> to different values depending on which xml feed is used?)
3. Which way would you suggest for using the php fuction xslt_process() to output the information.
(a.)automatically save the results of the xml document to a file
(b.) Returning the results of the xml document as a string
(c.) providing and returing a string?
Thanks in advance.
bewise
|