Forum Moderators: open

Message Too Old, No Replies

Using XSL to add XML Data Item to URL String

<a href='#<XML DATA>'>How?</a>

         

Argblat

5:28 pm on Feb 13, 2006 (gmt 0)

10+ Year Member



My XML File Looks Something like this:


<glossary>
<entry>
<term>Apple</term>
<definition>A red fruit</definition>
</entry>
<entry>
<term>Banana</term>
<definition>A yellow fruit</definition>
</entry>
</glossary>

What I don't know how to do as an XML/XSL noob is to transform this data into the following:


<a name='Apple'>Apple</a>
<a name='Banana'>Banana</a>

So that I can create an anchor system....

Can someone please enlighten me?

Thank you
-Mike

Iguana

11:28 am on Feb 14, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I think you need to have a look at w3schools xsl tutorial. I don't mean to be dismissive, but it's a very simple pice of xsl transformation. You should have your answer after the first few lessons.