- From: Sam Steingold <sds@gnu.org>
- Date: Sat, 27 Aug 2005 18:39:22 -0400
- To: www-xsl-fo@w3.org
How do I re-apply a template - without re-processing the whole file again? e.g., I have <filename role="unix">stdio.h</filename> and I want to turn it into a link to the SUS doc: <xsl:template match="filename[@role='unix']"> <a class="{@role}" href="{$unix.top}basedefs/{translate(.,'/','')}.html" ><<xsl:apply-imports/>></a> </xsl:template> the above works, but "<>" are not formatted as <filename>. I want something like this: <xsl:template match="filename[@role='unix']"> <a class="{@role}" href="{$unix.top}basedefs/{translate(.,'/','')}.html" ><xsl:call-template name="filename"><<xsl:value-of select="."/>></xsl:call-template></a> </xsl:template> unfortunately, the default "filename" template does not have a name(?): runtime error: file common.xsl line 40 element call-template xsl:call-template : template filename not found so, what should I do? (I would rather not process the file twice) -- Sam Steingold (http://www.podval.org/~sds) running w2k <http://www.iris.org.il> <http://truepeace.org> <http://ffii.org/> <http://www.openvotingconsortium.org/> <http://www.camera.org> Trespassers will be shot. Survivors will be prosecuted.
Received on Sunday, 28 August 2005 03:06:13 UTC