Subject: Re: [xsl] Dumb HTML <A> question From: Jim Hopp <jhopp@xxxxxxxxxxx> Date: Wed, 03 Jan 2001 14:39:15 -0800 |
<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@xxxxxxxxxxxxxx> To: "XSL-List" <XSL-List@xxxxxxxxxxxxxxxxxxxxxx> 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@xxxxxxxxxxxxxx > 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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Dumb HTML <A> question, Jack A. Zucker | Thread | Re: [xsl] Dumb HTML <A> question, Mike Brown |
[xsl] Dumb HTML <A> question, Jack A. Zucker | Date | [xsl] Re: Time for an XDE?? (JDE fo, Paul Kinnucan |
Month |