cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Donald Ball <>
Subject Re: XInclude and XSP processor problem
Date Thu, 19 Apr 2001 20:40:25 GMT
On Thu, 19 Apr 2001, Peter Nuetzel - inglobo wrote:

> >    but when i try and do the following to include dynamic content it does
> > not work...
> >
> >   <top xmlns:xinclude="">
> >         <whatever xinclude:href="<xsp:expr>content</xsp:expr>"
> >  xinclude:parse="xml" />-->
> >    </top>
> this is not wellformed XML. a tag must not included in another tag. a
> solution might be using an XSL-variable element.

that's true - if you want to dynamically create the xinclude:href
attribute, you must use xsp:attribute. however, in addition to that, when
you're running the xinclude processor after xsp, you must name the element
to be with the xinclude attributes 'include' - there's some weird bug
somewhere, maybe in xalan, maybe in the xsp engine, that mangles the
namespaces such that 'xinclude:href' is taken to be the literal attribute
name, not a namespace prefix qualified attribute name, so the xinclude
processor has a little workaround for that case.

- donald

Please check that your question has not already been answered in the
FAQ before posting. <>

To unsubscribe, e-mail: <>
For additional commands, e-mail: <>

View raw message