[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Justify align codes for RTF (XSL)

Posted on 2007-11-28
3
Medium Priority
?
5,388 Views
Last Modified: 2013-11-18
I'm writing an html to RTF transformer. Typically the align attribute appears in a <p> i.e:

<p align="justify">

Here is the xsl code i have (XSL knowledge isn't strictly necessary to answer this so read on regardless):

<xsl:template name="attribute_align">
  <xsl:choose>
    <xsl:when test="@align = 'center'">\qc </xsl:when>
    <xsl:when test="@align = 'left'">\ql </xsl:when>
    <xsl:when test="@align = 'right'">\qr </xsl:when>
    <xsl:otherwise>\ql </xsl:otherwise>
  </xsl:choose>
</xsl:template>

.. however, my code does not support "justify" align as shown in the above example. So if:

center align RTF= \qc
left align RTF = \ql
right align RTF = \qr
justify align RTF = ???

.. then what is the code for justify align? Or how would i accomplish this?
0
Comment
Question by:paddycobbett
  • 2
3 Comments
 
LVL 60

Accepted Solution

by:
Geert Bormans earned 2000 total points
ID: 20368970
\qj
0
 
LVL 1

Author Comment

by:paddycobbett
ID: 20369438
Not quite sure why i couldn't find that! thanks once again :)
0
 
LVL 60

Expert Comment

by:Geert Bormans
ID: 20369576
welcome
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Since I wrote the original article about Handling Date and Time in PHP and MySQL several years ago, it seemed like now was a good time to update it for object-oriented PHP.  This article does that, replacing as much as possible the pr…
Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
Suggested Courses

872 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question