xml and html automation

Discussion in 'Web Design and Development' started by jtcdesigns, Jul 23, 2010.

  1. jtcdesigns macrumors newbie

    Dec 16, 2008
    I'm the IT and web designer for a printing company. We just got Powerswitch which lets us automate workflows. After a job is looked through and any errors are generated they come out as XML. We want to then be able to take that xml file, format certain areas of it.. like errors in red.. titles in bold. and send it off as an html email to the client who submitted the job.

    Now I know in indesign you can layout the tags and such then do import and I believe then export to an html file. I was wondering is there a way I can just make a html file and within some kind of code have it look for the location of the xml file and put the info into a form?

    I basically just need to get an xml file, modify its looks, and send off as an html email... but all of it will be automated.
  2. Darth.Titan macrumors 68030


    Oct 31, 2007
    Austin, TX
    If I'm understanding you correctly, straight html can't do what you want. You'll need a server-side language like PHP to parse the xml file and reformat it.

    PHP has some pretty good built in XML capabilities with DOM and SimpleXML.
  3. DJBenE macrumors member

    Jul 9, 2010
    Rowland Heights, California
    Yes, XSLT is exactly what you need, and in all actuality is exactly why XSLT was invented in the first place. No need for using server-side scripts or anything.

Share This Page