|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: NullPointerException
Norm:
Maybe I'm completely confused here but if your source has: <paragraph>This is some text <sub>including some subscripted text</sub> and then some more text</paragraph> what you want is as simple as <xsl:template match="paragraph">
<fo:block>
<xsl:apply-templates/>
</fo:block>
</xsl:template><xsl:template match="sub">
<fo:inline baseline-shift="sub">
<xsl:apply-templates/>
</fo:inline>
</xsl:template>with adjustments for your target language (e.g. you haven't actually said you are targetting FO, I just guessed). Now if your source has something more like <paragraph>This is some text & l t ; sub & g t ; including some subscripted text & l t ; /sub & g t ; and then some more text</paragraph> (Note I've introduced extra spaces to work around broken email clients that don't tolerate honest code.) Then things are harder, since what you need is a string-processing language, and XSLT isn't designed for that. (You'd have to walk on your hands to do it.) Which is your case? Sorry to be a nuisance if I haven't understood (yet). Regards, Wendell At 01:04 PM 5/22/2002, you wrote: I did go through the xpath tutorial and I understand that well now. but, that does not help solve my problem. What I am trying to do is to find a way to do subscript and superscript of some text data. The node search code I mailed earlier does contain the proper < and > followed by a semicolon. ( the email system I am using is converting < to < and > to :( ). I am soooo lost and need your help very badly. ====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ====================================================================== XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








