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

Re: Expanding Tabs

Subject: Re: Expanding Tabs
From: Alex Muir <alex.g.muir@xxxxxxxxx>
Date: Tue, 30 Mar 2010 12:30:27 +0000
Re:  Expanding Tabs
Okay I see,

What I'm doing is converting old text documents into XML. I feel like
the string length and position of the text is important given there
are tables represented in the text, section titles, subsection titles,
lists, footnotes, paragraphs,, new pages...

The length of a line, how much text follows one line to the next,
blank lines, the space between table columns will all be relevant for
determining what is what in the document and surrounding content with
xml tags.

I'll be using regex and analyze string for the majority of the process
so it may be that white space in general is all I need to match on
however it seemed that line length and position of text will be
relevant and so wanted to have every tab expanded to have the same
number of space so that counts are accurate,,, perhaps the logic would
have been easier for some aspects with expanded tabs.

Will see

Regards
Alex






On Mon, Mar 29, 2010 at 10:58 PM, Michael Kay <mike@xxxxxxxxxxxx> wrote:
>>
>> I did come across something of interest when searching for
>> xsl expand tabs... in the XSL Working Draft 16-December-1998:
>>      http://www.w3.org/TR/1998/WD-xsl-19981216#expand-tabs
>>
>
> That's in the part of the spec that became XSL Formatting objects.
>
> This all raises the question of what you are trying to achieve. Generally,
> if your final output is HTML or XSL-FO, then replacing tabs by spaces isn't
> a very useful thing to do. It's not likely to be useful for most XML
> vocabularies either. I'm not sure it's all that useful even if you are
> producing old-fashioned ASCII text in a fixed-width font (like this email),
> unless whoever typed the text knows the old UNIX rules and used a text
> editor that respects them.
>
> Regards,
>
> Michael Kay
> http://www.saxonica.com/
> http://twitter.com/michaelhkay
>
>



--
Alex
https://sites.google.com/a/utg.edu.gm/alex

Some Good Music
http://sites.google.com/site/greigconteh/

Current Thread

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.