cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 28017] - xsp: generating a XSP computed attribute does not work for ROOT element
Date Tue, 30 Mar 2004 00:24:20 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=28017>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=28017

xsp: generating a XSP computed attribute does not work for ROOT element





------- Additional Comments From joerg.heinicke@gmx.de  2004-03-30 00:24 -------
> (I think that) I'd suggested already prohibiting all events (except empty
>whitespace) between <element> and <xsp:attribute>. This would make any confusion
> impossible. WDYT?

Quoting you from bug #15841:
"To prevent out-of-order execution of xsp:logic... I would recommend enforcing
that xsp:attribute or xsp:logic[xsp:attribute] elements go right after opening
tag, without other nodes in between (except whitespace)."

In which way?

<xsl:template match="xsp:attribute | xsp:logic[xsp:attribute]">
  <xsl:if test="preceding-sibling::*[not(self::xsp:attribute |
self::xsp:logic[xsp:attribute])]">
    <xsl:message terminate="yes">ERROR</xsl:message>
  </xsl:if>
</xsl:template>

Mime
View raw message