|
Subject: RE: [xsl] A parameter current context or context passed From: "Michael Kay" <mike@xxxxxxxxxxxx> Date: Fri, 13 May 2005 20:35:37 +0100 |
> This should be an easy one... > > I have the following paramter: > <xsl:param name="current" select="/ | current()"/> > > As the name implies it should be the current context unless otherwise > specified. Have I written this correct? I think you just want <xsl:param name="current" select="."/> current() means the same as "." unless it appears in a predicate. / | . is the union of the context node and the root node of the tree containing the context node. I can't see any reason why you should want that union as the default value of a parameter. Michael Kay http://www.saxonica.com/
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] A parameter current conte, JBryant | Thread | Re: [xsl] A parameter current conte, Karl Stubsjoen |
| Re: [xsl] A parameter current conte, JBryant | Date | Re: [xsl] A parameter current conte, Karl Stubsjoen |
| Month |