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

RE: Replacing portion of element name

Subject: RE: Replacing portion of element name
From: "Boyd, Eddie" <eddie.boyd@xxxxxxx>
Date: Tue, 25 Nov 2003 04:13:26 -0800
rule portion xml
Thanks, there is definitely a typo in my element name, it should be
<commander_s_tracked_station_list>.  You are right that Jim's rule will work
with the example given, but may alter other instances.  I may just have to
wait for XSL 2.0 (if it will have the capability I need), or use an
extension. Thanks.

-----Original Message-----
From: Wendell Piez [mailto:wapiez@xxxxxxxxxxxxxxxx]
Sent: Monday, November 24, 2003 3:43 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: RE:  Replacing portion of element name


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

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


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.