On Thu, Nov 30, 2000 at 07:16:46PM +0000, Andrej Pietschker wrote:
>
> this template produces the desired result.
> --
>
> <xsl:template match="people">
> <html><head>
> <title>Test</title>
> </head>
> <body>
> <UL>
> <xsl:for-each select="person">
> <LI><A HREF="/homepage/?id={id}"><xsl:value-of select="name"/></A></LI>
> </xsl:for-each>
> </UL>
> </body>
> </html>
> </xsl:template>
>
> --
> I have tested it with sablotron 0.44 on solaris.
Yes, it works for the simple cases. But please consider
<people>
<person><id>243&id=90</id><name>John</name></person>
</people>
and your stylesheet. The output will be
<LI><A HREF="/homepage/?id=243&id=90">John</A></LI>
which is obviously not something you want because it makes two id's
with values 243 and 90, not one id with value 243&id=90.
And the question is: how do you achieve the output
<LI><A HREF="/homepage/?id=243%26id%3D90">John</A></LI>
?
--
------------------------------------------------------------------------
Honza Pazdziora | [EMAIL PROTECTED] | http://www.fi.muni.cz/~adelton/
.project: Perl, mod_perl, DBI, Oracle, auth. WWW servers, XML/XSL, ...
------------------------------------------------------------------------