将XML转换为以下格式的HTML PHP或Java

将XML转换为以下格式的HTML PHP或Java,java,php,html,xml,Java,Php,Html,Xml,以下是我的XML: <?xml version="1.0" encoding="UTF-8" standalone="no"?><pdftsExtract><page number="0"><block height="10.425598" width="121.31714" xpos="75.384" ypos="695.5"><text>This is a test document.</text></block&

以下是我的XML:

<?xml version="1.0" encoding="UTF-8" standalone="no"?><pdftsExtract><page number="0"><block height="10.425598" width="121.31714" xpos="75.384" ypos="695.5"><text>This is a test document.</text></block><text>&#13;
&#13;
</text><block height="63.34558" width="462.63947" xpos="72.024" ypos="616.3"><text><italic>Portable Document Format </italic>(PDF) is a file format used to represent documents in a manner&#13;
independent pdf application software, hardware, and operating systems.Each PDF file&#13;
encapsulates a complete description of a fixed-layout flat document, including the text,&#13;
fonts, graphics, and other information needed to display it. <bold>In 1991, Adobe Systems co-&#13;
founder John Warnock outlined a system called "Camelot" that evolved into PDF.</bold></text></block><text>&#13;
&#13;
</text><block height="89.31" width="466.7436" xpos="72.024" ypos="508.87"><text>While Adobe Systems made the PDF specification available free of charge in 1993, PDF remained a&#13;
proprietary format, controlled by Adobe, until it was officially released as an open standard on July&#13;
1,2008, and published by the International Organization for Standardization as ISO 32000-1:2008. In&#13;
2008, Adobe published a Public Patent <bold>License to ISO 32000-1 granting royalty-free rights for all&#13;
patents owned by Adobe that are necessary to make, use, sell and distribute PDF compliant&#13;
implementations.</bold></text></block><text>&#13;
</text><block height="41.76004" type="table" width="478.87598" xpos="66.62401" ypos="451.50998"><block height="13.920044" width="159.62599" xpos="66.62401" ypos="479.34998"><block height="8.279999" width="26.727844" xpos="72.024" ypos="482.71"><text>Name</text></block></block><text>     </text><block height="13.920044" width="159.62" xpos="226.25" ypos="479.34998"><block height="8.279999" width="35.868988" xpos="231.65" ypos="482.71"><text>Address</text></block></block><text>     </text><block height="13.920044" width="159.63" xpos="385.87" ypos="479.34998"><block height="8.279999" width="31.651733" xpos="391.27" ypos="482.71"><text>Mobile</text></block></block><text>&#13;
</text><block height="13.919983" width="159.62599" xpos="66.62401" ypos="465.43"><block height="8.279999" width="24.243843" xpos="72.024" ypos="468.79"><text>Richa</text></block></block><text>     </text><block height="13.919983" width="159.62" xpos="226.25" ypos="465.43"><block height="8.279999" width="44.347687" xpos="231.65" ypos="468.79"><text>Velachery</text></block></block><text>     </text><block height="13.919983" width="159.63" xpos="385.87" ypos="465.43"><block height="8.279999" width="50.198975" xpos="391.27" ypos="468.79"><text>123456789</text></block></block><text>&#13;
</text><block height="13.920013" width="159.62599" xpos="66.62401" ypos="451.50998"><block height="8.279999" width="38.88288" xpos="72.024" ypos="454.87"><text>Bhuvana</text></block></block><text>     </text><block height="13.920013" width="159.62" xpos="226.25" ypos="451.50998"><block height="8.279999" width="36.49826" xpos="231.65" ypos="454.87"><text>Chennai</text></block></block><text>     </text><block height="13.920013" width="159.63" xpos="385.87" ypos="451.50998"><block height="8.279999" width="50.198975" xpos="391.27" ypos="454.87"><text>987654321</text></block></block></block></page></pdftsExtract>
这是一份测试文件;

便携式文档格式(PDF)是一种文件格式,用于以
;
独立的pdf应用软件、硬件和操作系统。每个pdf文件
;
封装固定布局平面文档的完整描述,包括文本&13;
显示它所需的字体、图形和其他信息。1991年,奥多比系统公司
;
创始人约翰·沃诺克(John Warnock)概述了一个名为“Camelot”的系统,该系统演变为PDF;

虽然Adobe Systems在1993年免费提供了PDF规范,但PDF仍然是一个
;
专有格式,由Adobe控制,直到2013年7月作为开放标准正式发布;
12008年,并由国际标准化组织发布为ISO 32000-1:2008。在
;
2008年,Adobe发布了ISO 32000-1的公共专利许可,授予所有
的免版税权利;
Adobe拥有的专利,是制造、使用、销售和分发PDF兼容文件所必需的
;
实施
;
姓名地址手机
;
Richa Velachery 123456789和#13;
布瓦纳钦奈987654321
我想要以下html(粗体、斜体、表格格式):

这是一个测试文档

可移植文档格式(PDF)是一种文件格式,用于以独立于PDF应用软件、硬件和操作系统的方式表示文档。每个PDF文件封装了固定布局平面文档的完整描述,包括文本、字体、图形和显示它所需的其他信息1991年,Adobe Systems联合创始人约翰·沃诺克(John Warnock)概述了一个名为“Camelot”的系统,该系统演变为PDF格式。

虽然Adobe Systems于1993年免费提供PDF规范,但PDF仍然是Adobe控制的专有格式,直到2008年7月1日正式作为开放标准发布,并由国际标准化组织发布为ISO 32000-1:2008。2008年,Adobe发布了ISO 32000-1的公共专利许可证,授予Adobe拥有的所有专利的免版税权利,这些专利是制作、使用、销售和分发符合PDF的实现所必需的。

姓名地址手机 RichaVelachery123456789
BhuvanaChennai987654321XSLT可以使用,而且非常简单


先生,您的问题是什么?你把这个网站作为你的工作台吗?我必须把上面的xml文件转换成html文件,包括所有属性,如字体大小、表格格式等。请帮助。。