Hi Steve, Nunez Steve schrieb: > G'Day Gentlemen, > > I have an existing website that is composed of XML > files, using a custom schema, that is styled by an > XSLT stylesheet into XHTML, and then finally presented > by way of external CSSs. The entire process is driven > by 'make', and the system works quite well. > > It seemed upon first reading that importing this into > Lenya would be straightforward, however this has not > proven to be the case. I've been through all of the > documentation I can find, however I haven't read the > simplest use case: > > 1. Create an XML document instance & XSLT stylesheet > 2. Apply the stylesheet to the XML document > 3. Display the results in Lenya. > > Can anyone point me to the simplest way to do this? > Given that we've already got the 'hard' part done -- > created debugged XML/XSLT/CSS, it should be a matter > of using Lenya to manage this.
what you have to do is 1. create a resource type for your specific XML 2. find a way to import your existing content For task 1, take a look at these tutorials, depending on the Lenya version you want to use: http://lenya.apache.org/docs/1_2_x/how-to/custom_resourcetype.html http://lenya.apache.org/docs/2_0_x/tutorials/resourcetype/part1.html For task 2, it depends on the Lenya version. With 1.2.x it might make sense to write an Ant task which creates the Lenya content directory structure and the workflow, revision etc. files. With 2.0 you should use the API - the Import usecase will probably be a good starting point (http://lenya.apache.org/apidocs/2.0/modules/export/index.html). You will have to customize it and extend the Importer class to meet your specific requirements. HTH, -- Andreas -- Andreas Hartmann, CTO BeCompany GmbH http://www.becompany.ch --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
