This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: apostrophe in paramter causing output problems


doing a little testing im seeing the same error
when i use "foo's" as input.

  msxml3.dll error '80004005' 
  Expected token 'eof' found 'NAME'. 'foo'-->s<--' 

<td>
  <xsl:variable name="myNewString"/>
  <xsl:variable name="q">'</xsl:variable>

  
  <xsl:call-template name="SubstringReplace">
    <xsl:with-param name="stringIn" select="$Description" /> 
    <xsl:with-param name="substringIn">$q</xsl:with-param>
    <xsl:with-param name="substringOut">\'</xsl:with-param>
  </xsl:call-template>
								
  <xsl:value-of select="$myNewString" /> 
  <input name="txtDescription" size="60" value=""/>
</td>


i did change the substringIn to "1" and substringOut
to "2" and it did manage to make mulitple replacements
when i had a string like "1111". so that part works.

jeremy

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]