xsl-list
[Top] [All Lists]

Re: [xsl] small grouping task

2009-02-26 15:58:02

>> > 2), the other making the assumption that each list item is all of the content (except <br/>) that follows each <input/>
>> Correct.  But the first <br/>  Not more.
>
> Okay ... but are you sure there will always be at least one?

Yes

And actually,
While in the list, there will be only one <br/> per list item, the closing one.
List items are always defined by a <input>....<br/> pair.
There will not be extra <br/>'s while in the list.
There will not be anything but whitespace between list items.
I didn't realize the value of making these statement until now, or the validity of them. Thanks for the questions.

Also, there will _not_ be two lists in a <p class="problem">.........</p>


>> Other things to make work are.
>> -a- There are random text and tags between the '<p class="problem">'
>> and the first <input>...<br/> pair.
>
> What do you want done with them?

They should be in the output, in the same place as they were in the input.
I think my source and output are good examples of what has to work now. With sufficient tags to prove the requirements. If you got my example "desired output" from my example "Note my new source a few more tags", that would fullfill the requirements.
Extra whitespace is ok.

> What if you had:
>    <input> test1 <br/> test2
>    <input> test3 <br/>
>
> ... what happens to test2?

Safe to assume that would not happen.
While "in the list" there will not be anything between a <br/> and a <input>.

--
Am I getting closer?


--~------------------------------------------------------------------
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>
--~--

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