David,

I think your HTML is in mess because you do not use XML/XSLT in a natural way.

Consider the following:

<?xml version="1.0" encoding="ISO-8859-1" ?>
<tag>
    <href>test</href>
</tag>

and

<?xml version="1.0" encoding="ISO-8859-1" ?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="html" encoding="ISO-8859-1"/>
    <xsl:template match="/tag">
        <a href="{href}"/>
    </xsl:template>
</xsl:stylesheet>

I'm sure you HTML would be just fine. I don't like thinks like &gt;test&lt;/A&gt;
if not necessary, but this is nothing but my personal opinion.

Regards,
Petr

David Burry wrote:

> Hi, I'm relatively new to xslt and even newer to this list, so hope this is
> the right place...
>
> Is there a good reason why this xml:
>
> <?xml version="1.0" encoding="ISO-8859-1" ?>
> <tag>
> this is a &lt;A HREF="/"&gt;test&lt;/A&gt;.
> </tag>
>
> plus this xsl:
>
> <?xml version="1.0" encoding="ISO-8859-1" ?>
> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
> <xsl:output method="xml" encoding="ISO-8859-1"/>
> <!-- nothing needed here, since default output is tag contents -->
> <!-- we could also put a template here that contains one of    -->
> <!-- value-of select="." or value-of select="text()"           -->
> <!-- and we'd get the exact same results                       -->
> </xsl:stylesheet>
>
> produces this output:
>
> <?xml version="1.0" encoding="ISO-8859-1"?>
> this is a &lt;A HREF="/">test&lt;/A>.
>
> instead of this output:
>
> <?xml version="1.0" encoding="ISO-8859-1"?>
> this is a &lt;A HREF="/"&gt;test&lt;/A&gt;.
>
> ?????
>
> This kind of behavior is really messing up my HTML, making forms not
> function (i.e. not submit) in IE because of technically badly formatted
> default values, etc...
>
> Dave

--
Petr Cimprich
Ginger Alliance
www.gingerall.com


Reply via email to