Jump to content

XPath Functions: substring


Guest bnew

Recommended Posts

dear all ... I have an inreresting problem - I 'm trying to get the part of the text, the part should end with dot symbol "." I am trying to use this expression: <xsl:value-of select="substring-before(TEXT, ".") /> but I always get the message Required white space was missing. Error processing resource 'file:///D:/Documentum/Export/112929906875031998357/news_presentation.xsl'. Line 86, Position 54 <p><xsl:value-of select="substring-before(TEXT, ".")"/><xsl:text disable---------------------------------------------------------------^output-escaping="yes"><a href="<%=ss1%><%=request.getContextPath()%></xsl:text><xsl:value-of select="$href_fulldoc"/><xsl:text disable-output-escaping="yes">" > подробнее...</a></xsl:text></p>Can anyone help????

Link to comment
Share on other sites

  • 1 month later...
Guest johnnye

use single quotes around the fullstop ie '.'

dear all ... I have an inreresting problem - I 'm trying to get the part of the text, the part should end with dot symbol "." I am trying to use this expression:   <xsl:value-of select="substring-before(TEXT, ".") /> but I always get the message Required white space was missing. Error processing resource 'file:///D:/Documentum/Export/112929906875031998357/news_presentation.xsl'. Line 86, Position 54     <p><xsl:value-of select="substring-before(TEXT, ".")"/><xsl:text disable---------------------------------------------------------------^output-escaping="yes"><a href="<%=ss1%><%=request.getContextPath()%></xsl:text><xsl:value-of select="$href_fulldoc"/><xsl:text disable-output-escaping="yes">" > подробнее...</a></xsl:text></p>Can anyone help????

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...