[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: [xsl] Replacing portion of element name


Subject: RE: [xsl] Replacing portion of element name
From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx>
Date: Mon, 24 Nov 2003 15:43:11 -0500

Note that in the solution,

<xsl:value-of select="substring-before($myvar1,' s')"/>'s<xsl:value-of
select="substring-after($myvar1,'s')"/>

An input string of the form


"An input string"

will come out (when $myvar1 is an apostrophe)

"An input'string"

This is why having a good tight set of rules is so important - Jim's rule works for the sample given, but you need a rule that works for your data (actual or potential).

Cheers,
Wendell



======================================================================
Wendell Piez                            mailto:wapiez@xxxxxxxxxxxxxxxx
Mulberry Technologies, Inc.                http://www.mulberrytech.com
17 West Jefferson Street                    Direct Phone: 301/315-9635
Suite 207                                          Phone: 301/315-9631
Rockville, MD  20850                                 Fax: 301/315-8285
----------------------------------------------------------------------
  Mulberry Technologies: A Consultancy Specializing in SGML and XML
======================================================================


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




Current Thread
Keywords
xml