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

Re: Bold Text

Subject: Re: Bold Text
From: Lawrence Mielniczuk <lwm@xxxxxxxxxxxxxxx>
Date: Fri, 20 Jul 2001 14:13:19 +0100 (GMT Daylight Time)
xsl charoff
<xsl:template match="Emphasis">
	<b><xsl:apply-templates/></b>
</xsl:template>

> 
> 
>     hi,
>     this might be a simple question, but i havent figure it out yet..
>     i have the following XML-file:
> 
>     <Table Colsep="1" Frame="All" Rowsep="1">
>     <Tgroup Align="Left" Charoff="50">
>       <Thead>
>          <Row Rowsep="1">
>             <Entry Colname="1" Change-bar="No">
> 	       <Para Change-bar="No"> Stage </Para>
> 	     </Entry>
> 	     <Entry Colname="2" Change-bar="No">Description</Entry>
>   	 </Row>
>        </Thead>
>     <Tbody>
>        <Row Rowsep="1">
>           <Entry Colname="1" Change-bar="No">
> 	     <Para Change-bar="No">20</Para>
> 	  </Entry>
> 	  <Entry Colname="2" Change-bar="No">
> 	     <Para Change-bar="No"> Bla Bla Bla </Para>
>           </Entry>
>         </Row>
> 	.
>         .
>         .
>         <Row Rowsep="1">
>            <Entry Colname="1" Change-bar="No">
> 	      <Para Change-bar="No">22</Para>
> 	   </Entry>
> 	   <Entry Colname="2" Change-bar="No">
> 	      <Para Change-bar="No"> Bla Bla Bla
> 	         <Emphasis Emph-type="Bold"> Bold Text </Emphasis>
>                  Bla Bla Bla
> 	         <Emphasis Emph-type="Bold"> More Bold Text</Emphasis>
> 	      </Para>
> 	   </Entry>
>          </Row>
> 	 .
>          .
>          .
> 
> 
>       My XSL file looks like this:
> 
>      <xsl:template match = "Table" mode = "Table" name = "Table">
>    <table>
>       <tr>
>          <td>
> 	    <table>
> 	       <xsl:for-each select="Tgroup/Thead/Row">
> 	          <tr>
> 		     <xsl:for-each select="Entry">
> 		        <td>
> 			   <b><xsl:value-of select="."/></b>
> 			</td>
> 		     </xsl:for-each>
> 		   </tr>
> 	        </xsl:for-each>
> 		<xsl:for-each select="Tgroup/Tbody/Row">
> 		   <tr>
> 		      <xsl:for-each select="Entry">
> 		         <td>
> 			    <p>
> 
> 
> 
> 			       <xsl:value-of select="."/><br></br>	<-- bold text here -->
> 
> 
> 
> 			    </p>
> 			 </td>
> 		      </xsl:for-each>
> 		    </tr>
> 	        </xsl:for-each>
> 	      </table>
> 	   </td>
> 	</tr>
>    </table>
> </xsl:template>
> 
> 
>   My question is:
>   Whenever the tag <Emphasis> appear, i like the text inside the     
> <Emphasis>-tags to be bold. Is it possible?
> 
>   any suggestions will be helpful..
> 
>   sincerly
>   hy huynh
> 
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
> 
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 

-------------------------------------
Lawrence Mielniczuk
Room 314
Bodleian Library
Oxford OX1 3BG
Tel: (01865) 277 114
Mobile: 0794 101 5689
-------------------------------------


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


Current Thread
  • Bold Text
    • Hy Huynh - Fri, 20 Jul 2001 08:27:53 -0400 (EDT)
      • Lawrence Mielniczuk - Fri, 20 Jul 2001 09:17:16 -0400 (EDT) <=
      • <Possible follow-ups>
      • Rene de Vries - Fri, 20 Jul 2001 09:34:05 -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.