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

RE: attribute question

Subject: RE: attribute question
From: "Richard Lander" <rlander@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 3 Dec 1999 16:05:17 -0500
RE: attribute question
 Clay,

<xsl:text> </xsl:text> might work.

Richard.

-----Original Message-----
From: owner-xsl-list@xxxxxxxxxxxxxxxx
[mailto:owner-xsl-list@xxxxxxxxxxxxxxxx]On Behalf Of
Clay_Rowland@xxxxxxxxxxx
Sent: Friday, December 03, 1999 3:43 PM
To: xsl-list@xxxxxxxxxxxxxxxx
Subject: xsl:attribute question




i would like to set a hidden input attribute value using an xsl stylesheet
and
an xml document.  the hidden input is an address.  my problem is that the
adress
is made up of three pieces of xml data.

<housenumber>111</housenumber>
<streetname>Main</streetname>
<streetsuffix>St.</streetsuffix>

if i do this:

<input type="hidden" name="Address">
     <xsl:attribute name="VALUE">
          <xsl:value-of select="/housenumber"/><xsl:value-of
select="/streetname"/><xsl:value-of select="/streetsuffix"/>
     </xsl:attribute>
</input>

the output is this:  111MainSt.

if i do this:

<input type="hidden" name="Address">
     <xsl:attribute name="VALUE">
          <xsl:value-of select="/housenumber"/>
          <xsl:value-of select="/streetname"/>
          <xsl:value-of select="/streetsuffix"/>
     </xsl:attribute>
</input>

the output is this:

111
Main
St.

if i put spaces betwee the xsl:value-of tags, the output is on three lines
as
well.  does anyone know how i can get the data to look like this:

111 Main St.


thanks.



 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.