Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

<para align...with label attrubute

Status
Not open for further replies.

LJGizmo

Technical User
Mar 16, 2010
2
US
How do I get my par text to align with the letter of the first word when there's a label attribute. If the label atrribute is more than one character (i.e. 1.7.1.2) then all subsequent lines of text stay to the left of the first line:

<subpara1 id="TM0XXXXX-13P-XX-PAR1-1.6.B" label="b.1.2.1."><para>While corrosion
is typically associated with rusting of metals, corrosion can also include
deterioration of other materials, such as rubber and plastic. Unusual cracking,
softening, swelling, or breaking of these materials may be a corrosion problem.</para>
</subpara1>


this is what I get when I print:

b.1.2.1. While corrosion is typically associated with rusting of metals, corrosion can also include
deterioration of other materials, such as rubber and plastic. Unusual cracking, softening, swelling, or
breaking of these materials may be a corrosion problem.

What I want if for the first word of 2nd 3rd and 4th line to align with the "While".


 
Ultimately will be displayed in IETM (US Marine Corps furnished viewer) but right now I'm just outputting to paper (PDF) using Arbortext's print composer. Stylesheet comes from Arbotext Styler (.style file) but I don't have a license for Styler so I'm modifying the stylesheet using Textpad.
 
>What I want if for the first word of 2nd 3rd and 4th line to align with the "While".
That usually is realized by two divisions structure wrapped in an outer div. The two division float one on left and one on right. The left would be anticipated to host the numbering label, so it be narrow. The right to host the article, be wide. The style is accomplished by a css stylesheet. The divs' styles are through class selectors. The whole thing is constructed through an xsl transformation of the xml document. That is the cheapest approach with every step using freely available technology.

This would be my first approach to it destined to be use (display or print) via a user-agent like a browser. I believe acrobat does similar thing.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top