[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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@xxxxxxxxxxxxxx> To: "XSL-List" <XSL-List@xxxxxxxxxxxxxxxxxxxxxx> Sent: Wednesday, January 03, 2001 2:06 PM Subject: 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|