Indeed I can use the variable in the stylesheet as described below by Philip but I failed to anticipate that I have to use the variable INSIDE of another tag, that is, I have a variable foo that represents a filename and I have to use it as follows:
[cinclude:include src="foo.xml"] I'm assuming I can't nest a xsl:value-of tag inside of a cinclude:include tag...how would I render this value in this manner? Thanks, David --- Philipp Burkert <[EMAIL PROTECTED]> wrote: > Hi, > > > I thought this would be easy...I'm trying to pass a variable > > defined in the Sitemap, and retrieve it in the Stylesheet. > > first you have to handle the parameter to the transformer within the > sitemap. > > ---sitemap-- > <map:match pattern="*/show.html"> > <map:generate src="xmldb:xindice-embed:///db/beschlusslage/"/> > <map:transform type="xslt" src="xslt/antrag2html.xslt"> > <map:parameter name="oid" value="{1}"/> > </map:transform> > .... > ------------ > > Then you have to > - declare the parameter in the xslt > - and output it later with the $varname syntax > > ---xslt-- > <xsl:stylesheet version="1.0" > xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> > <xsl:output method="xml" version="1.0" encoding="UTF-8" > indent="yes"/> > <xsl:param name="oid"/> > ... > <xsl:template match="meta" name="antrag"> > <xsl:value-of select="$oid"/> > ... > ------------ > > Hope that helps > > PHILIPP BURKERT > [EMAIL PROTECTED] > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > __________________________________ Do you Yahoo!? Yahoo! Tax Center - File online by April 15th http://taxes.yahoo.com/filing.html --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]