当前位置:首页 » 软件开发
开发技术指南» 文章正文
    引言: This article demonstrates how we
 

 

    摘要:microsofts bundling of crystal reports dates to visual basic 3 and since then many developers have come to rely on it to build reporting solutions. early on some developers found the programming api t......
 ·java package processes all rss formats    »显示摘要«
    摘要:ss (real simple syndication) is a flexible and efficient format for exchanging structured, dynamically changing data, such as news headlines, blogs, job vacancies, new projects, recent wiki changes, e......


Integrating XSL-FO into Web-Based Applications @ JDJ
the entire system was written in java running on windows 2000 professional. the tools used to build this system include: java 2 platform, standard edition (j2se): http://java.sun.com/j2se/ javamail 1.3: http://java.sun.com/products/javamail/ javabeans activation framework 1.0.2: http://java.sun.com/products/javabeans/glasgow/jaf.html jdom beta 9: www.jdom.org log4j v 1.2.8 from apache: http://logging.apache.org/log4j fop-0.20.5: http://xml.apache.org/fop/index.html apache tomcat 5.0.16 (jsp and servlet engine): http://jakarta.apache.org/tomcat/index.html formatting objects processor (fop) 【推荐阅读:Linux Kernel Vulnera

this article demonstrates how we can integrate xsl-fo, xslt, and javamail into our existing web-based applications. i show you how we can generate pdf reports for an application through the use of xslt and xsl-fo embedded within the java application. i also illustrate how the generated pdf file can be sent as an e-mail attachment using javamail.

although a variety of web-based technologies such as servlets or web services are available, i chose the jsp approach. a simple jsp-based test harness was written to demonstrate the integration of all these technologies. an html table report generation example is also included to show how the xsl-fo table elements correspond to the html table elements. although using xsl-fo and xslt may be overkill, the greater degree of formatting control and flexibility may prove advantageous.

tools used

xsl-fo is part of the extensible stylesheet language (xsl) family of recommendations from the w3c. xsl is used to define xml document transformations and presentations and is made up of: xslt/xpath xsl-fo xslt is a language for transforming xml documents (mainly from xml to xml or xml to html).

xpath allows you to identify specific parts of your xml document and to write expressions to refer to, for example, the nth child element of the specified xml file. it is used extensively by xslt for referencing specified elements within the input document for further processing.

xsl-fo is an xml language that defines page formatting and
...   下一页

 ·application servers: part 2 @ jdj    »显示摘要«
    摘要:legacy systems are too important for java developers to ignore, but neednt be a hassle to access. these systems include everything from packaged applications like sap and peoplesoft to aging home-grow......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE