xsl-list
[Top] [All Lists]

start-stopping xml output

2005-09-22 01:20:15
is the following possible in a XSLT script, thanks for
any help in advanced.

<root>
        <item>A</item>
        <item>BOB1</item>
        <item>BOB2</item>
        <item>BOB3</item>
        <item>BOB4</item>
        <item>B</item>
        <item>BOB5</item>
        <item>BOB6</item>
        <item>A</item>
        <item>BOB7</item>
        <item>B</item>
        <item>A</item>
        <item>BOB8</item>
        <item>BOB9</item>
        <item>B</item>
        <item>BOB10</item>
</root>


when it finds A (start point) it moves onto the node
and starts reading until it finds the next occurence
of B (stop point).  When it finds the next occurance
of A it then follows the same rule stated above.

And so on...there could be one occurance of START/STOP
points or multiple.

so the output for this example would look something
like this

<root>
        <item>BOB1</item>
        <item>BOB2</item>
        <item>BOB3</item>
        <item>BOB4</item>
        <item>BOB7</item>
        <item>BOB8</item>
        <item>BOB9</item>
</root>




                
__________________________________ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com

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