This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Dumb HTML <A> question


<A href="{.}"/A> should work.  The "{}" is called an attribute value
template, and is quite handy for specifying the value of an attribute in a
literal result element (an element that's not an XSL instruction - it
doesn't start with 'xsl:'>

A good online introduction is
http://www.ibiblio.org/xml/books/bible/updates/14.html and there are others;
if you're willing to invest in a book I strongly recommend "XSLT
Programmer's Reference" by Mike Kay.

-Jim
----- Original Message -----
From: "Jack A. Zucker" <jaz@jackzucker.com>
To: "XSL-List" <XSL-List@lists.mulberrytech.com>
Sent: Wednesday, January 03, 2001 2:06 PM
Subject: [xsl] Dumb HTML <A> question


> I'm dynamically generating links in html from my xsl processing using the
> following code:
>
> <xsl:template match="HelpFile">
>   <xsl:element name="A">
>     <xsl:attribute name = "href" ><xsl:value-of select="."
> /></xsl:attribute>Help
>   </xsl:element>
> </xsl:template>
>
> This works fine but seems to be a bit terse. Is there a simpler way to do
> this other than building the <A> and @href nodes programmatically?
>
> The other issue is not really related to xml/xsl but is a html help issue.
> My actual link is to a .chm file which is registered to point to hh.exe
(the
> microsoft html help executable). The link works fine but I want to be able
> to specify a help topic to the html help engine and not just come up on
the
> default topic, but I don't seem to be able to do it from the hot link.
Other
> than instantiating the html active x control and talking to it through
> script, have any of you guys gotten it to work?
>
> Sorry about the off topic question.
>
> -Jaz
>
> Email: jaz@jackzucker.com
> Jazz Guitar Site: http://www.jackzucker.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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]