cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r833952 - in /websites/production/cxf/content: cache/docs.pageCache docs/jax-rs-advanced-xml.html
Date Wed, 03 Oct 2012 21:47:27 GMT
Author: buildbot
Date: Wed Oct  3 21:47:27 2012
New Revision: 833952

Log:
Production update by buildbot for cxf

Modified:
    websites/production/cxf/content/cache/docs.pageCache
    websites/production/cxf/content/docs/jax-rs-advanced-xml.html

Modified: websites/production/cxf/content/cache/docs.pageCache
==============================================================================
Binary files - no diff available.

Modified: websites/production/cxf/content/docs/jax-rs-advanced-xml.html
==============================================================================
--- websites/production/cxf/content/docs/jax-rs-advanced-xml.html (original)
+++ websites/production/cxf/content/docs/jax-rs-advanced-xml.html Wed Oct  3 21:47:27 2012
@@ -391,7 +391,7 @@ WebClient client = WebClient.create(<spa
 <p>One way to get outbound XML transformed to HTML or get an XHTML payload further
decorated with CSS tags is to <a shape="rect" class="external-link" href="http://www.w3.org/TR/xml-stylesheet/"
rel="nofollow">associate an xml-stylesheet processing instruction</a> with the XML
payload, for example:</p>
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
 <pre class="code-xml">
-<span class="code-tag">&lt;?xml-stylesheet type=<span class="code-quote">"text/xls"</span>
href=<span class="code-quote">"http://localhost/myapp/stylesheets/toHTML.xsl"</span>?&gt;</span>
+<span class="code-tag">&lt;?xml-stylesheet type=<span class="code-quote">"text/xsl"</span>
href=<span class="code-quote">"http://localhost/myapp/stylesheets/toHTML.xsl"</span>?&gt;</span>
 <span class="code-tag">&lt;products xmlns=<span class="code-quote">"http://products"</span>&gt;</span>
    <span class="code-tag">&lt;product id=<span class="code-quote">"1"</span>/&gt;</span>
 <span class="code-tag">&lt;/products&gt;</span>
@@ -429,7 +429,7 @@ This option is alternative to using XSLT
 <span class="code-tag">&lt;bean id=<span class="code-quote">"jaxbProvider"</span>
class=<span class="code-quote">"org.apache.cxf.jaxrs.provider.JAXBElementProvider"</span>&gt;</span>
 <span class="code-tag">&lt;map&gt;</span>
 &lt;entry key=<span class="code-quote">"com.sun.xml.bind.xmlHeaders"</span>

-       value=<span class="code-quote">"<span class="code-tag">&lt;?xml-stylesheet
type='text/xls' href='/stylesheets/toHTML.xsl'?&gt;</span>"</span>/&gt;
+       value=<span class="code-quote">"<span class="code-tag">&lt;?xml-stylesheet
type='text/xsl' href='/stylesheets/toHTML.xsl'?&gt;</span>"</span>/&gt;
 <span class="code-tag">&lt;/map&gt;</span>
 <span class="code-tag">&lt;/bean&gt;</span>
 <span class="code-tag">&lt;/beans&gt;</span>
@@ -447,7 +447,7 @@ Otherwise the best option is to extend J
 <span class="code-keyword">public</span> class Resource {
    @GET
    @Produces(<span class="code-quote">"application/xml"</span>)
-   @XMLInstruction(<span class="code-quote">"&lt;?xml-stylesheet type='text/xls'
href='/stylesheets/toHTML.xsl'?&gt;"</span>)
+   @XMLInstruction(<span class="code-quote">"&lt;?xml-stylesheet type='text/xsl'
href='/stylesheets/toHTML.xsl'?&gt;"</span>)
    <span class="code-keyword">public</span> Products getProducts() {}
 }
 </pre>



Mime
View raw message