[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
Once again, I know I'm missing something obvious. Could somebody wiser put me out of my misery?
If I have xml:
and wish to obtain result:
I can use tokenize() to split the strings at the semicolon, but how can I then use the result in a for-each-group group-by procedure to output the unique values?
[xsl] tokenize(), grouping problem
Subject: [xsl] tokenize(), grouping problem From: Jon Crump <jjcrump@xxxxxxxxxxxxxxxx> Date: Fri, 22 Apr 2005 15:07:48 -0700 (PDT) |
Once again, I know I'm missing something obvious. Could somebody wiser put me out of my misery?
If I have xml:
<data> <record> <subjects>subj1; subj2; subj3</subjects> </record> <record> <subjects>subj4; subj1; subj5</subjects> </record> <record> <subjects>subj3; subj6; subj5</subjects> </record> </data>
and wish to obtain result:
<data> <subject>subj1</subject> <subject>subj2</subject> <subject>subj3</subject> <subject>subj4</subject> <subject>subj5</subject> <subject>subj6</subject> </data>
I can use tokenize() to split the strings at the semicolon, but how can I then use the result in a for-each-group group-by procedure to output the unique values?
__________ J.J. Crump Dept. of History 353560 University of Washington Seattle, WA. 98195
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Stumbling with xxx:node-set (, Karl Stubsjoen | Thread | Re: [xsl] tokenize(), grouping prob, David Carlisle |
[xsl] Stumbling with xxx:node-set (, Karl Stubsjoen | Date | Re: [xsl] tokenize(), grouping prob, David Carlisle |
Month |