xsl-list
[Top] [All Lists]

Match the element that have children and the attribute this="true" or the parent of the element having the attribute this="true" that does not have children.

2005-11-30 16:36:24
Hello.

Below is an example of my XML data.
I'd like to match the element that have children and the attribute
this="true" or the parent of the element having the attribute
this="true" that does not have children.

I have tried, but so far without luck.

<outline type="link" title="Frontpage" url="/index.html" />
<outline type="link" title="Furniture" url="/Furniture.html">
        <outline type="link" title="Staten Collection" url="/Staton.html">
                <outline type="link" title="2 Door Sideboard" 
url="/Staton_2_door.html" />
                <outline type="link" title="3 Door Sideboard" 
url="/Staton_3_door.html" />
                <outline type="link" title="Coffee Table" 
url="/Staton_coffee_table.html" />
                <outline type="link" title="Ext. table" 
url="/Staton_ext_table.html" />
                <outline type="link" title="Lamp Table" 
url="/Staton_lamp_table.html" />
                <outline type="link" title="Roomdivider" 
url="/Staton_room.html" />

                <outline type="link" title="Fixed Table" 
url="/Fixed_Table.html" />
                <outline type="link" title="TV Stand" url="/TV_Stand.html" />
        </outline>
        <outline type="link" title="Beesky Collection" url="/Beesky.html" 
this="true">
                <outline type="link" title="Beesky Table" 
url="/Beesky_Table.html" />
                <outline type="link" title="3 Door Sideboard" 
url="/3_Door_Sideboard.html" />
        </outline>
        <outline type="link" title="Tasker Collection" url="/Tasker.html">
                <outline type="link" title="Table" url="/Table.html" />

        </outline>
        <outline type="link" title="Tema Bed Collection" url="/Tema.html">
                <outline type="link" title="Tema 1" url="/Tema_1.html" />
                <outline type="link" title="Tema 2" url="/Tema_2.html" />
                <outline type="link" title="Tema 3" url="/Tema_3.html" />
                <outline type="link" title="Tema Box" url="/Tema_Box.html" />
        </outline>
        <outline type="link" title="Chairs" url="/Chairs.html">
                <outline type="link" title="Activ" url="/Activ.html" />

                <outline type="link" title="Barstool" url="/Barstool.html" />
        </outline>
</outline>
<outline type="link" title="About Specter Products"
url="/About_Specter_Products.html" />
<outline type="link" title="Contact" url="/Contact.html" />
<outline type="link" title="Spots" url="/lib/include/spots.html" />
<outline type="link" title="Contact receipt" url="/Contact_receipt.html" />

Thanks,
Jacob

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