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">
  <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";>
  <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.

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]>

Reply via email to