
April 16th, 2003, 07:18 PM
|
|
Junior Member
|
|
Join Date: Jun 2001
Location: L.A.
Posts: 4
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
how to create XHTML markup with XSL?
Okay I figured out the issue below of getting the attribute from the tag - but how do I create an HTML tag.
Say again I have this XML:
<para>yada yada yada <link url="http://jeof.net">bla bla</link></para>
and this XSL gives me the *data* i want:
<xsl:template match="p//link">
<xsl:value-of select="@url"/>
<xsl:value-of select="."/>
</xsl:template>
how do I take the data of the url attribute and successfully create a anchor XHTML markup to turn it into a link? so that it would be like:
<a href="<xsl:value-of select="@url"/>" title="link">bla bla</a>
Make sense?
I'm getting errors from Sablotron (doing this with PHP) with trying to output that XHTML markup.
thanks
jeof
|