[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Tabs

Subject: Re: Tabs
From: Paul Tremblay <phthenry@xxxxxxxxxxxxx>
Date: Mon, 12 Aug 2002 17:03:26 -0400
converting rtf to xml
on 8/12/02 9:46 AM, sascha at sascha@xxxxxxxxxx wrote:

> Hi,
> i have a problem transforming tabs into :fo, maybe i should better post this
> into the xsl:fo list , but i  guess it is more a XSLT thing:
> Here's my Input :

Sorry I don't have a direct answer to your question. I was interested to
know how you got your input. It appears you used a Microsoft RTF document?
Did you use a translator? I am writing a perl script to translate RTF to
XML, and would like to know what other people are using to convert RTF to
XML.

Thank you

Paul

PS I hope this question isn't off topic. But after all, converting RTF to
XML, so that you can convert XML to some other format using a
stylesheet--isn't that related?
> 
> <richtext>
> <pardef id="2" leftmargin="0.3938in" tabs="L1.1806in L1.6729in L1.7715in
> L2.5590in L2.9521in"/>
> <par def="2">
> <run>
> <font name="Arial"/>   Tabbed Text</run>
> </par>
> ....
> </richtext>
> 
> There are 5 - left-tabs defined in the pardef with the same id that the
> actual par element has-
> refering to the pardef is done with something like:
> 
> <xsl:variable name='pabid'>
> <xsl:choose>
> <xsl:when test='@def'><xsl:value-of select='@def'/></xsl:when>
> <xsl:otherwise><xsl:value-of
> select='preceding-sibling::dxl:par[@def][1]/@def'/></xsl:otherwise>
> </xsl:choose>
> </xsl:variable>
> ....
> 
> <xsl:when test="ancestor::dxl:richtext//dxl:pardef[@id=$pabid]/@tabs">
> 
> Then i have to split the tabs -string somehow.
> It seems that "tabs" are exported as special chars - how do i check this?
> and what special char it IS actually?
> And how do i count them? to make a reference to the left-margin i have to
> apply to the fo:block I am actually in-
> to make the text appear like tabbed at the right place?!
> Let's say i have entered 3 Tabs - so in my example i have to make the
> following output
> 
> <fo:block left-margin="1.7715in" font-face="Arial">Tabbed Text</fo:block>
> 
> ....something like that.
> 
> How do i get a XSLT that transforms my input to an fo: file that makes me
> get a correct PDF Output?
> Is there a way at all?
> 
> Thanks for your help!
> Sascha
> 
> 
> 
> 
> XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread
  • xsl-list@l...
    • Amanda Birmingham - Wed, 7 Aug 2002 12:48:27 -0400 (EDT)
      • <Possible follow-ups>
      • Vasu Chakkera - Wed, 7 Aug 2002 14:31:30 -0400 (EDT)
        • sascha - Mon, 12 Aug 2002 10:00:12 -0400 (EDT)
          • Paul Tremblay - Mon, 12 Aug 2002 17:32:16 -0400 (EDT) <=
          • sascha - Tue, 13 Aug 2002 02:26:15 -0400 (EDT)
          • sascha - Tue, 13 Aug 2002 05:05:58 -0400 (EDT)
          • Wendell Piez - Tue, 13 Aug 2002 15:24:52 -0400 (EDT)
          • Jeni Tennison - Tue, 13 Aug 2002 05:49:27 -0400 (EDT)

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.