You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Jörn Heid <he...@fh-heilbronn.de> on 2000/06/12 21:47:23 UTC

AW: Hopefully simple and stupid problem about dynamically addingelement

Thanks for answer.

I know this would work but I do want the xml file to be untouched. If it's
possible ....


JOERN_HEID

-----Ursprüngliche Nachricht-----
Von: Donald Ball [mailto:balld@webslingerZ.com]
Gesendet: Montag, 12. Juni 2000 20:32
An: cocoon-users@xml.apache.org
Betreff: Re: Hopefully simple and stupid problem about dynamically
addingelement


On Mon, 12 Jun 2000, [iso-8859-1] Jörn Heid wrote:

> I want to dynamically add the tag <auth> to an XML-document (based on the
> example of xsp in cocoon)

you're going about this backwards. don't create your XSP page from your
XSLT stylesheet. Just use XSP in your XML page directly. Here:

<?xml version="1.0"?>

<?cocoon-process type="xsp"?>

<xsp:page
 xmlns:xsp="http://www.apache.org/1999/XSP/Core"
>

<page>
 <xsp:element name="auth">
  <xsp:expr>staticClass.methodCall()</xsp:expr>
 </xsp:element>
</page>

</xsp:page>

- donald


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