W3C home > Mailing lists > Public > public-webapi@w3.org > February 2006

Re: [REX] Inserting comments?

From: Stephane Bortzmeyer <bortzmeyer@nic.fr>
Date: Sun, 19 Feb 2006 00:01:33 +0100
To: Robin Berjon <robin.berjon@expway.fr>
Cc: Stephane Bortzmeyer <bortzmeyer@nic.fr>, public-webapi@w3.org
Message-ID: <20060218230133.GA32624@nic.fr>

On Fri, Feb 10, 2006 at 10:17:59AM +0100,
 Robin Berjon <robin.berjon@expway.fr> wrote 
 a message of 66 lines which said:

> XML comments are nodes like any other nodes. It's probably silly in
> the first place to want to transmit them, but if you do it just
> works. XSLT is a programming language, it has xsl:comment because it
> needs comments of its own. REX is not a programming language, just a
> message format.

One can note that the authors of XML Update apparently went "my" way:

http://xmldb-org.sourceforge.net/xupdate/

The xupdate:comment element is instantiated to create a comment node
in the result tree. The content of the xupdate:comment element is a
template for the string-value of the comment node.

For example, this
	     
 <xupdate:comment>
   This element is automatically generated. Do not edit!
 </xupdate:comment>  

would create the comment
	     	    
 <!--This element is automatically generated. Do not edit!--> 

 
	
Received on Saturday, 18 February 2006 23:01:38 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:18:53 GMT