Subject: Re: [xsl] Shorthand. From: Abel Braaksma <abel.online@xxxxxxxxx> Date: Thu, 26 Jul 2007 10:52:57 +0200 |
Oh believe me nobody is more aware of the limitations of XSL 1.0 than I am. However, I'm not going to move my web application from Classic ASP to .NET to use Saxon (much as I despise 1.0).
Yeah, my template works perfectly fine but I was just hoping for something more akin a 1.0 version of Angela's 2.0 solution, for pure style and type-ability reasons. If I could just magically go:
<xsl:ajaxLink link='Click Me' href='process.asp' />
I'd be thrilled!
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ajax="http://ajax" extension-element-prefixes="ajax" >
<xsl:template match="/"> <xsl:copy-of select="document("")/*/ajax:link" /> </xsl:template>
Still hoping for a context explanation from you, I haven't seen any reason in your code why you need xsl:call-templates. "Generating them" says as much to me as it would when you explain what exactly you are doing with ASP and you tell me "generating web pages". I am under the impression that you are taking the wrong approach and I would like to help you with it, but you're not making it easy. Whether you use apply-templates or call-template, has nothing to do with 'transforming links' either, I wouldn't have a clue of what that could mean (xslt for one cannot transform links, it can only transform an input tree of nodes).
I can't really use apply-templates (a la Grand Mr. Welch) because I'm not transforming links with XSL, I'm generating them.
Cheers, -- Abel Braaksma
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Shorthand., Steve | Thread | Re: [xsl] Shorthand., Steve |
Re: [xsl] Allowing users to upload , bryan rasmussen | Date | [xsl] ANN: Syntext Releases Xsl-Sta, Syntext, Inc. |
Month |