[opencms-dev] XML/XSLT with OpenCMS
M Butcher
mbutcher at grcomputing.net
Fri Feb 20 18:46:01 CET 2004
Alex,
I've been occasionally tinkering with an XSLT translation module for
OpenCms. Right now, I'm working on adding a new Resource Type for XML
documents (rather than using Plain documents). Because I'm busy with
"real" work, development of the module has been slow.
It appears, though, that a fairly simple module could be written that
took two Plain resources (probably with extensions .xml and .xslt) and
converted them at runtime to one HTML page. Xerces is included, but I
think you will have to put Xalan in the lib/ directory of the module.
It probably wouldn't hurt to cache the output of Xalan, either. :)
Matt
Alex ! wrote:
> I would like to store data in XML, and retrieve then render with XSLT.
> Is it as simple as adding the XSL stylesheet and using the apache.org
> API (or similar) in a JSP ??? Just as you would with any other XML/XSLT
> transformation.
>
> Also I'm not quite sure about the best way to store the XML. I am
> building a field based add/edit interface so I can structure my data and
> dissallow any html from creeping in via content authors - but should I
> place the generated XML into a "page"/"plain"/"text" type file with an
> .xml extension or do it some other way.
>
> I read some mails from matt butcher in the archives, is there already a
> module out there to do this.
>
> Does it even make sense to use the cms for the xml content. (I am going
> to have to provide xml content syndication so xml is a must, but is xml
> + OpenCMS a good way?
>
> If this is a good way to go, I assume I'll have to create a module or
> set of classes(as a layer) to do the work, which I will be happy to make
> open source - so please do contribute your ideas.
>
> Any help/suggestions would be very appreciated.
>
> Alex.
>
> _________________________________________________________________
> Tired of 56k? Get a FREE BT Broadband connection
> http://www.msn.co.uk/specials/btbroadband
>
> _______________________________________________
> This mail is send to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://mail.opencms.org/mailman/listinfo/opencms-dev
More information about the opencms-dev
mailing list