Re: building a link using MSXML(latest)

Subject: Re: building a link using MSXML(latest)
From: Mike Brown <mike@xxxxxxxx>
Date: Thu, 13 Jul 2000 11:05:07 -0600 (MDT)
sixty nine wrote:
> <books>
> 	<book title="XML">
> 		<author>ZZZ</author>
> 	</book>
> 	<book title="ASP">
> 		<author>NNN</author>
> 		<author>MMM</author>
> 	</book>
> </books>
> 
> I need to build a link:
> <a href="book.aspb?b=XML&au=zzz></a>
> <a href="book.aspb?b=ASP&au=nnn></a>
> <a href="book.aspb?b=ASP&au=mmm></a>

You forgot closing quotes.

Unescaped ampersands may be accepted by your browser but HTML
allows/prefers them to be properly escaped, and only the dumbest of
cell phones can't handle seeing &amp; in URIs.

Use this:

<xsl:template match="book">
  <a href="book.aspb?b={@title}&amp;au={author}"/>
</xsl:template>


   - Mike
____________________________________________________________________
Mike J. Brown, software engineer at         My XML/XSL resources:
webb.net in Denver, Colorado, USA           http://www.skew.org/xml/


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread