jantje wrote:
Ok, thanks for this solution.. it works, with one exception:
when i try to generate ths in xsp:
<fd:item value="Jan"/>
with this logic:
<xsp:content>
<xsp:element name="fd:item">
<xsp:attribute
name="value"><xsp:expr>varName</xsp:expr></xsp:attribute>
</xsp:element>
</xsp:content>
Then i get the next exception:
java.lang.RuntimeException: java.lang.RuntimeException:
[<xsp:element name="fd:item">]
Name can not contain ':'. If you want to create namespaced
element, specify 'uri' and 'prefix'.
What can i do? i have found nothing like xsp:prefix or something like that?
I'd say you should follow the error message's advice and use the 'uri'
and 'prefix' attributes.
<xsp:element name="item" prefix="fd"
uri="http://apache.org/cocoon/forms/1.0#definition">
...
I'm not fluent in XSP, but I believe you can also just use a literal
output element rather than xsp:element, just like in XSLT:
<fd:item>
<xsp:attribute name="value">...
</fd:item>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]