From: Jean-Lou Dupont <xwiki@jldupont.com>
To: xwiki-user@objectweb.com, xwiki-users@objectweb.org
Subject: RE: [xwiki-users] Issue with HTML comment.
Date: Fri, 1 Sep 2006 13:03:04 +0000
Content-Type: Multipart/mixed;
 boundary="NextPart_Webmail_9m3u9jl4l_23807_1157119258_1"

--NextPart_Webmail_9m3u9jl4l_23807_1157119258_1
Content-type: multipart/alternative;
 boundary="Boundary_(ID_Z1khz6DoZgav+WFWby36Ig)"

This is a multi-part message in MIME format.

--Boundary_(ID_Z1khz6DoZgav+WFWby36Ig)
Content-type: text/plain; charset=windows-1250
Content-transfer-encoding: 7BIT

Good point.  But what confused me a bit is the fact I had put <!-- comment
here --> inside a form definition in the same document without any problems.


E.g. the example below works fine as far as I can tell.

<div class="left" style="width: 150px">
#includeTopic("XWiki.XWikiCommonJavascript")
<form action="" id="newdoc">
<input type="hidden" name="parent" value="Artifact.Home" />
<input type="hidden" name="template" value="Artifact.Template" />
<input type="hidden" name="sheet" value="1" />
Space to create: <input type="text" name="webname" value=""/>
<input type="hidden" name="name" value=""/>

<!-- TODO: update page name. The document name must be automatically filled
in e.g. space.home -->

<input type="text" name="title" value="page name" size="18"/>

<input type="button" value="Create this Space" onclick='if
(updateName(this.form.title,this.form.name)){ action="../../inline/" +
this.form.webname.value + "/" + this.form.name.value; this.form.submit(); }'
/>
</form>
</div>

Jld.


-----Original Message-----
From: Arnaud Bourree [HYPERLINK
"mailto:arnaud.bourree@gemalto.com"mailto:arnaud.bourree@gemalto.com]
Sent: September 1, 2006 04:34
To: xwiki-users@objectweb.org
Subject: Re: [xwiki-users] Issue with HTML comment.

Don't forget to escape Wiki or velocity special character:
example: if you want to explain in a page how to use velocity macro
(whatever you put it in a {code} section, you should write something like:
\#myMacro(\$myVariable, "some text")

For HTML comment you should write:
<!\-\- my html comment \-\->

Robinson Nathaniel wrote on 01/09/2006 06:57:
> Does the comment have to be sent to the browser?
>
> Velocity has comments (## comments a single line and #* *# comments a
> block), but the text will only be visible when viewing or editing the
> code and won't be sent to the browser.
>
> -----Original Message-----
> From: wangwh@att.net [HYPERLINK
"mailto:wangwh@att.net"mailto:wangwh@att.net]
> Sent: Friday, September 01, 2006 5:23 AM
> To: xwiki-users@objectweb.org
> Subject: Re: [xwiki-users] Issue with HTML comment.
>
> '--' is used in Wiki syntax for other things, I was wondering how to
> add HTML comments also.
>
>  -------------- Original message ----------------------
> From: Jean-Lou Dupont <xwiki@jldupont.com>
>  
>> FYI:
>> If one is to insert an HTML comment at the end of a document and save
>> it, the rendered document is completely garbled.
>> 
>> e.g.
>> 
>> <input type="text" name="title" value="page name" size="18"/> <input
>> type="button" value="Create this Space" onclick='if
>> (updateName(this.form.title,this.form.name)){ action="../../inline/"
>> + this.form.webname.value + "/" + this.form.name.value;
>> this.form.submit();
>>    
> }'
>  
> 31/08/2006
>  
>> 
>>    
>
>
>
>
>
>  
> ----------------------------------------------------------------------
> --
>
>
> --
> You receive this message as a subscriber of the xwiki-users@objectweb.org
mailing list.
> To unsubscribe: HYPERLINK
"mailto:xwiki-users-unsubscribe@objectweb.org"mailto:xwiki-users-unsubscribe
@objectweb.org
> For general help: HYPERLINK
"mailto:sympa@objectweb.org?subject=help"mailto:sympa@objectweb.org?subject=
help
> ObjectWeb mailing lists service home page:
> HYPERLINK "http://www.objectweb.org/wws"http://www.objectweb.org/wws
>  
--

Reclaim Your Inbox! HYPERLINK
"http://www.mozilla.org/products/thunderbird"http://www.mozilla.org/products
/thunderbird


--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.11.7/435 - Release Date: 31/08/2006

 


-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.11.7/435 - Release Date: 31/08/2006
 

--Boundary_(ID_Z1khz6DoZgav+WFWby36Ig)
Content-type: text/html; charset=windows-1250
Content-transfer-encoding: 7BIT

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1250">
<TITLE></TITLE>

<META content="MSHTML 6.00.2900.2873" name=GENERATOR></HEAD>
<BODY><!-- Converted from text/plain format -->
<P><FONT size=2><FONT face=Arial>Good point.&nbsp; But what confused me a bit is 
the fact I had put &lt;!-- comment here --&gt; inside a form definition in the 
same document without any problems.<BR></FONT></FONT></P>
<DIV><FONT size=2><FONT face=Arial>E.g. the example below works fine as far as I 
can tell.</FONT></FONT></DIV>
<DIV><FONT size=2><FONT face=Arial><BR><EM>&lt;div class="left" style="width: 
150px"&gt;<BR>#includeTopic("XWiki.XWikiCommonJavascript")<BR>&lt;form action="" 
id="newdoc"&gt;<BR>&lt;input type="hidden" name="parent" value="Artifact.Home" 
/&gt;<BR>&lt;input type="hidden" name="template" value="Artifact.Template" 
/&gt;<BR>&lt;input type="hidden" name="sheet" value="1" /&gt;<BR>Space to 
create: &lt;input type="text" name="webname" value=""/&gt;<BR>&lt;input 
type="hidden" name="name" value=""/&gt;<BR><BR>&lt;!-- TODO: update page name. 
The document name must be automatically filled in e.g. space.home 
--&gt;<BR><BR>&lt;input type="text" name="title" value="page name" 
size="18"/&gt;<BR><BR>&lt;input type="button" value="Create this Space" 
onclick='if (updateName(this.form.title,this.form.name)){ action="../../inline/" 
+ this.form.webname.value + "/" + this.form.name.value; this.form.submit(); }' 
/&gt;<BR>&lt;/form&gt;<BR>&lt;/div&gt;<BR></EM><BR>Jld.<BR></FONT><BR><BR>-----Original 
Message-----<BR>From: Arnaud Bourree [<A 
href="mailto:arnaud.bourree@gemalto.com">mailto:arnaud.bourree@gemalto.com</A>]<BR>Sent: 
September 1, 2006 04:34<BR>To: xwiki-users@objectweb.org<BR>Subject: Re: 
[xwiki-users] Issue with HTML comment.<BR><BR>Don't forget to escape Wiki or 
velocity special character:<BR>example: if you want to explain in a page how to 
use velocity macro (whatever you put it in a {code} section, you should write 
something like:<BR>\#myMacro(\$myVariable, "some text")<BR><BR>For HTML comment 
you should write:<BR>&lt;!\-\- my html comment \-\-&gt;<BR><BR>Robinson 
Nathaniel wrote on 01/09/2006 06:57:<BR>&gt; Does the comment have to be sent to 
the browser?<BR>&gt;<BR>&gt; Velocity has comments (## comments a single line 
and #* *# comments a<BR>&gt; block), but the text will only be visible when 
viewing or editing the<BR>&gt; code and won't be sent to the 
browser.<BR>&gt;<BR>&gt; -----Original Message-----<BR>&gt; From: wangwh@att.net 
[<A href="mailto:wangwh@att.net">mailto:wangwh@att.net</A>]<BR>&gt; Sent: 
Friday, September 01, 2006 5:23 AM<BR>&gt; To: xwiki-users@objectweb.org<BR>&gt; 
Subject: Re: [xwiki-users] Issue with HTML comment.<BR>&gt;<BR>&gt; '--' is used 
in Wiki syntax for other things, I was wondering how to<BR>&gt; add HTML 
comments also.<BR>&gt;<BR>&gt;&nbsp; -------------- Original message 
----------------------<BR>&gt; From: Jean-Lou Dupont 
&lt;xwiki@jldupont.com&gt;<BR>&gt;&nbsp;&nbsp;<BR>&gt;&gt; FYI:<BR>&gt;&gt; If 
one is to insert an HTML comment at the end of a document and save<BR>&gt;&gt; 
it, the rendered document is completely garbled.<BR>&gt;&gt;&nbsp;<BR>&gt;&gt; 
e.g.<BR>&gt;&gt;&nbsp;<BR>&gt;&gt; &lt;input type="text" name="title" 
value="page name" size="18"/&gt; &lt;input<BR>&gt;&gt; type="button" 
value="Create this Space" onclick='if<BR>&gt;&gt; 
(updateName(this.form.title,this.form.name)){ action="../../inline/"<BR>&gt;&gt; 
+ this.form.webname.value + "/" + this.form.name.value;<BR>&gt;&gt; 
this.form.submit();<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;<BR>&gt; 
}'<BR>&gt;&nbsp;&nbsp;<BR>&gt; 
31/08/2006<BR>&gt;&nbsp;&nbsp;<BR>&gt;&gt;&nbsp;<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt;&nbsp;&nbsp;<BR>&gt; 
----------------------------------------------------------------------<BR>&gt; 
--<BR>&gt;<BR>&gt;<BR>&gt; --<BR>&gt; You receive this message as a subscriber 
of the xwiki-users@objectweb.org mailing list.<BR>&gt; To unsubscribe: <A 
href="mailto:xwiki-users-unsubscribe@objectweb.org">mailto:xwiki-users-unsubscribe@objectweb.org</A><BR>&gt; 
For general help: <A 
href="mailto:sympa@objectweb.org?subject=help">mailto:sympa@objectweb.org?subject=help</A><BR>&gt; 
ObjectWeb mailing lists service home page:<BR>&gt; <A 
href="http://www.objectweb.org/wws">http://www.objectweb.org/wws</A><BR>&gt;&nbsp;&nbsp;<BR>--<BR><BR>Reclaim 
Your Inbox! <A 
href="http://www.mozilla.org/products/thunderbird">http://www.mozilla.org/products/thunderbird</A><BR><BR><BR>--<BR>No 
virus found in this incoming message.<BR>Checked by AVG Free 
Edition.<BR>Version: 7.1.405 / Virus Database: 268.11.7/435 - Release Date: 
31/08/2006<BR><BR>&nbsp;<BR></DIV></FONT></BODY></HTML>
<BR>

<P><FONT SIZE=2>--<BR>
No virus found in this outgoing message.<BR>
Checked by AVG Free Edition.<BR>
Version: 7.1.405 / Virus Database: 268.11.7/435 - Release Date: 31/08/2006<BR>
</FONT> </P>

--Boundary_(ID_Z1khz6DoZgav+WFWby36Ig)--


--NextPart_Webmail_9m3u9jl4l_23807_1157119258_1
Content-Type: text/plain; name="message-footer.txt"
Content-Disposition: inline; filename="message-footer.txt"
Content-Transfer-Encoding: 8bit


--
You receive this message as a subscriber of the xwiki-users@objectweb.org mailing list.
To unsubscribe: mailto:xwiki-users-unsubscribe@objectweb.org
For general help: mailto:sympa@objectweb.org?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws

--NextPart_Webmail_9m3u9jl4l_23807_1157119258_1--
