[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: chords and lyrics notations via XSL


Subject: RE: chords and lyrics notations via XSL
From: Mark Hayes <mark@xxxxxxxxxxx>
Date: Sun, 7 Nov 1999 13:44:31 -0800

>I don't wanna <chord value="Gb"/>talk about things we've
><chord value="Db/F"/>gone trough, though it's hurting
><chord value="Dbm/Eb"/>me, now it's
>histo<chord value="Db"/>ry.
>
>it should be rendered as:
>
>               Gb                      Db/F
>I don't wanna talk about things we've gone trough,
>                     Abm/Eb             Db
>though it's hurting me, now it's history.

Although the spacing isn't quite right here is an HTML table that roughly
works.  Generating it from XSL is another issue, since the total number of
columns would need to be calculated in advance.  Doing it with <PRE> and
character positions is (I think) roughly the same problem.

<table>
<tr> 
  <td> <tt> &nbsp; </tt> </td> 
  <td colspan='2'> <tt> Gb </tt> </td> 
  <td> <tt> Db/F </tt> </td> 
</tr>
<tr>  
  <td> <tt> I don't wanna </tt> </td> 
  <td colspan='2'> <tt> talk about things we've </tt> </td> 
  <td> <tt> gone through, </tt> </td> 
</tr>
<tr> 
  <td colspan='2'> <tt> &nbsp; </tt> </td> 
  <td> <tt> Abm/Eb </tt> </td> 
  <td> <tt> Db </tt> </td> 
</tr>
<tr> 
  <td colspan='2'> <tt> though it's hurting </tt> </td> 
  <td colspan='2'> <tt> me, now it's history. </tt> </td> 
</tr>
</table>


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



Current Thread
Keywords
xsl