xsl-list
[Top] [All Lists]

RE: for, was max() value of cells in a table

2003-04-16 09:28:52

Used in a straight xsl:value-of, it only returns

that's a feature of xsl:value-of not of for though.
value-of returns the string value of its argument so you never get a
sequence. If you use the xslt2 separator attribute on it though you at
least get the string value of all the terms, separated by whatever you
specified.
Yep. I'm finding that very useful.





In terms of utility, is it the only way to create
a sequence from source content?

no, you could schema-type the content of an element to be a list type,
then you'd get a sequence directly.

What's the syntax for that, I haven't found that as yet.


all path expressions like /a/b/c return sequences in xpath2 
as node sets are no more.

Yes, but I wanted (3,4,5) from xpath expressions,
ie. count(/a/b/c) n times.


but for is the main operation in xquery, taking on the roles of
xsl:for-each and xsl:apply templates, and Xpath2's for is a cut down
version of that, so is in some sense the main sequence 
mapping operation
in the current drafts.

I guess it could get pretty tricky with multiple variables
for $x, $y or whatever.

To come I guess.

regards DaveP

- 

NOTICE: The information contained in this email and any attachments is 
confidential and may be legally privileged. If you are not the 
intended recipient you are hereby notified that you must not use, 
disclose, distribute, copy, print or rely on this email's content. If 
you are not the intended recipient, please notify the sender 
immediately and then delete the email and any attachments from your 
system.

RNIB has made strenuous efforts to ensure that emails and any 
attachments generated by its staff are free from viruses. However, it 
cannot accept any responsibility for any viruses which are 
transmitted. We therefore recommend you scan all attachments.

Please note that the statements and views expressed in this email 
and any attachments are those of the author and do not necessarily 
represent those of RNIB.

RNIB Registered Charity Number: 226227

Website: http://www.rnib.org.uk 

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



<Prev in Thread] Current Thread [Next in Thread>