RE: Last line in bold.
"Darren Richmond" <[email protected]> Thu, 10 Apr 2003 09:00:00 -0500
| Newsgroups | gmane.text.xml.xsl.general |
|---|---|
| Message-ID | <[email protected]> |
This is a multi-part message in MIME format. ------=_NextPart_000_003F_01C2FF3F.90FD7F30 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit I would mark up the last line with a <total> element and do a <xsl:template match="total"> <b> /* However you get your content */ </b> </xsl:template> Trying to identify the last line from an XSL stylesheet sounds like a bad idea to me. -----Original Message----- From: [email protected] [mailto:[email protected]]On Behalf Of Yoshida, Ken Sent: Thursday, April 10, 2003 8:27 AM To: '[email protected]' Subject: Last line in bold. I am currently looping through and xml doc in which the last line are totals. How can I make this line bold? Thanks Ken ------=_NextPart_000_003F_01C2FF3F.90FD7F30 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML xmlns=3D"http://www.w3.org/TR/REC-html40" xmlns:o =3D=20 "urn:schemas-microsoft-com:office:office" xmlns:w =3D=20 "urn:schemas-microsoft-com:office:word"><HEAD> <META http-equiv=3DContent-Type content=3D"text/html; = charset=3Diso-8859-1"> <META content=3DWord.Document name=3DProgId> <META content=3D"MSHTML 6.00.2800.1141" name=3DGENERATOR> <META content=3D"Microsoft Word 10" name=3DOriginator><LINK=20 href=3D"cid:[email protected]" rel=3DFile-List><!--[if gte = mso 9]><xml> <o:OfficeDocumentSettings> <o:DoNotRelyOnCSS/> </o:OfficeDocumentSettings> </xml><![endif]--><!--[if gte mso 9]><xml> <w:WordDocument> <w:SpellingState>Clean</w:SpellingState> <w:GrammarState>Clean</w:GrammarState> <w:DocumentKind>DocumentEmail</w:DocumentKind> <w:EnvelopeVis/> <w:Compatibility> <w:BreakWrappedTables/> <w:SnapToGridInCell/> <w:WrapTextWithPunct/> <w:UseAsianBreakRules/> </w:Compatibility> <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel> </w:WordDocument> </xml><![endif]--> <STYLE>@page Section1 {size: 8.5in 11.0in; margin: 1.0in 1.25in 1.0in = 1.25in; mso-header-margin: .5in; mso-footer-margin: .5in; = mso-paper-source: 0; } P.MsoNormal { FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"; = mso-style-parent: ""; mso-pagination: widow-orphan; = mso-fareast-font-family: "Times New Roman" } LI.MsoNormal { FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"; = mso-style-parent: ""; mso-pagination: widow-orphan; = mso-fareast-font-family: "Times New Roman" } DIV.MsoNormal { FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"; = mso-style-parent: ""; mso-pagination: widow-orphan; = mso-fareast-font-family: "Times New Roman" } A:link { COLOR: blue; TEXT-DECORATION: underline; text-underline: single } SPAN.MsoHyperlink { COLOR: blue; TEXT-DECORATION: underline; text-underline: single } A:visited { COLOR: purple; TEXT-DECORATION: underline; text-underline: single } SPAN.MsoHyperlinkFollowed { COLOR: purple; TEXT-DECORATION: underline; text-underline: single } SPAN.EmailStyle17 { COLOR: windowtext; FONT-FAMILY: Arial; mso-bidi-font-family: Arial; = mso-style-type: personal-compose; mso-style-noshow: yes; = mso-ansi-font-size: 10.0pt; mso-bidi-font-size: 10.0pt; = mso-ascii-font-family: Arial; mso-hansi-font-family: Arial } SPAN.GramE { mso-style-name: ""; mso-gram-e: yes } DIV.Section1 { page: Section1 } </STYLE> <!--[if gte mso 10]> <style> /* Style Definitions */=20 table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman";} </style> <![endif]--></HEAD> <BODY lang=3DEN-US style=3D"tab-interval: .5in" vLink=3Dpurple = link=3Dblue> <DIV><SPAN class=3D461265513-10042003><FONT face=3DArial color=3D#0000ff = size=3D2>I=20 would mark up the last line with a <total> element and do a=20 </FONT></SPAN></DIV> <DIV><SPAN class=3D461265513-10042003><FONT face=3DArial color=3D#0000ff = size=3D2></FONT></SPAN> </DIV> <DIV><SPAN class=3D461265513-10042003><FONT face=3DArial color=3D#0000ff = size=3D2><xsl:template match=3D"total"></FONT></SPAN></DIV> <DIV><SPAN class=3D461265513-10042003><FONT face=3DArial color=3D#0000ff = size=3D2> =20 <b> /* However you get your content */ = </b></FONT></SPAN></DIV> <DIV><SPAN class=3D461265513-10042003><FONT face=3DArial color=3D#0000ff = size=3D2></xsl:template></FONT></SPAN></DIV> <DIV><SPAN class=3D461265513-10042003><FONT face=3DArial color=3D#0000ff = size=3D2></FONT></SPAN> </DIV> <DIV><SPAN class=3D461265513-10042003><FONT face=3DArial color=3D#0000ff = size=3D2>Trying=20 to identify the last line from an XSL stylesheet sounds like a bad idea = to=20 me.</FONT></SPAN></DIV> <BLOCKQUOTE dir=3Dltr style=3D"MARGIN-RIGHT: 0px"> <DIV class=3DOutlookMessageHeader dir=3Dltr align=3Dleft><FONT = face=3DTahoma=20 size=3D2>-----Original Message-----<BR><B>From:</B> = [email protected]=20 [mailto:[email protected]]<B>On Behalf Of </B>Yoshida,=20 Ken<BR><B>Sent:</B> Thursday, April 10, 2003 8:27 AM<BR><B>To:</B>=20 '[email protected]'<BR><B>Subject:</B> Last line in = bold.<BR><BR></FONT></DIV> <DIV class=3DSection1> <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20 style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-bidi-font-family: = Arial">I am=20 currently looping through and xml doc in which the last <SPAN = class=3DGramE>line=20 are</SPAN> totals.<SPAN style=3D"mso-spacerun: yes"> </SPAN>How = can I make=20 this line bold?<o:p></o:p></SPAN></FONT></P> <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20 style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-bidi-font-family: = Arial"><o:p> </o:p></SPAN></FONT></P> <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20 style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-bidi-font-family: = Arial">Thanks<o:p></o:p></SPAN></FONT></P> <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20 style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-bidi-font-family: = Arial">Ken<o:p></o:p></SPAN></FONT></P></DIV></BLOCKQUOTE></BODY></HTML> ------=_NextPart_000_003F_01C2FF3F.90FD7F30--