C
carlosramirez
I'm just starting with XSLT and I'm having problems generating links.
Here's a snippet of my xml file:
users.xml
<users>
<user>
<name>User1</name>
<email>[email protected]</email>
</user>
....
</users>
My XSL file is as follows:
<xsl:for-each select="users/user">
<a href="<xsl:value-of select="email" />"><xsl:value-of
select="email"/></a>
</xsl:for-each>
I keep getting the error "XML Parsing Error: not well-formed" at the
line number that contains the email.
My question, how can I generate the following string: <a
href="mailto:$email">$email</a>
Thanks.
-Carlos
Here's a snippet of my xml file:
users.xml
<users>
<user>
<name>User1</name>
<email>[email protected]</email>
</user>
....
</users>
My XSL file is as follows:
<xsl:for-each select="users/user">
<a href="<xsl:value-of select="email" />"><xsl:value-of
select="email"/></a>
</xsl:for-each>
I keep getting the error "XML Parsing Error: not well-formed" at the
line number that contains the email.
My question, how can I generate the following string: <a
href="mailto:$email">$email</a>
Thanks.
-Carlos