Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries [Thread Prev] >Thread Next - Re: Vexing problem processing a list of error messages Vexing problem processing a list of error messagesTo: NULL Date: 10/5/2006 10:11:00 AM
I am trying to process a list of error messages of two different types.
They arrive as such:
<message>
<text>A:SOMEERROR</text>
<text>A:SOMEOTHER</text>
<text>B:ANOTHER</text>
<text>A:ANDANOTHER</text>
</message>
The error type is denoted by a code like A or B followed by a colon and
some other descriptor. There can only be 1 type B error, and what I
need to do in pseudocode would be:
{
If there are any A errors, draw a yellow box
for each A error, write the text into the box
end if
If B error, write a bunch of static HTML
}
I am quite stumped as to how to do this, as it involves iterating
through the list once before to find out if there are any type A errors
(ie draw the box), and I am pretty new to XSL, and I don't know whether
to use variables, keys, templates, etc. Any help GREATLY appreciated!
Thanks, Ian
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
