Alexandre Poitras wrote:
Hi,

I would like to customize my Lenya publication so that when I create a new document, a chosen xsl style sheet is applied on the xml sample document. For instance, I would like my sample to contains the current date and the name of the file. So my question is where should I look to do this change? I think the best approach would be to change the Ant task to allow sample documents to be xsp page, but I am definitly not sure about it. Any insights would be really appreciated!


Hi,
Take a look at the blog publication and how the document of type 'entry' is 
created, then have a look at the two classes: ParentChildCreatorAction.java and 
NewBlogEntryCreator.java. The later class does something simmilar to what you 
want to do.

Hth,

Vica

Thank in advance

Alexandre Poitras




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to