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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

help about xsl and link 1

Status
Not open for further replies.

folen

Programmer
May 31, 2001
8
IL
i am writing an cite using xml and xsl
and i want to us a link from the xml file but it dont' work
evey thing is fine with the docment all the other xsl workes
but this dosn't:
<a href=&quot;xsl:value-of select= ' link '&quot; text=&quot;red&quot;>
please help
and theess dosn't work eathar:
<a href =&quot;<xsl:value-of select= ' link ' >&quot; text=&quot;red&quot;>
<a href =<xsl:value-of select= ' link ' > text=&quot;red&quot;>

 
i found it rigth here sorry
it's
The best(and only) to do this is make the elements like this :

<xsl:element name=&quot;a&quot;>
<xsl:attribute name=&quot;href&quot;>
<xsl:value-of select=&quot;url&quot;/>
</xsl:attribute>
</xsl:element>

<xsl:element name=&quot;img&quot;>
<xsl:attribute name=&quot;src&quot;>
<xsl:value-of select=&quot;pic.gif&quot;/>
</xsl:attribute>
</xsl:element>
 
another way ;)

<a href={url}/>

you can put any xpath in the curly braces {}
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top