You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Matthew Smith <ms...@windebt.com> on 2000/10/05 23:15:58 UTC

from to result document

	I'm working inside a logic tag, and attempting to generate xml including
attributes that contain data in my javascript.  Here's what I tried to do,
but I'm informed that I can't include xsp:expr in an xsl:attribute tag.
<xsp:logic>
   String user = "Matt";
   <xsp:content>
      <user>
         <xsl:attribute name="name">
            <xsp:expr>username</xsp:expr>
         </xsl:attribute>
      </user>
   </xsp:content>
</xsp:logic>

	So how can I put java variables from logic in one document into the output
of the document?  If I need to generate the entire tag in java, that's find,
but I wouldn't output it as I would with a normal java servlet, do I?

Matt