xml editor

Supported platforms

Compatible with Windows7 & Mac OS X Snow Leopard

Ready for data server software
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

xsl:attribute question


Subject: xsl:attribute question
From: "Richman, Jeremy" <jrichman@xxxxxxxxxxxx>
Date: Mon, 6 Dec 1999 11:51:54 -0500

Clay,

The newlines you have in your stylesheet are part of the template that
is being instantiated.  

Try putting everything into one line, or closing the previous tag on the
next line;
and adding a single space between (or use xsl:text; I've use both in this
example):

     <xsl:attribute name="VALUE"
          ><xsl:text> </xsl:text><xsl:value-of select="/housenumber"
          /> <xsl:value-of select="/streetname"
          /> <xsl:value-of select="/streetsuffix"
     /></xsl:attribute>

Jeremy


Date: Fri, 3 Dec 1999 15:43:22 -0500
From: Clay_Rowland@xxxxxxxxxxx
Subject: xsl:attribute question

<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.


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



Current Thread
XML Editor | XML Author | WYSIWYG Editors | Schema Editor | XSD Documentation | XSL/XSLT Editor | XQuery | XML Databases | SVN Client
© 2002-2011 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy | This website was created & generated with <oXygen/>®XML Editor