|
Hello. ��� ���In relation with the left margin aligment, you
can try to write the xml file without spaces on the left. ����������� <?xml version="1.0" encoding="UTF-8"?> <PatientData> ������ <PatientInfo> ������������ <Note_12>1. This is a new item. 2. It
is on sale now 3.
This item can be used for multipurpose jobs such as gardening, lawn mowing,
tree cutting, tree decorating and other purposes 4. It
has a 30 day warranty ��� </Note_12> ������������ <Note_16>This is a new item. It is on sale now. This item can be used for multipurpose
jobs such as gardening, lawn mowing, tree cutting, tree decorating and other
purposes. It has a 30 day warranty ��� </Note_16> ������������ <Dictator_Signature>sign.jpg</Dictator_Signature> ������ </PatientInfo> </PatientData> ������ With the white-space-collapse="false" property, you get the spaces too. I had this problem before and I
could fix it. ������ I hope I can help you. ������ Bye. ������ -----Mensaje original----- Hello
all, I
have finished setting up an xsl file to generate pdf using fop-0.20.4. The xml
which I generate has tags which are populated by text from html
<textarea> tags. These textarea texts preserve all the spaces and the new
line characters. I
now want to display this information in pdf as: Item description: <space> this is a new
item. It is on sale now. This item can be used for multipurpose jobs such as
gardening, lawn mowing, tree cutting, tree decorating and other purposes. It has
a 30 day warranty OR Item description: 1.
This is a new item. 2.
It is on sale now 3.
This item can be used for multipurpose jobs such as gardening, lawn mowing,
tree cutting, tree decorating and other purposes 4.
It has a 30 day warranty As
you can see there are two basic requirements: 1)
If the text is starting with
a numerical value than use option 2 2)
If the text is starting with
an alphabetical value than use option 1 Also the biggest point of consideration is the rolling of text to start
from left margin every time. Our worst case scenario is to start the
<tetxarea> data from the next line for above mentioned options BUT we
still need to achieve the left margin alignment. I
have tried using block, Lists and tables but I am not getting the formatting to
start from the left margin. Attached is my xsl file and xml data file. Can you
please look into it and guide me thro this formatting issue. I am attaching the
following files: 1.
pnxml: xml file 2.
pnxslB: xsl file using blocks 3.
pnxslL: xsl file using Lists 4.
pnxslT: xsl file using Tables. If
you have Fop than you can probably run this as standalone files using the Fop
– xsl <xsl file> -xml <xmlfile> -pdf <out.pdf> Please
let me know if you can figure this formatting out. Also I have attached
trial.pdf my output file for your immediate reference. Thanks, Jignesh |
