|
Rank: Newbie
Joined: 9/10/2014 Posts: 6 Location: Western Australia
|
Hi All,
I'm relatively new to style vision, so any support is much appreciated.
I'm currently creating some templates (XSL v1) that need to replicate the output of an MS Word document. (I am outputting the end result to XSLT-RTF file.)
I have managed to replicate most of the document (& its formatting) however i'm struggling in trying to indent/tab a multiline filed (LI3Endorsements tag) from the XML.
Current Input -----------------------XML---------------- <LI2PropertyDamage>112</LI2PropertyDamage> <LI2PersonalInjury>11</LI2PersonalInjury> <LI2WorkersRecourse>111</LI2WorkersRecourse> <LI3Endorsements> None Noted12 121</LI3Endorsements> <LI3LoadDiscPercentage>11.08</LI3LoadDiscPercentage> ----------------------XML------------------------------------
Current method for indenting (ie cut and paste a tab from a text editor)
Current Design
Current Output
Desired Result
Bart Gagatek attached the following image(s):
|
|
Rank: Advanced Member
Joined: 12/13/2005 Posts: 2,856 Location: Mauritius
|
Well, there is a reason why StyleVision doesn't allow to use Tabs directly.
Put content in a div paragraph and use Styles to set paragraph/margin/left to whatever fits best, for example, 20pt.
|
|
Rank: Newbie
Joined: 9/10/2014 Posts: 6 Location: Western Australia
|
Hi Vlad,
Thanks for that it worked like a charm!!
for us newbies whats the reason for not having tabs in style vision?? (its seems like they have other WYSIWYG functions apart from indenting & tabulating)
|
|
Rank: Advanced Member
Joined: 12/13/2005 Posts: 2,856 Location: Mauritius
|
Because HTML doesn't render tabs. And StyleVision tries to find a common solution for all outputs.
|
|
Rank: Newbie
Joined: 9/10/2014 Posts: 6 Location: Western Australia
|
Hi Vlad,
Thanks for the insight.
Just wondering if you have any recommendations as to how I tackle the following situation.
I have multiple parts in the document that have a heading text that is followed by spacing (4 'tabs') and then a the respective content text. It is a requirement that the heading text and the content text start on the same line, and that the content text word wraps on the length of the content text field. (see example below)
Heading Text < -----------Space ----------> Content Text that may or may not be multiple lines. < ------------------------- Space ----------> It may or may not include a content fields but is < ------------------------- Space ---------->required to word wrap accordingly.
The issue i have found is that no matter what tag i use it seems to put the relevant information following the tag on a new line.
Many Thanks in advance.
|
|
Rank: Advanced Member
Joined: 12/13/2005 Posts: 2,856 Location: Mauritius
|
Very easy - just use a table with two columns. First for heading, second for content. You will only need to use XPath to split your content between heading part and content part.
|
|
Rank: Newbie
Joined: 9/10/2014 Posts: 6 Location: Western Australia
|
Hello Vlad,
Thanks for that, however tables create some undesirable effects for me.
Even though i se the Border value to 0 under the HLTM properties, the border still appears when the xml is merged with the template and the formatting is out (see image). It is displayed in our custom application that uses the RTF viewer from the .net library. (although when users create a PDF the table dis appears the the formatting fixes itself)
Can you think of another way? or am i not setting some other parameter
Bart Gagatek attached the following image(s):
|
|
Rank: Advanced Member
Joined: 12/13/2005 Posts: 2,856 Location: Mauritius
|
That is strange, because if I set HTML property border to 0, then it also disappears in RTF. Below is an RTF snippet from a modified tables.sps sample.
Does the border appear when you print out your document? If not, then you have some table visualization enabled in your Microsoft Word instance vlad attached the following image(s):
|
|
Rank: Newbie
Joined: 9/10/2014 Posts: 6 Location: Western Australia
|
Hi Vlad,
Many thanks for the reply.
Yeah it displays the table (minus text formatting) in the 'rtf' viewer however when printing it prints out correctly. (i will talk to the developers here to see what they say)
|
|
guest |