xmlgraphics-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From psan...@apache.org
Subject svn commit: r1415655 - /xmlgraphics/site/trunk/content/fop/trunk/servlets.mdtext
Date Fri, 30 Nov 2012 14:28:40 GMT
Author: psancho
Date: Fri Nov 30 14:28:39 2012
New Revision: 1415655

URL: http://svn.apache.org/viewvc?rev=1415655&view=rev
Log:
FOP servlet: titles hierarchy

Modified:
    xmlgraphics/site/trunk/content/fop/trunk/servlets.mdtext

Modified: xmlgraphics/site/trunk/content/fop/trunk/servlets.mdtext
URL: http://svn.apache.org/viewvc/xmlgraphics/site/trunk/content/fop/trunk/servlets.mdtext?rev=1415655&r1=1415654&r2=1415655&view=diff
==============================================================================
--- xmlgraphics/site/trunk/content/fop/trunk/servlets.mdtext (original)
+++ xmlgraphics/site/trunk/content/fop/trunk/servlets.mdtext Fri Nov 30 14:28:39 2012
@@ -22,9 +22,9 @@ The servlet is automatically built when 
 
 The source code for the servlet can be found under {fop-dir}/src/java/org/apache/fop/servlet/FopServlet.java.
 This example servlet should not be used on a public web server connected to the Internet
as it does not contain any measures to prevent Denial-of-Service-Attacks. It is provided as
an example and as a starting point for your own servlet.
-# Create your own Servlet <a id="servlet"></a>
+## Create your own Servlet <a id="servlet"></a>
 This section assumes you are familiar with [embedding FOP](embedding.html) .
-## A minimal Servlet <a id="minimal-servlet"></a>
+### A minimal Servlet <a id="minimal-servlet"></a>
 
 Here is a minimal code snippet to demonstrate the basics:
 private FopFactory fopFactory = FopFactory.newInstance();
@@ -43,7 +43,7 @@ public void doGet(HttpServletRequest req
         throw new ServletException(ex);
     }
 }There are numerous problems with the code snippet above. Its purpose is only to demonstrate
the basic concepts. See below for details.
-## Adding XSL tranformation (XSLT) <a id="xslt"></a>
+### Adding XSL tranformation (XSLT) <a id="xslt"></a>
 
 A common requirement is to transform an XML source to XSL-FO using an XSL transformation.
It is recommended to use JAXP for this task. The following snippet shows the basic code:
 private FopFactory fopFactory = FopFactory.newInstance();
@@ -144,7 +144,7 @@ Source xsltSrc = this.uriResolver.resolv
     "servlet-context:/xslt/mystylesheet.xsl", null);
 Transformer transformer = this.transFactory.newTransformer(xsltSrc);
 transformer.setURIResolver(this.uriResolver);
-# Notes on Microsoft Internet Explorer <a id="ie"></a>
+## Notes on Microsoft Internet Explorer <a id="ie"></a>
 
 Some versions of Internet Explorer will not automatically show the PDF or call the servlet
multiple times. These are well-known limitations of Internet Explorer and are not a problem
of the servlet. However, Internet Explorer can still be used to download the PDF so that it
can be viewed later. Here are some suggestions in this context:
 



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: commits-help@xmlgraphics.apache.org


Mime
View raw message