• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

how to mimic a valign="top" call?

 
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I need to create a html page and an xsl version of the same page. I ran across a valign command that would allow me to list two parallel columns on the html page. I was trying to figure out a comparible way to do this in xsl?

I am a relitive newbie to xsl and xslt so my lingue is probably not completely correct.

<!-- html page -->
<table cellspacing="0" cellpadding="0" width="100%" border="0">
<TBODY>
<xsl:for-each select="distinctphysician">
<TR>
<TD valign="top" width="37%">
<xsl:for-each select="col1">
<br/>
<xsl:value-of select="physician"/>
<br/>
<xsl:value-of select="speciality"/>
</xsl:for-each>
</TD>
<TD valign="top">
<xsl:for-each select="col2">
<br/>
<xsl:value-of select="drugname"/>
</xsl:for-each>
</TD>
</TR>
</xsl:for-each>
</TBODY>
</table>

<!-- xsl page -->
<xsl:for-each select="distinctphysician">
<xsl:for-each select="col1">
<xsl:value-of select="$newlineChar"/>
<xsl:value-of select="physician"/>
<xsl:value-of select="$newlineChar"/>
<xsl:value-of select="speciality"/>
<xsl:value-of select="$newlineChar"/>
</xsl:for-each>
<xsl:for-each select="col2">
<xsl:value-of select="$newlineChar"/>
<xsl:value-of select="drugname"/>
</xsl:for-each>
<xsl:value-of select="$newlineChar"/>
</xsl:for-each>

output to be listed in two parallel columns:
Smith, Bob MD Coumadin
Cardiologist Jantoven
Lortab
Moban

Any help to set me upon the correct path would greatly be appreciated.
 
joseph cooper
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I might of accidently ran across the answer using xsl-fo.
 
reply
    Bookmark Topic Watch Topic
  • New Topic