Loading ...
Sorry, an error occurred while loading the content.

Re: url wrapping

Expand Messages
  • gjlloyd
    THANKS! thats EXACTLY what i needed. you have ended many hours of misery. G ... (UBL) ... Kong ... while ... ... this thread. ...
    Message 1 of 5 , May 19 8:11 AM
    • 0 Attachment
      THANKS!

      thats EXACTLY what i needed. you have ended many hours of misery.

      G

      --- In XSL-FO@yahoogroups.com, "G. Ken Holman" <gkholman@c...> wrote:
      > At 2004-05-19 03:04 +0000, gjlloyd wrote:
      > >yes, this does help, and yes i'm using a recursive template, but have
      > >been unable to get it to behave as desired. do you have a code snippet
      > >handy for this task?
      >
      > Below is a snippet from my work on the Universal Business Language
      (UBL)
      > project.
      >
      > I hope you can use it to suit you.
      >
      > ............................... Ken
      >
      > p.s. I'm just going off-line for 72 hours while traveling from Hong
      Kong
      > back to Canada so I won't be able to respond to any posts for a
      while ...
      > if you continue to have problems perhaps someone else can pick up
      this thread.
      >
      > ...
      > <xsl:call-template name="replace">
      > <xsl:with-param name="string" select="."/>
      > <xsl:with-param name="old" select="'/'"/>
      > <xsl:with-param name="new"
      select="'/​'"/><!--zero-width space-->
      > </xsl:call-template>
      > ...
      >
      >
      <!--========================================================================-->
      >
      > <!--replace all occurrences of $old by $new in $string-->
      > <xsl:template name="replace">
      > <xsl:param name="string"/>
      > <xsl:param name="old" select="'????????'"/>
      > <xsl:param name="new"/>
      > <xsl:choose>
      > <xsl:when test="contains( $string, $old )">
      > <xsl:value-of select="substring-before( $string, $old )"/>
      > <xsl:value-of select="$new"/>
      > <xsl:call-template name="replace">
      > <xsl:with-param name="string"
      > select="substring-after( $string, $old )"/>
      > <xsl:with-param name="old" select="$old"/>
      > <xsl:with-param name="new" select="$new"/>
      > </xsl:call-template>
      > </xsl:when>
      > <xsl:otherwise>
      > <xsl:value-of select="$string"/>
      > </xsl:otherwise>
      > </xsl:choose>
      > </xsl:template>
      >
      >
      > --
      > Public courses: Spring 2004 world tour of hands-on XSL instruction
      > Next: 3-day XSLT/XPath; 2-day XSL-FO - Birmingham, UK June 14,2004
      >
      > World-wide on-site corporate, govt. & user group XML/XSL training.
      > G. Ken Holman mailto:gkholman@C...
      > Crane Softwrights Ltd. http://www.CraneSoftwrights.com/f/
      > Box 266, Kars, Ontario CANADA K0A-2E0 +1(613)489-0999 (F:-0995)
      > Male Breast Cancer Awareness http://www.CraneSoftwrights.com/f/bc
      > Legal business disclaimers: http://www.CraneSoftwrights.com/legal
    Your message has been successfully submitted and would be delivered to recipients shortly.