cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Derek Hohls" <dho...@csir.co.za>
Subject Working with Groovy/XML syntax
Date Mon, 10 Oct 2005 05:59:18 GMT
I am looking for some help creating XML within Groovy scripts.
 
I need to output a construct like:
 
<wrapper id="foo">
  <help id="bar">Help me!</help>
</wrapper>  
 
I have tried:
 
xml.wrapper(id:"foo") {
  help(id:"bar", "help me")
}
 
and
 
xml.wrapper(id:"foo") {
  help("help me", id:"bar")
}
 
and
 
xml.wrapper(id:"foo") {
  xml.help(id:"bar") {  "help me" }
}
 
and
 
xml.wrapper(id:"foo") {
  xml.help(id:"bar") { ( "help me") }
}
 
But none of these work... any help?
 
Thanks
Derek


-- 
This message is subject to the CSIR's copyright, terms and conditions and
e-mail legal notice. Views expressed herein do not necessarily represent the
views of the CSIR.
 
CSIR E-mail Legal Notice
http://mail.csir.co.za/CSIR_eMail_Legal_Notice.html 
 
CSIR Copyright, Terms and Conditions
http://mail.csir.co.za/CSIR_Copyright.html 
 
For electronic copies of the CSIR Copyright, Terms and Conditions and the CSIR
Legal Notice send a blank message with REQUEST LEGAL in the subject line to
HelpDesk@csir.co.za.


This message has been scanned for viruses and dangerous content by MailScanner, 
and is believed to be clean.  MailScanner thanks Transtec Computers for their support.


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


Mime
View raw message