> From: Per Kreipke [mailto:[EMAIL PROTECTED]] > > If I do the following in an XSP, the CInclude transformer doesn't recognize > the cinclude:include element because it has no namespace associated with it. > > <xsp:element name="cinclude:include">
This is incorrect. > <xsp:attribute name="src"><xsp:expr>strURL</xsp:expr></xsp:attribute> > </xsp:element> > > > I had to change it to be: > > <xsp:element name="cinclude:include" prefix="cinclude" > uri="http://apache.org/cocoon/include/1.0"> This is also not ok. Should be: <xsp:element name="include" prefix="cinclude" uri="http://apache.org/cocoon/include/1.0"> > <xsp:attribute name="src"><xsp:expr>strURL</xsp:expr></xsp:attribute> > </xsp:element> > > > In the second example, the condition where I forget to include both @prefix > and @uri, I get an error. But in the first example, there's no error even > though cinclude:include is an invalid XML element name without a namespace. > > xsp.xsl would need an extra check. It will not be efficient to do this, because this check must be made at run time, and every time. I guess you have not considered that this is possible: <xsp:element prefix="cinclude" uri="http://apache.org/cocoon/include/1.0"> <xsp:param><xsp:logic>"incl" + "ude"</xsp:logic></xsp:param> </xsp:element> Vadim > Per --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>