473,320 Members | 1,823 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,320 software developers and data experts.

XML-based Template Engines

Does anyone know of a PHP template engine that uses XML-compliant syntax? I
mean something along the line of having <template:variable name="myVar" />
instead of the usual {myVar}.

Berislav

--
If the Internet is a Marx Brothers movie, and Web, e-mail, and IRC are
Groucho, Chico, and Harpo, then Usenet is Zeppo.
Jul 17 '05 #1
4 1913
The only XML templating engine I know of is XSL where an XSL stylesheet is
used to transform XML into HTML. This is the technique that I use, as
documented in various articles on
http://www.tonymarston.co.uk/xml-xsl/index.html and
http://www.tonymarston.co.uk/php-mysql/index.html

--
Tony Marston

http://www.tonymarston.net

"Berislav Lopac" <be************@dimedia.hr> wrote in message
news:c7**********@ls219.htnet.hr...
Does anyone know of a PHP template engine that uses XML-compliant syntax? I mean something along the line of having <template:variable name="myVar" />
instead of the usual {myVar}.

Berislav

--
If the Internet is a Marx Brothers movie, and Web, e-mail, and IRC are
Groucho, Chico, and Harpo, then Usenet is Zeppo.

Jul 17 '05 #2
Berislav Lopac wrote:
Does anyone know of a PHP template engine that uses XML-compliant syntax?
I mean something along the line of having <template:variable name="myVar"
/> instead of the usual {myVar}.


You may take a look at patTemplate, http://phptools.de
I don't know whether it provides strict xml syntax, but worth a look.

Claus
Jul 17 '05 #3
AF
On Tue, 11 May 2004 11:58:45 +0200, "Berislav Lopac"
<be************@dimedia.hr> wrote:
Does anyone know of a PHP template engine that uses XML-compliant syntax? I
mean something along the line of having <template:variable name="myVar" />
instead of the usual {myVar}.

Berislav


Can I ask, "What is the advantage of doing this?"

Thanks for any thoughts.
Cheers to everyone,

Al

http://www.discountdrivingschool.com
Jul 17 '05 #4
Tony Marston wrote:
The only XML templating engine I know of is XSL where an XSL
stylesheet is used to transform XML into HTML. This is the technique
that I use, as documented in various articles on
http://www.tonymarston.co.uk/xml-xsl/index.html and
http://www.tonymarston.co.uk/php-mysql/index.html


This is certainly a good approach, and I was thinking of implementing it
myself (especially since I am quite versed with XSLT), but haven't yet had
time and a convenient starting point.

I have just recently discovered your site and it seems like an interesting
resource (except for the design; sorry :) ); I have been planning to look
through your articles in near future.

My main problem with XSLT in PHP was a confusing support (changing function
names, uncertain Sablotron support with providers etc); PHP5 seems to fix
all that, but no one knows when will my provider(s) switch to using it.

Berislav

--
If the Internet is a Marx Brothers movie, and Web, e-mail, and IRC are
Groucho, Chico, and Harpo, then Usenet is Zeppo.
Jul 17 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Phil Powell | last post by:
// PROCESS XML CONTENT INTO DYNAMICALLY-NAMED ARRAYS foreach (array('mime', 'state', 'country') as $val) { $parser = xml_parser_create(); xml_parser_set_option($parser, XML_OPTION_SKIP_WHITE, 1);...
8
by: Robert J Egan | last post by:
Hi i'm trying to search a remote website page. The form returns xml information, though the page extension is missing. I retrieve the information and write it to the screen. So far so good -...
1
by: felipe_azv | last post by:
a got this code in asp to construct a xml , to export it to a url this is de asp code: <% SQL = "Select * from User where CodeUser in ("& request.form("C1" &")" set rs =...
0
by: Stylus Studio | last post by:
World's Most Advanced XML Schema Editor Adds Support for IBM AlphaWorks XML Schema Quality Checker to Improve XML Schema Style and Quality BEDFORD, MA -- 09/13/2005 -- Stylus Studio...
5
by: Kurt Bauer | last post by:
I have an ASP group calendar application which pulls calendar data from Exchange via webdav into an XML string. I then loop the XML nodes to populate a collection of appointments. Finally I use...
5
by: laks | last post by:
Hi I have the following xsl stmt. <xsl:for-each select="JOB_POSTINGS/JOB_POSTING \"> <xsl:sort select="JOB_TITLE" order="ascending"/> This works fine when I use it. But when using multiple...
0
by: jts2077 | last post by:
I am trying to create a large nested XML object using E4X methods. The problem is the, the XML I am trying to create can only have xmlns set at the top 2 element levels. Such as: <store ...
9
by: Lie | last post by:
Why this generates AttributeError, then not? Python 2.5.2 (r252:60911, Apr 21 2008, 11:17:30) on linux2 Type "help", "copyright", "credits" or "license" for more information. Traceback (most...
10
by: =?Utf-8?B?YzY3NjIyOA==?= | last post by:
Hi all, I had a program and it always works fine and suddenly it gives me the following message when a pass a xml file to our server program: error code: -1072896680 reason: XML document must...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.