- From: soph <sophiezhao@mail.bcpra.ubc.ca>
- Date: Thu, 13 May 2010 09:25:49 -0700 (PDT)
- To: www-xsl-fo@w3.org
Hello I have an XML file and I am developing the XSL_FO stylesheet for it. The XML is a bit weird. It includes many <component>s , and in each components, a table was included. The XML uses table to organize content, instead of a logic way. The following are two <component>s examples. When I design XSL_FO. I created a fo:table with 2 columns. Place <th > on the left column and <td> on the right column. The first <component> in the following displays fine, but the second <component> doesn't. I guess the XML was designed for working with XSLT to display in browser. I am very new to XSL_FO, I wonder: 1. if there is a way I can grab the html table in the following XML and display in PDF directly. 2. if there is no way I can use the table directly. How should I create the XSL_FO to display these <component> with different structure properly in tables. Thank you. ----------------------------------------example----------------------------------- <component> <code code="0007" displayName="Clinic Notes"/> ..... </table border="1"> <tbody> <tr> <th>Issue:</th> <td/> <td>Education</td> </tr> <tr> <th>Assessment:</th> <td/> <td>YXX arrived for EPO and dialysis teaching. YXX was unable to walk from the waiting room down the hallway to the office. </td> </tr> <tr> <th>Intervention:</th> <td/> <td>Phone call made to Dr Thomas. Orders received for pt to go to the ER for assessment by herself. RP2 and UA to be done. Normal Saline bolus 500 ml to be given IV.<br/>EPO 2000 units given sc. as ordered by Dr Cooper previously.</td> </tr> <tr> <th>Plan:</th> <td/> <td>Took pt by WC to the ER. Report given to the nurse.<br/>Friend with YXX.</td> </tr> <tr> <th>Patient Plan:</th> <td/> <td/> </tr> </tbody> </table> ...... </component> <component> <code code="0012" .... displayName="Recent Lab Results"/> .... <table border="1"> <tbody> <tr> <th>Type</th> <th>Collection Date</th> <th>Result/Unit</th> <th>Normal Result Range</th> <th>Abnormal?</th> </tr> <tr> <td>ALBUMIN, SERUM</td> <td>27-SEP-2007</td> <td>38 g/L</td> <td>35-51</td> <td/> </tr> <tr> <td>ALKALINE PHOSPHATASE, SERUM</td> <td>27-SEP-2007</td> <td>145 U/L</td> <td>38-126</td> <td> H</td> </tr> </tbody> </table> ...... </component> -- View this message in context: http://old.nabble.com/Creating-an-XSL_FO-stylesheet-for-an-XML-including-html-tables-tp28541542p28541542.html Sent from the w3.org - www-xsl-fo mailing list archive at Nabble.com.
Received on Friday, 14 May 2010 13:22:05 UTC