Re: XML To HTML, easy transformation idea

Discussion in 'XML' started by Berislav Lopac, Jul 29, 2003.

  1. Theodore H. Smith wrote:
    > Hi people,
    > I'm thinking of writing a cross platform XML transformation tool. It
    > will let people input a bunch of XML files, and output a bunch of HTML
    > files, or even other XML files, or files in other languages too (where
    > possible). The output will be totally standardised, because it will
    > use a template to generate the output.
    > I've used a precursor to this idea of mine, at the website
    > It's a very nice technical ref if I
    > do say so myself! I've used it for other ideas of mine now, and I'll
    > be using it for more in the future, too.
    > The advantage over XML:Fo is that it will be *easy* :eek:) The template
    > will be written in the same language that the output is in. Heres an
    > example of this language:
    > <!--#if [IsCat]-->
    > <p>It's a cat called <!--[PetName]--></p>
    > <!--#elseif [IsDog]-->
    > <P>It's a dog, called <!--[PetName]--></P>
    > <!--#endif-->
    > This basically is just HTML, with processing instructions embedded.
    > It will optionally use XPath, to locate the data from the XML.
    > Is there something like this already? I guess this makes it a little
    > like PHP?? I didn't model it over PHP, as I've only picked up rare
    > snippets about what PHP is about, and never used it. Besides, I'm sure
    > mine is easier to use.
    > Basically, it lets me write my HTML like I like to write my HTML, or
    > even write it with a graphical editor. Then I insert the processing
    > instruction comments, and I can load the data from the XML.
    > I get the best of both. Structured input, and and graphically edited
    > output. I may write more of my website like this....

    Ever heard of XSLT?

    a) It uses XML syntax, which is more or less the same language as in
    b) It uses Xpath to locate XML data.
    c) There are numerous tools that help you design it graphically.
    d) It is already widely accepted, both in server-side tools as in browsers
    (IE and Mozilla both).

    Your solution doesn't use "the same language", because -- although embedded
    in HTML comments -- your processing instructions must have a sytax different
    from HTML.


    Berislav Lopac
    Web developer
    Berislav Lopac, Jul 29, 2003
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Ed Lai
    Ed Lai
    Apr 14, 2004
  2. Kevin Brown
    Kevin Brown
    Aug 28, 2004
  3. Jeff Gutsell

    xml to html transformation fails

    Jeff Gutsell, Oct 27, 2004, in forum: XML
    Martin Honnen
    Oct 27, 2004
  4. Replies:
  5. Replies:
    Big K
    Feb 2, 2005

Share This Page