cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "J.Pietschmann" <j3322...@yahoo.de>
Subject Re: Is it possible to process multiple value parameter in XSL?
Date Mon, 01 Apr 2002 15:05:37 GMT
Vadim Gritsenko wrote:
>>From: KOZLOV Roman [mailto:r-kozlov@opencascade.com]
>>Is it possible to process multiple value parameter in XSL under Cocoon
>>2.01?
> FWIW, I could say that this is offtopic and should be discussed in the
> context of W3C XSLT spec. As far as I understand, <xsl:param/> you use
> to declare parameters passed into stylesheet should (or must) have
> unique name, so you will be able to pass only first (or last) value.

Most processors can take a node set as parameter.
Unfortunately, there is no standard for how to do this,
in general it requires instantiation of processor specifc
data types. Even more unfortunate for the problem at hand,
having a node set consisting of text nodes only is a
conceptual no-no, and wrapping it with some markup will
also meet resistance.
Note that the XSLT standard does not deal with the details
of passing parameters. In particular, it does not state
that only strings can be passed as parameters. It only
states how parameters have to be declared, and how the
passed values are accessed.

> However, if you write custom action or matcher, you could create sitemap
> parameter "mytst" with the value "002,004,005", pass it to the
> stylesheet, and tokenize there.

Note that tokenizing in XSLT 1.0 is hard. It is recommended
to look at processor extensions or libraries like EXSLT or
FXSLT. For details, the XSL list, its archives and/or the
XSL FAQ at http://www.dpawson.co.uk/ should be consulted.


Regards,
J.Pietschmann



---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message