Subject: RE: building a link... does not work From: "Bjorn Boxstart" <bboxstart@xxxxxxxxxxxxx> Date: Thu, 13 Jul 2000 15:46:51 +0200 |
I think it indeed doesn't support that (I tried some examples, none of them work). you can however use the following: <xsl:template match="book"> <a> <xsl:attribute name="href>books.asp?b=<xsl:value-of select="@title"/></xsl:attribute> <xsl:value-of select="@title/> </a> hope this works, regards, Bjorn -----Original Message----- From: owner-xsl-list@xxxxxxxxxxxxxxxx [mailto:owner-xsl-list@xxxxxxxxxxxxxxxx]On Behalf Of sixty nine Sent: Wednesday, July 12, 2000 5:51 PM To: xsl-list@xxxxxxxxxxxxxxxx Subject: RE: building a link... does not work Hi, thank for reply. You wrote: <xsl:template match="book"> <a hef="books.asp?b={@title}"><xsl:value-of select="@title"/></a> </xsl:template> I thought the same way, but as result a got link 'Shortcut to books.asp?b={@title}' in status bar. Maybe, MSXML (latest) cannot evaluate {@title}? Gene. >From: "DuCharme, Robert" <Robert.DuCharme@xxxxxxxxxx> >Reply-To: xsl-list@xxxxxxxxxxxxxxxx >To: "'xsl-list@xxxxxxxxxxxxxxxx'" <xsl-list@xxxxxxxxxxxxxxxx> >Subject: RE: building a link... >Date: Tue, 11 Jul 2000 18:00:40 -0400 > > > <book title="XML"> > > > > to > > > > <a href='books.asp?b=XML'>XML</a> > > <xsl:template match="book"> > <a hef="books.asp?b={@title}"><xsl:value-of select="@title"/></a> > </xsl:template> > >Bob DuCharme www.snee.com/bob <bob@ >snee.com> see www.snee.com/bob/xmlann for "XML: >The Annotated Specification" from Prentice Hall. > > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list ________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: building a link... does not wor, sixty nine | Thread | Re: building a link... does not wor, David Carlisle |
Re: deal with a string in XSL, David Carlisle | Date | Building, sixty nine |
Month |