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

using a fancy character for the first letter of a para

Subject: using a fancy character for the first letter of a paragraph
From: "Robert P. J. Day" <rpjday@xxxxxxxxxxxxxx>
Date: Wed, 20 Aug 2003 17:31:52 -0400 (EDT)
 using a fancy character for the first letter of a para
  almost certainly a misunderstanding on my part, but i was perusing
"XSLT (2nd ed)" by kay, and i was puzzled by his template to use a 
fancy letter graphic for the first letter of a paragraph (p. 128):


  <xsl:template match="para">
   <p><img src="fancy{substring(.,1,1)}.gif">
   <xsl:value-of select="substring(.,2)" /></p>
  </xsl:template>


  ignoring any transcription errors on my part, i can see how this
would incorporate a fancy letter graphic for the paragraph's first
letter, but what about the rest of the paragraph?

  if there's more markup (say, with docbook), it would seem
that none of the markup in the rest of the paragraph would be
processed.  stuff like <emphasis> or <firstterm> or stuff like
that since, after that graphic image, all that follows is the
substring of the remaining string value.

  am i missing something here?  or does this snippet above
not deal with further markup in the same paragraph?

rday



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


Current Thread

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.