[Home] [By Thread] [By Date] [Recent Entries]

  • To: Michael Kay <mike@s...>
  • Subject: Re: adding markup to tables that have none?
  • From: "M. David Peterson" <m.david.x2x2x@g...>
  • Date: Tue, 19 Apr 2005 11:04:26 -0600
  • Cc: "DuCharme, Bob (LNG-CHO)" <bob.ducharme@l...>, xml-dev@l...
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=nQy5lxP7MK0gOYt4SwgbSrVbgfFagKycj2bOzpqudF7keCOWnicMRmRC5yf8tRc6NUwHksLsjUhEb9YlY+zd6ayK561XFoH1HUDkHu/1IVvE1iZtGltAIhYflqhYSxJA5UPGKVJipCdkgcQ/0QJMyY+aOtUBg/6tKv6vFdNRpOM=
  • In-reply-to: <42653320.5ecff671.542e.ffff8f38SMTPIN_ADDED@m...>
  • References: <FEF4858E8AB32D4EAC2CF2A7D85386EB0B254A5C@l...> <42653320.5ecff671.542e.ffff8f38SMTPIN_ADDED@m...>
  • Reply-to: "M. David Peterson" <m.david.x2x2x@g...>

Dr. Kay,

I'm sure this was just short hand assuming we all knew what it meant?

             </xsl:variable

      </
     </
    </

???

On 4/19/05, Michael Kay <mike@s...> wrote:
> Use XSLT 2.0:
>  
> <xsl:for-each select="tokenize(unparsed-text($input-file),
> '\n')">
>   <tr>
>     <xsl:variable
> name="regex">(.{5})(.{10})(.{12})(.{3})</xsl:variable
>     <xsl:analyze-string select="." regex="$regex">
>       <xsl:matching-substring>
>        <xsl:for-each select="1 to 4">
>          <td><xsl:value-of select="regex-group(.)"/></td>
>        </
>      </
>     </
>    </tr>
> </xsl:for-each>
>  
> Michael Kay
> 
> ________________________________
> From: DuCharme, Bob (LNG-CHO) [mailto:bob.ducharme@l...] 
> Sent: 19 April 2005 17:23
> To: 'xml-dev@l...'
> Subject:  adding markup to tables that have none? 
> 
> 
> This is a tough problem, but it's as old as the use of markup in data files,
> so I'm sure others have tackled it. When you have a table in which all
> layout is achieved using spacing (which of course requires the use of a
> fixed-width font) and you want to add HTML or CALS table markup that
> identifies row and table entry boundaries, what kinds of tools are out there
> besides importing to Excel and saving as XML? 
>  
> I know that such tools would only work with simpler tables, because spanned
> entries, wrapped entries, and other fancy table tricks would cause problems,
> but I thought that there must be something out there, and I can't find
> anything. Any suggestions? 
>  
> thanks,
>  
> Bob
>  
>  


-- 
<M:D/>

:: M. David Peterson ::
XML & XML Transformations, C#, .NET, and Functional Languages Specialist

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member