[xwiki-users] API to get page content in XHTML

2012-07-25 Thread mterpstra
I'm developing a Java servlet application that needs to fetch pages from an
XWiki instance in the same container.  It needs the content rendered in
XHTML.  Ideally, I'd like to get just the page content, without any of the
extra navigation/layout markup.  Whats the best way to do this?

I've looked at using the REST API, but as far as I can figure out it only
provides the content in the xwiki syntax.  Is there a way to get the content
rendered in XHTML through this API?


--Maxwell Terpstra



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/API-to-get-page-content-in-XHTML-tp7580533.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] API to get page content in XHTML

2012-07-26 Thread Guillaume Delhumeau
Hi,

Maybe you should use the standard HTTP protocol and just add
"?outputSyntax=html&xpage=plain" at the end of the URL.

See as an example:
http://www.xwiki.org/xwiki/bin/view/Main/WebHome?outputSyntax=html&xpage=plain

I hope this helps,

Guillaume D.

2012/7/25 mterpstra 

> I'm developing a Java servlet application that needs to fetch pages from an
> XWiki instance in the same container.  It needs the content rendered in
> XHTML.  Ideally, I'd like to get just the page content, without any of the
> extra navigation/layout markup.  Whats the best way to do this?
>
> I've looked at using the REST API, but as far as I can figure out it only
> provides the content in the xwiki syntax.  Is there a way to get the
> content
> rendered in XHTML through this API?
>
>
> --Maxwell Terpstra
>
>
>
> --
> View this message in context:
> http://xwiki.475771.n2.nabble.com/API-to-get-page-content-in-XHTML-tp7580533.html
> Sent from the XWiki- Users mailing list archive at Nabble.com.
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] API to get page content in XHTML

2012-07-26 Thread Thomas Mortagne
On Wed, Jul 25, 2012 at 7:26 PM, mterpstra  wrote:
> I'm developing a Java servlet application that needs to fetch pages from an
> XWiki instance in the same container.  It needs the content rendered in
> XHTML.  Ideally, I'd like to get just the page content, without any of the
> extra navigation/layout markup.  Whats the best way to do this?

For that we usually use /get/ action instead of /view/ in the standard
browser oriented access. As in
http://www.xwiki.org/xwiki/bin/get/Main/WebHome.

An example of that is comments in the bottom of the page.

>
> I've looked at using the REST API, but as far as I can figure out it only
> provides the content in the xwiki syntax.  Is there a way to get the content
> rendered in XHTML through this API?
>
>
> --Maxwell Terpstra
>
>
>
> --
> View this message in context: 
> http://xwiki.475771.n2.nabble.com/API-to-get-page-content-in-XHTML-tp7580533.html
> Sent from the XWiki- Users mailing list archive at Nabble.com.
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users



-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users