Subject: Re: [xsl] dynamically applying templates From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Tue, 14 Sep 2004 16:27:37 -0400 |
On Sep 14, 2004, at 2:13 PM, Wendell Piez wrote:
<xsl:template match="cs:reftype"> <xsl:param name="source"/> <xsl:apply-templates> <xsl:with-param name="source" select="."/>
In this case, what exactly is the parameter doing? Are you using this precisely to do the, as you later say, "jumping back and forth between the trees"? So here you're apply-templates to the cs:* elements, and elsewhere to mods:*?
Yes. I'm matching a node in your configuration (the reftype), since its organization and content will drive processing.
OK, am with you.
But I'm passing a reference back to the mods source so that it can be "jumped back to" anytime I need its data.
This is where I'm getting lost. How is this working? I see a param with a cs:reftype template, and then a select of that same element. Where is mods coming in here?
<xsl:apply-templates> <xsl:with-param name="source" select="$source"/> </xsl:apply-template>
This way, not only the content, but also the structure of your cs:reftype can drive processing, without fancy tests.
And this is exactly what I need.
I think I find it hard to wrap my head around the context stuff; it's where I consistently get confused.
Cheers, Wendell
====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================
--+------------------------------------------------------------------ XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/ or e-mail: <mailto:xsl-list-unsubscribe@xxxxxxxxxxxxxxxxxxxxxx> --+--
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] dynamically applying temp, Bruce D'Arcus | Thread | Re: [xsl] dynamically applying temp, Bruce D'Arcus |
RE: [xsl] Namespace problem, Michael Kay | Date | Re: [xsl] XSLT, XHTML, and default , Wendell Piez |
Month |