XML-based Template Engines

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Berislav Lopac

    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:varia ble 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.


  • Tony Marston

    #2
    Re: XML-based Template Engines

    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


    --
    Tony Marston

    This is Tony Marston's web site, containing personal information plus pages devoted to the Uniface 4GL development language, XML and XSL, PHP and MySQL, and a bit of COBOL




    "Berislav Lopac" <berislav.lopac @dimedia.hr> wrote in message
    news:c7q84g$b00 $1@ls219.htnet. hr...[color=blue]
    > Does anyone know of a PHP template engine that uses XML-compliant syntax?[/color]
    I[color=blue]
    > mean something along the line of having <template:varia ble 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.
    >
    >[/color]


    Comment

    • Claus Bergen

      #3
      Re: XML-based Template Engines

      Berislav Lopac wrote:
      [color=blue]
      > Does anyone know of a PHP template engine that uses XML-compliant syntax?
      > I mean something along the line of having <template:varia ble name="myVar"
      > /> instead of the usual {myVar}.[/color]

      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


      Comment

      • AF

        #4
        Re: XML-based Template Engines

        On Tue, 11 May 2004 11:58:45 +0200, "Berislav Lopac"
        <berislav.lopac @dimedia.hr> wrote:
        [color=blue]
        >Does anyone know of a PHP template engine that uses XML-compliant syntax? I
        >mean something along the line of having <template:varia ble name="myVar" />
        >instead of the usual {myVar}.
        >
        >Berislav[/color]

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

        Thanks for any thoughts.
        Cheers to everyone,

        Al


        Comment

        • Berislav Lopac

          #5
          Re: XML-based Template Engines

          Tony Marston wrote:[color=blue]
          > 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[/color]

          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.


          Comment

          Working...