Re: [xsl] Referencing XML fragments in a XSLT parameter?

Subject: Re: [xsl] Referencing XML fragments in a XSLT parameter?
From: David Carlisle <davidc@xxxxxxxxx>
Date: Mon, 29 Jan 2007 14:10:44 GMT
> I could pass the dom into a param, but how to reference it?

do you mean how to reference it from within the stylesheet?
Just use $paramname.

<xsl:param name="otherdoc"/> <!-- pass in document node from outside -->

...

<xsl:apply-templates select="$otherdoc/some/path/to/somewhere"/>

...



David

Current Thread