Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XSL formatting problem

Status
Not open for further replies.

relisys

Programmer
Mar 6, 2003
65
GB
Evening all,

I'm using this XSL template:

<xsl:template match=&quot;todayappointments&quot;>
<xsl:element name=&quot;input&quot;>
<xsl:attribute name=&quot;type&quot;>radio</xsl:attribute>
<xsl:attribute name=&quot;value&quot;><xsl:value-of select=&quot;patient&quot;/></xsl:attribute>
<xsl:attribute name=&quot;name&quot;>patient</xsl:attribute>
<xsl:text>- </xsl:text>
<font color=&quot;green&quot;>

<xsl:text>1 </xsl:text><xsl:value-of select=&quot;patientfirst&quot;/><xsl:text>2 </xsl:text><xsl:value-of

select=&quot;patientsur&quot;/><xsl:text>3 </xsl:text>


<xsl:text> (</xsl:text><b>
<xsl:value-of select=&quot;patient&quot;/></b><xsl:text>) </xsl:text>
</font>
<xsl:text> at </xsl:text><font color=&quot;blue&quot;><xsl:value-of select=&quot;time&quot;/></font>
</xsl:element>
<br/>
</xsl:template>

to give me radio button with &quot;firstname lastname (IDnumber)&quot;

simple huh? thats what i thought... but when it outputs html the space that SHOULD be between the firstname and lastname is put before the firstname so i get

&quot;_firstnamesurname (IDnumber)&quot;
any other spaces are fine

if tried swapping the firstname and space around - no joy

any ideas this is driving me around the bend?

Cheers
 
lol

the area in question should be

<xsl:value-of select=&quot;patientfirst&quot;/>
<xsl:text> </xsl:text>
<xsl:value-of select=&quot;patientsur&quot;/>

The numbers were to help me find out what was going on! It didnt help!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top