David: sorry about the typos...
Ok, and sorry for beating this into the ground but a parameter who
shall be evaluated as a node-list must have been defined like this:
<xsl:param name="my_param" select="()"/>
Where the "()" select will evaluate to an empty sequence when none was
supplied. I understand that it could be any valid xpath expression.
If defined like this:
<xsl:param name="my_param" select="/"/>
Or this:
<xsl:param name="my_param" select="."/>
And the param "my_param" is not supplied you will end up with a copy
of the document source "/" or current context "." (respectively). Do
I have this correct?
$match is:
<match>A</match>
<match>B</match>
$match is a parameter for one of my templates. The intent of the
template: SELECT ALL -or- SELECT ALL where @component = $match.
In this example:
<xsl:template match="X[(_at_)component=$match] | X[not(@component=$match)]"/>
Select ALL X elements who's @component is one of the $match elements
-OR- when $match does not exist, SELECT ALL. Is that not what the
above template match yields?
Karl..
On 6/8/05, David Carlisle <davidc(_at_)nag(_dot_)co(_dot_)uk> wrote:
A line got deleted by miostake!
<xsl:template match="X[(_at_)component=$match] |
X[not(@component=$match)]"/>
but that is just a long way of writing
<xsl:template match="X"/>
________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________
--~------------------------------------------------------------------
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(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--
--~------------------------------------------------------------------
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(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--