Not interpreting my HTML
All, I have certain HTML that I do not want interpreted before it is rendered. How can I tell xWiki to render exactly what I have in my HTML? For example: drive:\Inetpub is rendered as: drive:Inetpub with the backslash removed. <http://bobmixon.xwiki.com> KM, BPM, Intranet and Portal Technologies <http://bobmixon.xwiki.com> The Possibilities are Endless Bob Mixon <mailto:bob.mixon@gmail.com> bob.mixon@gmail.com http://bobmixon.xwiki.com/ Skype ID:brm1999 <https://www.plaxo.com/add_me?u=30065756390&v0=1965978&k0=1714165761> Add me to your address book... <http://www.plaxo.com/signature> Want a signature like this?
Hi, Surround it with {pre} and {/pre} Ludovic Bob Mixon a écrit :
All,
I have certain HTML that I do not want interpreted before it is rendered. How can I tell xWiki to render exactly what I have in my HTML?
For example:
drive:\Inetpub
is rendered as:
drive:Inetpub
with the backslash removed.
*/KM, BPM, Intranet and Portal Technologies <http://bobmixon.xwiki.com>/*
The Possibilities are Endless <http://bobmixon.xwiki.com> *Bob Mixon* bob.mixon@gmail.com <mailto:bob.mixon@gmail.com> http://bobmixon.xwiki.com/ Skype ID:brm1999
/Add me to your address book... / <https://www.plaxo.com/add_me?u=30065756390&v0=1965978&k0=1714165761>/Want a signature like this? / <http://www.plaxo.com/signature>
------------------------------------------------------------------------
-- 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
-- Ludovic Dubost XPertNet: http://www.xpertnet.fr/ Blog: http://www.ludovic.org/blog/ XWiki: http://www.xwiki.com Skype: ldubost AIM: nvludo Yahoo: ludovic
That did it! Thanks. Now -- what about an XML block I wish to display? For example: <Parent> <Child someAttribute=true> </Child> </Parent> Sincerely, Bob Mixon bob.mixon@gmail.com http://bobmixon.xwiki.com -----Original Message----- From: Ludovic Dubost [mailto:ludovic@xwiki.com] Sent: Friday, December 30, 2005 11:51 AM To: xwiki-users@objectweb.org Subject: Re: [xwiki-users] Not interpreting my HTML Hi, Surround it with {pre} and {/pre} Ludovic Bob Mixon a écrit :
All,
I have certain HTML that I do not want interpreted before it is rendered. How can I tell xWiki to render exactly what I have in my HTML?
For example:
drive:\Inetpub
is rendered as:
drive:Inetpub
with the backslash removed.
*/KM, BPM, Intranet and Portal Technologies <http://bobmixon.xwiki.com>/*
The Possibilities are Endless <http://bobmixon.xwiki.com> *Bob Mixon* bob.mixon@gmail.com <mailto:bob.mixon@gmail.com> http://bobmixon.xwiki.com/ Skype ID:brm1999
/Add me to your address book... / <https://www.plaxo.com/add_me?u=30065756390&v0=1965978&k0=1714165761>/Want
a signature like this? / <http://www.plaxo.com/signature>
------------------------------------------------------------------------
-- 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
-- Ludovic Dubost XPertNet: http://www.xpertnet.fr/ Blog: http://www.ludovic.org/blog/ XWiki: http://www.xwiki.com Skype: ldubost AIM: nvludo Yahoo: ludovic
You should use {code:xml} {code} around it Ludovic Bob Mixon a écrit :
That did it! Thanks.
Now -- what about an XML block I wish to display? For example:
<Parent> <Child someAttribute=true> </Child> </Parent>
Sincerely,
Bob Mixon bob.mixon@gmail.com http://bobmixon.xwiki.com
-----Original Message----- From: Ludovic Dubost [mailto:ludovic@xwiki.com] Sent: Friday, December 30, 2005 11:51 AM To: xwiki-users@objectweb.org Subject: Re: [xwiki-users] Not interpreting my HTML
Hi,
Surround it with
{pre} and {/pre}
Ludovic
Bob Mixon a écrit :
All,
I have certain HTML that I do not want interpreted before it is rendered. How can I tell xWiki to render exactly what I have in my HTML?
For example:
drive:\Inetpub
is rendered as:
drive:Inetpub
with the backslash removed.
*/KM, BPM, Intranet and Portal Technologies <http://bobmixon.xwiki.com>/*
The Possibilities are Endless <http://bobmixon.xwiki.com> *Bob Mixon* bob.mixon@gmail.com <mailto:bob.mixon@gmail.com> http://bobmixon.xwiki.com/ Skype ID:brm1999
/Add me to your address book... / <https://www.plaxo.com/add_me?u=30065756390&v0=1965978&k0=1714165761>/Want
a signature like this? / <http://www.plaxo.com/signature>
------------------------------------------------------------------------
-- 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
------------------------------------------------------------------------
-- 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
-- Ludovic Dubost XPertNet: http://www.xpertnet.fr/ Blog: http://www.ludovic.org/blog/ XWiki: http://www.xwiki.com Skype: ldubost AIM: nvludo Yahoo: ludovic
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi! Ludovic Dubost schrieb:
You should use
{code:xml} {code}
around it
Are there similar tags for JSP code? I tried to document basic JSP techniques with xwiki and wanted to provide some example JSP code, but I always get the following error: Error number 4002 in 4: Error while parsing groovy page Main.Testpage Wrapped Exception: parsing failed Here is some example xwiki page content which produces the error described above (reduced to the minimum where the problem occurs): xwiki problem with basic JSP code {code:xml} {pre} <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %> {/pre} {code} xwiki writes the following log messages: [...] 2005-12-31 15:06:09,010 DEBUG [com.opensymphony.oscache.base.algorithm.AbstractConcurrentReadCache] get called (key=xwiki:) 2005-12-31 15:06:09,010 DEBUG [com.opensymphony.oscache.base.algorithm.AbstractConcurrentReadCache] get called (key=xwiki problem with basic JSP code {code:xml} {pre} <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %> {/pre} {code} ) 2005-12-31 15:06:09,010 DEBUG [com.opensymphony.oscache.base.algorithm.AbstractConcurrentReadCache] persistRetrieve called (key=xwiki problem with basic JSP code {code:xml} {pre} <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %> {/pre} {code} ) 2005-12-31 15:06:09,011 DEBUG [com.opensymphony.oscache.base.Cache] No cache entry exists for key='xwiki problem with basic JSP code {code:xml} {pre} <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %> {/pre} {code} ', creating 2005-12-31 15:06:09,018 INFO [STDOUT] General error during parsing: unexpected token: uri Script1.groovy:6:24: unexpected token: uri at org.codehaus.groovy.antlr.parser.GroovyRecognizer.postfixExpression(GroovyRecognizer.java:10959) at org.codehaus.groovy.antlr.parser.GroovyRecognizer.unaryExpressionNotPlusMinus(GroovyRecognizer.java:10738) at org.codehaus.groovy.antlr.parser.GroovyRecognizer.powerExpression(GroovyRecognizer.java:10580) at org.codehaus.groovy.antlr.parser.GroovyRecognizer.multiplicativeExpression(GroovyRecognizer.java:10514) at org.codehaus.groovy.antlr.parser.GroovyRecognizer.additiveExpression(GroovyRecognizer.java:10184) at org.codehaus.groovy.antlr.parser.GroovyRecognizer.shiftExpression(GroovyRecognizer.java:8041) at org.codehaus.groovy.antlr.parser.GroovyRecognizer.relationalExpression(GroovyRecognizer.java:9992) at org.codehaus.groovy.antlr.parser.GroovyRecognizer.equalityExpression(GroovyRecognizer.java:9934) at org.codehaus.groovy.antlr.parser.GroovyRecognizer.regexExpression(GroovyRecognizer.java:9884) at org.codehaus.groovy.antlr.parser.GroovyRecognizer.andExpression(GroovyRecognizer.java:9854) at org.codehaus.groovy.antlr.parser.GroovyRecognizer.exclusiveOrExpression(GroovyRecognizer.java:9824) at org.codehaus.groovy.antlr.parser.GroovyRecognizer.inclusiveOrExpression(GroovyRecognizer.java:9794) at org.codehaus.groovy.antlr.parser.GroovyRecognizer.logicalAndExpression(GroovyRecognizer.java:9764) at org.codehaus.groovy.antlr.parser.GroovyRecognizer.logicalOrExpression(GroovyRecognizer.java:9734) at org.codehaus.groovy.antlr.parser.GroovyRecognizer.conditionalExpression(GroovyRecognizer.java:3807) [...] I tried to use the tags {code:java} and {code:jsp}, but it did not help. Is there any way to have preformatted JSP code inside xwiki pages? - - andreas - -- Andreas Haumer | mailto:andreas@xss.co.at *x Software + Systeme | http://www.xss.co.at/ Karmarschgasse 51/2/20 | Tel: +43-1-6060114-0 A-1100 Vienna, Austria | Fax: +43-1-6060114-71 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFDtpGjxJmyeGcXPhERAvO/AJ9nH2s4f44mfZTJCc7lphdyJZkQ3gCgvINo 3oKWNhOhvOuduvbn8L/i2Hs= =FuiL -----END PGP SIGNATURE-----
Hi, <% is also the tag for groovy code in XWiki You might want to just replace < by < Ludovic Andreas Haumer a écrit :
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Hi!
Ludovic Dubost schrieb:
You should use
{code:xml} {code}
around it
Are there similar tags for JSP code?
I tried to document basic JSP techniques with xwiki and wanted to provide some example JSP code, but I always get the following error:
Error number 4002 in 4: Error while parsing groovy page Main.Testpage Wrapped Exception: parsing failed
Here is some example xwiki page content which produces the error described above (reduced to the minimum where the problem occurs):
xwiki problem with basic JSP code
{code:xml} {pre}
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
{/pre} {code}
xwiki writes the following log messages: [...] 2005-12-31 15:06:09,010 DEBUG [com.opensymphony.oscache.base.algorithm.AbstractConcurrentReadCache] get called (key=xwiki:) 2005-12-31 15:06:09,010 DEBUG [com.opensymphony.oscache.base.algorithm.AbstractConcurrentReadCache] get called (key=xwiki problem with basic JSP code
{code:xml} {pre}
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
{/pre} {code} ) 2005-12-31 15:06:09,010 DEBUG [com.opensymphony.oscache.base.algorithm.AbstractConcurrentReadCache] persistRetrieve called (key=xwiki problem with basic JSP code
{code:xml} {pre}
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
{/pre} {code} ) 2005-12-31 15:06:09,011 DEBUG [com.opensymphony.oscache.base.Cache] No cache entry exists for key='xwiki problem with basic JSP code
{code:xml} {pre}
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
{/pre} {code} ', creating 2005-12-31 15:06:09,018 INFO [STDOUT] General error during parsing: unexpected token: uri
Script1.groovy:6:24: unexpected token: uri at org.codehaus.groovy.antlr.parser.GroovyRecognizer.postfixExpression(GroovyRecognizer.java:10959) at org.codehaus.groovy.antlr.parser.GroovyRecognizer.unaryExpressionNotPlusMinus(GroovyRecognizer.java:10738) at org.codehaus.groovy.antlr.parser.GroovyRecognizer.powerExpression(GroovyRecognizer.java:10580) at org.codehaus.groovy.antlr.parser.GroovyRecognizer.multiplicativeExpression(GroovyRecognizer.java:10514) at org.codehaus.groovy.antlr.parser.GroovyRecognizer.additiveExpression(GroovyRecognizer.java:10184) at org.codehaus.groovy.antlr.parser.GroovyRecognizer.shiftExpression(GroovyRecognizer.java:8041) at org.codehaus.groovy.antlr.parser.GroovyRecognizer.relationalExpression(GroovyRecognizer.java:9992) at org.codehaus.groovy.antlr.parser.GroovyRecognizer.equalityExpression(GroovyRecognizer.java:9934) at org.codehaus.groovy.antlr.parser.GroovyRecognizer.regexExpression(GroovyRecognizer.java:9884) at org.codehaus.groovy.antlr.parser.GroovyRecognizer.andExpression(GroovyRecognizer.java:9854) at org.codehaus.groovy.antlr.parser.GroovyRecognizer.exclusiveOrExpression(GroovyRecognizer.java:9824) at org.codehaus.groovy.antlr.parser.GroovyRecognizer.inclusiveOrExpression(GroovyRecognizer.java:9794) at org.codehaus.groovy.antlr.parser.GroovyRecognizer.logicalAndExpression(GroovyRecognizer.java:9764) at org.codehaus.groovy.antlr.parser.GroovyRecognizer.logicalOrExpression(GroovyRecognizer.java:9734) at org.codehaus.groovy.antlr.parser.GroovyRecognizer.conditionalExpression(GroovyRecognizer.java:3807) [...]
I tried to use the tags {code:java} and {code:jsp}, but it did not help.
Is there any way to have preformatted JSP code inside xwiki pages?
- - andreas
- -- Andreas Haumer | mailto:andreas@xss.co.at *x Software + Systeme | http://www.xss.co.at/ Karmarschgasse 51/2/20 | Tel: +43-1-6060114-0 A-1100 Vienna, Austria | Fax: +43-1-6060114-71 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFDtpGjxJmyeGcXPhERAvO/AJ9nH2s4f44mfZTJCc7lphdyJZkQ3gCgvINo 3oKWNhOhvOuduvbn8L/i2Hs= =FuiL -----END PGP SIGNATURE-----
------------------------------------------------------------------------
-- 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
-- Ludovic Dubost XPertNet: http://www.xpertnet.fr/ Blog: http://www.ludovic.org/blog/ XWiki: http://www.xwiki.com Skype: ldubost AIM: nvludo Yahoo: ludovic
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi Ludovic, many thanks for your reply! Ludovic Dubost schrieb:
Hi,
<%
is also the tag for groovy code in XWiki
You might want to just replace < by <
Aha! Now that works, thank you so much! I tried to escape the tags with a backslash, but that didn't work. I didn't think of using HTML named entities (or even UNICODE sequences) to "hide" the tags from the XWiki engine... ;-) - - andreas - -- Andreas Haumer | mailto:andreas@xss.co.at *x Software + Systeme | http://www.xss.co.at/ Karmarschgasse 51/2/20 | Tel: +43-1-6060114-0 A-1100 Vienna, Austria | Fax: +43-1-6060114-71 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFDu/0RxJmyeGcXPhERAsNlAJ4rOx8Pc4ra+BJtf90nUug8i2bf6QCeKRwl jjN2Jj28ZeVB/kwThkbd3Tk= =1H8P -----END PGP SIGNATURE-----
Ludovic, Unfortunately, doing that causes many problems on my page. The resulting page I get is unreadable with the Menu repositioned. Sincerely, Bob Mixon bob.mixon@gmail.com http://bobmixon.xwiki.com -----Original Message----- From: Ludovic Dubost [mailto:ludovic@xwiki.com] Sent: Saturday, December 31, 2005 1:32 AM To: xwiki-users@objectweb.org Subject: Re: [xwiki-users] Not interpreting my HTML You should use {code:xml} {code} around it Ludovic Bob Mixon a écrit :
That did it! Thanks.
Now -- what about an XML block I wish to display? For example:
<Parent> <Child someAttribute=true> </Child> </Parent>
Sincerely,
Bob Mixon bob.mixon@gmail.com http://bobmixon.xwiki.com
-----Original Message----- From: Ludovic Dubost [mailto:ludovic@xwiki.com] Sent: Friday, December 30, 2005 11:51 AM To: xwiki-users@objectweb.org Subject: Re: [xwiki-users] Not interpreting my HTML
Hi,
Surround it with
{pre} and {/pre}
Ludovic
Bob Mixon a écrit :
All,
I have certain HTML that I do not want interpreted before it is rendered. How can I tell xWiki to render exactly what I have in my HTML?
For example:
drive:\Inetpub
is rendered as:
drive:Inetpub
with the backslash removed.
*/KM, BPM, Intranet and Portal Technologies <http://bobmixon.xwiki.com>/*
The Possibilities are Endless <http://bobmixon.xwiki.com> *Bob Mixon* bob.mixon@gmail.com <mailto:bob.mixon@gmail.com> http://bobmixon.xwiki.com/ Skype ID:brm1999
/Add me to your address book... /
<https://www.plaxo.com/add_me?u=30065756390&v0=1965978&k0=1714165761>/Want
a signature like this? / <http://www.plaxo.com/signature>
------------------------------------------------------------------------
-- 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
------------------------------------------------------------------------
-- 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
-- Ludovic Dubost XPertNet: http://www.xpertnet.fr/ Blog: http://www.ludovic.org/blog/ XWiki: http://www.xwiki.com Skype: ldubost AIM: nvludo Yahoo: ludovic
Difficult to help out without an example or just a link to the page Ludovic Bob Mixon a écrit :
Ludovic,
Unfortunately, doing that causes many problems on my page. The resulting page I get is unreadable with the Menu repositioned.
Sincerely,
Bob Mixon bob.mixon@gmail.com http://bobmixon.xwiki.com
-----Original Message----- From: Ludovic Dubost [mailto:ludovic@xwiki.com] Sent: Saturday, December 31, 2005 1:32 AM To: xwiki-users@objectweb.org Subject: Re: [xwiki-users] Not interpreting my HTML
You should use
{code:xml} {code}
around it
Ludovic
Bob Mixon a écrit :
That did it! Thanks.
Now -- what about an XML block I wish to display? For example:
<Parent> <Child someAttribute=true> </Child> </Parent>
Sincerely,
Bob Mixon bob.mixon@gmail.com http://bobmixon.xwiki.com
-----Original Message----- From: Ludovic Dubost [mailto:ludovic@xwiki.com] Sent: Friday, December 30, 2005 11:51 AM To: xwiki-users@objectweb.org Subject: Re: [xwiki-users] Not interpreting my HTML
Hi,
Surround it with
{pre} and {/pre}
Ludovic
Bob Mixon a écrit :
All,
I have certain HTML that I do not want interpreted before it is rendered. How can I tell xWiki to render exactly what I have in my HTML?
For example:
drive:\Inetpub
is rendered as:
drive:Inetpub
with the backslash removed.
*/KM, BPM, Intranet and Portal Technologies <http://bobmixon.xwiki.com>/*
The Possibilities are Endless <http://bobmixon.xwiki.com> *Bob Mixon* bob.mixon@gmail.com <mailto:bob.mixon@gmail.com> http://bobmixon.xwiki.com/ Skype ID:brm1999
/Add me to your address book... /
<https://www.plaxo.com/add_me?u=30065756390&v0=1965978&k0=1714165761>/Want
a signature like this? / <http://www.plaxo.com/signature>
------------------------------------------------------------------------
-- 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
------------------------------------------------------------------------
-- 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
------------------------------------------------------------------------
-- 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
-- Ludovic Dubost XPertNet: http://www.xpertnet.fr/ Blog: http://www.ludovic.org/blog/ XWiki: http://www.xwiki.com Skype: ldubost AIM: nvludo Yahoo: ludovic
participants (3)
-
Andreas Haumer -
Bob Mixon -
Ludovic Dubost