|
Subject: [xsl] Need help with apply-templates to set variables From: Brad Cox <bcox@xxxxxxxxxxxxxxxxx> Date: Sun, 3 Feb 2002 13:35:50 -0500 |
<xsl:template match="page">
<xsl:variable name="body">
#parse("vel/macros.vel")
#taskOpening("@ident")
<xsl:apply-templates select="*"/>
#taskClosing("@ident")
</xsl:variable>
PageText{<xsl:value-of select="$body"/>}
<xsl:value-of select="task:addPage($task, @ident, $body)" />
</xsl:template><task ident="HelloWorld"> <page ident="LoremIpsem"> <p>Foo</p> </page> </task>
<?xml version="1.0"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:task="edu.virtualschool.model.Task" extension-element-prefixes="task" exclude-result-prefixes="java" > <xsl:output method="html"/> <xsl:param name="task">null</xsl:param>
<xsl:template match="page">
<xsl:variable name="body">
#parse("vel/macros.vel")
#taskOpening("@ident")
<xsl:apply-templates select="*"/>
#taskClosing("@ident")
</xsl:variable>
PageText{<xsl:value-of select="$body"/>}
<xsl:value-of select="task:addPage($task, @ident, $body)" />
</xsl:template><xsl:template match="*">
<p>CopyOf{<xsl:copy-of select="."/>}</p>
</xsl:template>| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| RE: [xsl] Namespace wildcards, Elliotte Rusty Harol | Thread | Re: [xsl] Need help with apply-temp, Trevor Nash |
| Re: [xsl] Algoritm for this Hierarc, Joerg Heinicke | Date | Re: [xsl] Need help with apply-temp, Trevor Nash |
| Month |