xsl-list
[Top] [All Lists]

Re: quikie bout nested xml

2003-05-06 03:00:06
10x guys for the help you were and always have been very helpful

regard luke
 
-------Original Message-------
 
From: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Date: Tuesday, May 06, 2003 11:36:42
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: Re: [xsl] quikie bout nested xml
 
<xsl:attribute name="value"><xsl:value-of select=
current()"/>

I assume you do have the missing " really.

<xsl:value-of select="current()"/>
^

You want just the text node not the whole string value so change that to
<xsl:value-of select="text()"/>

You don't need to use xsl:attribute/xsl:value of at all it just makes
the stylesheet less readable:

<input type="text" name="em" style="width:180" value="{text()}"/>

is all you need.

David

________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

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

GIF image

<Prev in Thread] Current Thread [Next in Thread>