0

I have to develop a website in which the content is stored on an external database and is distributed via xml

Can anyone recommend a lightweight framework that can be use to consume this xml and display html using xsl transformation?

I want to use xsl because apart from the data being xml i want to be able to template the pages using xml/ xslt markup

Kendall
  • 5,065
  • 10
  • 45
  • 70
  • PHP supports XML and XSLT via its extensions, so you don't need a dedicated framework for that if that is what you're asking for. http://php.net/refs.xml – hakre Jul 29 '13 at 07:06

2 Answers2

1

XSLT is a very powerful tool on itself, so I doubt that adding a framework into the workflow will have an improving effect if you just want to read XML and transform it into HTML. That is just the kind of job XSLT was invented for.
Maybe the not exactly matching Question XML Outputting - PHP vs JS vs Anything Else? gives an idea how XSLT works.

Edit @hakre comment: PHP supports XML/XSLT, no framework needed is what I say. If you follow the link I suggested you'll see that a transformation needs only 3 lines of PHP-code (beside XML data and XSLT script, of course). PHP uses the very fast and stable xmllib2/xsltlib library in the standard installation, no lib adding is necessary.

Edit @Kendall comment: XSLT is a w3c standard templating language. Why use another one which probably will be not as wide used, documented and supported? To hit the nail on your question: For the task you describe I can't recommend any framework over XSLT which is already built in PHP to use XML and display HTML using XSL transformation. Why putting an framework above instead talking directly XSLT? It's a language, not an API. Even versatility will be better.

Community
  • 1
  • 1
Andreas
  • 1,220
  • 8
  • 21
  • Yeah I have been doing it however, I need a bit more versatility with aspects to page templating...and since I would be using XML then it would be easy to build pages as well using XML. A frame work would then make this a bit more streamlined. – Kendall Jul 29 '13 at 16:21
  • 1
    @Kendall: Maybe http://stackoverflow.com/questions/4528272/is-mvc-now-the-only-way-to-write-php/4528577#4528577 ist interesting for you. The accepted answer is partly kind of ranting about MVC but goes along with categorizing XSLT as templating library – Andreas Jul 31 '13 at 05:42
-1

I would recommend CodeIgniter It is lightweight, dynamically loaded, and supports XSL.

jdog
  • 174
  • 6