IMPORTANT:
this is not a Support Forum! Experienced users might answer from time to time questions posted here. If you need a professional and reliable answer, or if you want to report a bug, please contact Altova Support instead.

Formatting: tabulation / indentation Options · View
Bart Gagatek
Posted: Wednesday, September 10, 2014 2:17:25 AM
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):
Untitled.jpg
Untitled2.jpg
Untitled3.jpg

vlad
Posted: Wednesday, September 10, 2014 7:51:53 AM
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.
Bart Gagatek
Posted: Wednesday, September 10, 2014 9:34:53 AM
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)

vlad
Posted: Wednesday, September 10, 2014 10:16:11 AM
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.
Bart Gagatek
Posted: Tuesday, September 16, 2014 2:31:03 AM
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.
vlad
Posted: Tuesday, September 16, 2014 8:31:26 AM
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.
Bart Gagatek
Posted: Wednesday, September 24, 2014 9:28:43 AM
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):
screenshot.24-09-2014 17.27.15.jpg

vlad
Posted: Wednesday, September 24, 2014 3:46:39 PM
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):
Capture.JPG

Bart Gagatek
Posted: Wednesday, October 1, 2014 8:59:38 AM
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)
Users browsing this topic
guest

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Use of the Altova User Forum(s) is governed by the Altova Terms of Use.