This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Inserting into a href tag


I'm trying to insert a value from an XML file into an href tag, but it is 
not working correctly.

This is the XML file:

<product>
   <prodnum>
      US1234
   </prodnum>
</product>

This value will need to be used in many places, such as this inside my XSL 
file:

<A href="/details/{prodnum}">

...............

<A href="/view={prodnum}">

................

<A href="/expand={prodnum}">

I'm get output that looks like this:

<A href="/details/%0A%20US1234%0A%20"}
<A href="/view=%0A%20US1234%0A%20"}
<A href="/expand=%0A%20US1234%0A%20"}

What am I doing wrong here?  I've tried references like {product/prodnum}, 
but that returns a blank.  Is there something outside of this code that I 
need to declare?

thanks,

chris
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

information about yourself, create your own public profile at 
http://profiles.msn.com.


ly wa



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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]