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

Re: RE: Replacing the space character with another ch

Subject: Re: RE: Replacing the space character with another character
From: "Mark Peters" <flickrmeister@xxxxxxxxx>
Date: Mon, 14 May 2007 07:31:27 -0400
Re:  RE: Replacing the space character with another  ch
Do you mean I should literally include the following template?

<xsl:template match="indexterm">
   <indexterm>
    old[<xsl:value-of select=".)"/>]
    new[<xsl:value-of select="translate(.,'&#x20;','&#x26;')"/>]
  </indexterm>
 </xsl:template>


I added it, and Xalan produced an error:


SystemId Unknown; Line #20; Column #37; XSLT Error (javax.xml.transform.Transfor
merConfigurationException): javax.xml.transform.TransformerException: javax.xml.
transform.TransformerException: Extra illegal tokens: ')'

Thanks,
Mark


On 5/14/07, David Carlisle <davidc@xxxxxxxxx> wrote:

> > > <xsl:template match="indexterm"> > > > <indexterm> > > > <xsl:value-of select="translate(.,'&#x20;','&#x26;')"/> > > > </indexterm> > > > </xsl:template> > > >

are you sure that that template is ever being executed?, add
<xsl:message>I am here</xsl:message>
or change it to

<xsl:template match="indexterm">
     <indexterm>
      old[<xsl:value-of select=".)"/>]
      new[<xsl:value-of select="translate(.,'&#x20;','&#x26;')"/>]
    </indexterm>


it may be that a higher priority template is being executed, or it's a namespace issuee, or....

David

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.