[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Dumb HTML <A> question

Subject: Re: Dumb HTML <A> question
From: Mike Brown <mike@xxxxxxxx>
Date: Wed, 3 Jan 2001 16:27:35 -0700 (MST)
microsoft html help executable download
Jack A. Zucker wrote:
> 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?

I think you're confused about what "terse" means :)
What you have is verbose. You want something terse, like this:

<xsl:template match="HelpFile">
  <A href="{.}">Help</A>
</xsl:template>

There are times when verbose syntax is more desirable, such as:

  - when the attribute itself, not just its value, is optional
  - when trying to avoid having namespace nodes copied to the result tree

It's funny that you asked this question, because most people learn the
terse syntax and have to be taught the longhand.

> 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

It took me about 3 minutes of searching on msdn.microsoft.com to find this:

http://msdn.microsoft.com/library/tools/htmlhelp/wkshp/faq.htm#7

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


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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.