0

Let's say I have this xml file

<myxml> <section name="AAA"> <Title>TEST</Title> <Log>\\PC\log.log</Log> <Data>1267</Data> </section> </myxml> 

Now I'm trying to use xsl file so I will have a reference with the Title as the text displayed and Log as the link. I tried using these but can't make this work together

<xsl:attribute name="href"> <xsl:value-of select="myxml/AAA/Title"/> 

Thanks.

1 Answer 1

1

Use a template

<xsl:template match="section"> <a href="{Log}"> <xsl:value-of select="Title"/> </a> </xsl:template> 
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.