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

Access to string/variables per character

Subject: Access to string/variables per character
From: Frederic Schwebel <schwebel@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 2 Dec 1999 09:46:40 +0100 (MET)
access string variables
Hello,

I'm trying to linearize MathML equations into a string for blind people to
be able to read it. Here's an exctract of my stylesheet :
[...]
<xsl:template match="math">
	<B>Equation : </B>
        <P>
	<xsl:variable name="copy99">
            <xsl:apply-templates select="@*|node()"/>
	</xsl:variable>
	<xsl:value-of select="$copy99"/>
	</P>
</xsl:template>
[...]

the variable copy99 contains the "raw" linearized MathML equation, and I'd
like to remove or add some characters inside this string : spaces, ( and
)... So there must be a possibility with <xsl:for-each , concat,
substring-before and after, but I can't find any example or explanation
dealing with it... is xsl:for-each only for elements ? How do I access
each char of copy99 ? copy99[1], copy99[2]... ?

Thanks in advance for your reply
Frederic SCHWEBEL


 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.