cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Fernando D. Mato Mira" <matom...@acm.org>
Subject Re: inserting XML fragments in XSP
Date Mon, 02 Jun 2003 12:44:57 GMT
It seems the ';' is not the only problem. It looks like it's trying to 
insert the name
of the variable, not its value (I think this last one is the same 
problem as in one of the messages
you pointed to)

Given:

      String errortext = parameters.getParameter("error-text");
      
<error-text><util:include-expr><util:expr>errortext</util:expr></util:include-expr></error-text>

It generates:

          String errortext = parameters.getParameter("error-text");
         

    this.contentHandler.startElement(
      "",
      "error-text",
      "error-text",
      xspAttr
    );
    xspAttr.clear();

   
      XSPUtil.includeString(String.valueOf(
        this.characters("errortext");
      ),
          this.manager, this.contentHandler);
   

    this.contentHandler.endElement(
      "",
      "error-text",
      "error-text"
    );



---------------------------------------------------------------------
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