On Fri, 15 Jun 2001, Gary Clark wrote:
Did you looked at the other taglibs shipped with C2 (especially
esql.xsl).
Giacomo
> OK, I'm still lame, but not as much as before. I've added the following
> lines to my taglib and now it generates a .java file.
>
> <xsl:template match="xsp:page">
> <xsp:page>
> <xsl:apply-templates select="@*"/>
> <xsl:apply-templates/>
> </xsp:page>
> </xsl:template>
>
> Now the problem is that the generated file begins with 'package ;' instead
> of 'package some.name.here.we.hope;' which, of course, won't compile. Any
> ideas?
>
> Gary A. Clark
> Systems Programmer
> Software Services Group
> JELD-WEN Information Systems
>
> > -----Original Message-----
> > From: Gary Clark
> > Sent: Friday, June 15, 2001 3:06 PM
> > To: '[EMAIL PROTECTED]'
> > Subject: [C2] How do I install a taglib?
> >
> > OK, I'm lame. I've read everything I could find so if its out there, I
> > missed it. How do I install a taglib under C2b1?
> >
> >
> > Here is the taglib (testing.xml)
> >
> > <?xml version="1.0"?>
> > <xsl:stylesheet
> > version="1.0"
> > xmlns:xsp="http://apache.org/xsp"
> > xmlns:testing="http://www.jeld-wen.com/testing/1.0"
> > xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> > >
> > <xsl:template match="testing:msg">
> > A Testing Message
> > </xsl:template>
> > </xsl:stylesheet>
> >
> >
> > Here is the test page (testing.xsl)
> >
> > <?xml version="1.0"?>
> > <xsp:page
> > language="java"
> > xmlns:xsp="http://apache.org/xsp"
> > xmlns:xsp-request="http://apache.org/xsp/request/2.0"
> > xmlns:testing="http://www.jeld-wen.com/testing/1.0"
> > >
> > <page>
> > <testing:msg/>
> > </page>
> > </xsp:page>
> >
> >
> > In cocoon.xconf, I've added
> >
> > <builtin-logicsheet>
> > <parameter name="prefix" value="devtool"/>
> > <parameter name="uri"
> > value="http://www.jeld-wen.com/devtool/1.0"/>
> > <parameter name="href"
> > value="file:///home/garyc/work/testing.xsl"/>
> > </builtin-logicsheet>
> >
> > I admit I'm guessing the value of <parameter name="href"
> > value="file:///home/garyc/work/testing.xsl"/> should work based on
> > examples from C1, but I don't know for sure.
> >
> > I've read the XSP Logicsheet Guide on the C2 website, but it indicates
> > that I should go to the C2 website to get information about installing a
> > logicsheet :-/ Any pointers?
> >
> > BTW, I'll be adding <xsp:logic> nodes next, so I do need this to be a
> > taglib instead of just an XSLT transformation.
> >
> > TIA,
> > Gary A. Clark
> > Systems Programmer
> > Software Services Group
> > JELD-WEN Information Systems
> >
>
> ---------------------------------------------------------------------
> 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]>
>
>
>
>
---------------------------------------------------------------------
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]>