Harald (a000), Short answer: No.
Long answer: Take a look at the samples, in particular in sub/xsl-cocoon for sample of dynamically generated XSLT (that's what you are looking for). One note: Your XSLT is not valid, greeting prefix is not defined. PS It is assumed that you know well XML, XML namespaces, and XSLT when you are working with Cocoon. Vadim > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > > Hello! > > I'm new using cocoon and I just got running the example 'greeting3.xml' > using 'logicsheet.greeting.xsl' as taglib transformed with the stylesheet > 'greeting.xsl'. I was using cocoon 2. > (http://xml.apache.org/cocoon/userdocs/xsp/logicsheet.html) > > This example uses the logicsheet within the xsp-file 'greeting3.xml'. Is it > possible to use the logicsheet as well within stylesheets? > > Here is my idea: > > greeting.xsl > > <?xml version="1.0"?> > <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" > version="1.0"> > > <xsl:template match="/"> > <html> > <body> > <h1> > <xsl:value-of select="greeting"/> > </h1> > > <greeting> > 2nd time: <greeting:hello-world/> > </greeting> > </body> > </html> > </xsl:template> > > </xsl:stylesheet> > > > If I have it processed I get the following result: > > <html> > <body> > <h1> > Hello, world! > </h1> > > 2nd time: <greeting:hello-world/> > > </body> > </html> > > As you can see the reference to the logicsheet within the stylesheet didn't > get resolved. (The output is the plain tag instead of the hello-message from > the logicsheet. > > > The transformed output should be something like this: > > <html> > <body> > <h1> > Hello, world! > </h1> > > 2nd time: Hello, world! > > </body> > </html> > > Thanks for your comments! > > Harald > > -- > GMX - Die Kommunikationsplattform im Internet. > http://www.gmx.net --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faqs.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>