Subject: Re: [xsl] Using xsl:value-of select in a form input textbox From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Thu, 11 Mar 2004 18:25:43 -0500 |
Hi,
I am new to XSLT and am trying to parse an XML string containing a phone number into 3 strings - the area, prefix, and suffix. (This XML string is coming from a database.) I want to display the substrings in separate textboxes. Here is what I have so far:
<!-- THIS CURRENTLY PUTS THE ENTIRE EVENINGPHONE IN THE TEXTBOX --> <!-- WHICH I DO NOT WANT --> <input type="text" name="txtHPhone" size="20" maxlength="10" value="{UPDATEADDRESS/RECEIVER/ADDRESS/EVENINGPHONE}" />
<!-- THIS SUCCESSFULLY DISPLAYS THE AREA OF EVENINGPHONE --> <xsl:value-of select="substring(UPDATEADDRESS/RECEIVER/ADDRESS/EVENINGPHONE,1,3)" />
<!-- INSTEAD, WHAT value WOULD GO IN HERE: --> <input type="text" name="txtHPhoneAREA" size="20" maxlength="10" value="" />
<input type="text" name="txtHPhoneAREA" size="20" maxlength="10" value="{substring(UPDATEADDRESS/RECEIVER/ADDRESS/EVENINGPHONE,1,3)}" />
<input type="text" name="txtHPhoneAREA" size="20" maxlength="10" value="{substring(.,1,3)}" />
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 ======================================================================
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Using xsl:value-of select in , Thorne, Kares | Thread | [xsl] Rotated Tables, Dan Vint |
RE: [xsl] Is exclude-result-prefixe, Michael Kay | Date | [xsl] Rotated Tables, Dan Vint |
Month |