[opencms-dev] Import arbitrary XML documents into OpenCms

Yves Glodt yg at mind.lu
Fri Jun 13 14:40:53 CEST 2008


Hello,

On Wednesday 11 June 2008, Sebastian Himberger wrote:
> Hi,
>
> I once did this with a huge product catalog. We used a scheduled job for
> importing a local directory into the OpenCms VFS. XSLT was used to
> generate the HTML for the XmlPages. These pages were not designed to be
> modified but converting them gave us a couple of advantages (at least in
> our context):

Ok this sounds nice, and raises another question :-)

How did the actual import happen? Did you write a class which is run by the 
OpemCms scheduler, and which uses functionality from org.opencms.importexport 
?

regards,
Yves

>  - Speed: The flex cache of OpenCms was used and the transformation
> (which was a complex one) was only done once.
>  - Decoupling: The web catalog kept running even if the catalog database
> crashed
>  - Search: The XmlPages are well integrated in the OpenCms fulltext search
>  - Navigation: You can use the sitemap and navigation features to nicely
> integrate your content
>
> Of course the catalog was not changed extremly frequently and update
> time on the website was not critical (changes were propagated once a
> day). For us it worked out pretty well but of course the context is
> always a different one. It is a bit of work to develop such a import.
>
> does this help or was the answer to generic?
>
> best regards,
> Sebastian
>
> Yves Glodt schrieb:
> > Hello,
> >
> > I have a load of xml documents which I need to integrate into our
> > OpenCms- based site.
> >
> > Now, I have the choice between converting them to html on the server,
> > with a Servlet and/or a jsp, or doing it in the browser with
> > Javascript...
> >
> > But I wonder, since OpenCms is XML-bases at the end, if there is a way to
> > directly create OpenCms-XmlPages by importing my xmlfiles...? :-)
> >
> > Best regards,
> > Yves




More information about the opencms-dev mailing list