Subject: RE: attribute question From: sara.mitchell@xxxxxxxxx Date: Fri, 3 Dec 1999 16:41:32 -0500 |
Yes, you can insert text using the <xsl:text> element. So something like this should work: ... <xsl:value-of select="/housenumber"/><xsl:text> </xsl:text><xsl:value-of select="/streetname"/><xsl:text> </xsl:text><xsl:value-of select="/streetsuffix"/>... > -----Original Message----- > From: Clay_Rowland@xxxxxxxxxxx [mailto:Clay_Rowland@xxxxxxxxxxx] > Sent: Friday, December 03, 1999 8: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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
xsl:attribute question, Richman, Jeremy | Thread | RE: attribute question, Kay Michael |
RE: attribute question, Richard Lander | Date | Re: Stylesheet optimisation, Ray Cromwell |
Month |