The Reverend
07-15-2006, 12:06 AM
I'm new to XML and XSL, I've been doing this about 24 hours so far.
I'm making an XSL template to organize a listing type directory.
<item>
<name>John</name>
<email>john@example.com</email>
<website>example.com</website>
<phone contactname="James">408-555-5555</phone>
</item>
I'm trying to take the website in the template and change it into a url. But doing it like this
<a href="<xsl:value-of select="website" />"><xsl:value-of select="website" /></a>
produces an error.
What is the proper way to do this?
second question:
How do I include html entities? produces an error message.
I'm making an XSL template to organize a listing type directory.
<item>
<name>John</name>
<email>john@example.com</email>
<website>example.com</website>
<phone contactname="James">408-555-5555</phone>
</item>
I'm trying to take the website in the template and change it into a url. But doing it like this
<a href="<xsl:value-of select="website" />"><xsl:value-of select="website" /></a>
produces an error.
What is the proper way to do this?
second question:
How do I include html entities? produces an error message.