cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Donald Ball <ba...@webslingerZ.com>
Subject Re: Simple question: Building XML elements in XSP code two ways or only one way?
Date Tue, 01 May 2001 13:47:56 GMT
On Tue, 1 May 2001, giacomo wrote:

> > Could you explain me more?
> > Because I do not get why I should not mess with xsp variables?
> > Where is the problem? Concurrency or what?
>
> Portability.

not to mention the fact that this is what xsp is all about! it's much
easier to write:

<xsp:logic>
  // stuff
  <label id="200">My label value</label>
  // other stuff
</xsp:logic>

than to write:

<xsp:logic>
  // stuff
  xspParentNode = xspCurrentNode;
  xspNodeStack.push(xspParentNode);
  xspCurrentNode =
    document.createElement("label");
  xspParentNode.appendChild(xspCurrentNode);
  ... etc ...
  // other stuff
</xsp:logic>

that's largely the raison d'etre for xsp. that and logicsheets.

- donald


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message