[thelist] XML XSLT and url outputting

Nicole Parrot nicole at parrot.ca
Thu Jan 17 10:47:37 CST 2002


I'm fighting with my first ever from scratch XML project here so this is
probably a beginner question, even though it's stopped me for the last 2
days. I got most of it working so far, except transforming some XML data
into a standard URL.

I have
<xsl:template match="event">
   <a href=".">
   <xsl:value-of select="@url"/>
   <xsl:value-of select="."/>
   </a>
</xsl:template>

to display the proper values if not the proper form, but of course what I
would really want is

<xsl:template match="event">
   <a href="<xsl:value-of select="@url"/>">
   <xsl:value-of select="."/>
   </a>
</xsl:template>

which dies a quick death and won't render at all.
>>
The stylesheet does not contain a document element. The stylesheet may be
empty, or it may not be a well-formed XML document.
<<

Anyone knows my way out of this?

Thanks for any help.
Nicole






More information about the thelist mailing list