How to merge 2 xml docs with xslt?

XML: Why can't XSLT be used as a standard templating system for all web frameworks?

  • XML, web frameworks.

  • Answer:

    The libxslt library in PHP is effective as the View component of an MVC architecture.  Symphony (http://getsymphony.com) is an example of a Web CMS that uses XSLT to modularize the query and rendering logic for its application. I have utilized XSLT for live, themed viewing of DITA XML content as well (http://expedita.info). One factor that limits popular uptake is that there are not yet any open source XML editors that are as easy to use as the contentEditable feature already native in browsers. So an XSLT-based stack works well for rendering already-created XML content, but lack of an editor inhibits the ease and cost of deploying collaborative systems based on more popular forms of XML like DocBook or DITA. Check out the iFixit web site as an example of a collaboration site that uses form-based editors for capturing user input in the more simple oManual XML format that is then rendered via XSLT and other transforms into site content and PDF.

Don Day at Quora Visit the source

Was this solution helpful to you?

Other answers

It *is* a standard — a W3C standard. But that doesn't mean that everyone will use it. Browser-based XSLT support has always been patchy, but there are javascript shims, including one by the creators of Saxon. So you could create a site using client-side XSLT processing. On the server-side, you have lots options, from XML databases to XSLT-based CMSs like Symphony. So if you want to build a web application using XSLT, you can. But people are free to build sites with whatever they like, and there are plenty of standards-approved technologies that don't get traction. For a different — but XML, standards-based — approach, see XRX. http://en.wikipedia.org/wiki/XRX_(web_application_architecture)

Chris Marsh

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.