Sorry, I guess an easier way to present the example of what I want to do is not plugging the whole output.
Here it is again:
Original XML:
Code:
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE toolbar:toolbar PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "toolbar.dtd">
3 <toolbar:toolbar xmlns:toolbar="http://openoffice.org/2001/toolbar"
xmlns:xlink="http://www.w3.org/1999/xlink">
4 <toolbar:toolbaritem xlink:href=".uno:OpenUrl" toolbar:visible=
"false"/>
5 <toolbar:toolbaritem xlink:href=".uno:AddDirect" toolbar:helpid=
"5537"/>
6</toolbar:toolbar>
Final XML:
Code:
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE toolbar:toolbar PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "toolbar.dtd">
3 <toolbar:toolbar xmlns:toolbar="http://openoffice.org/2001/toolbar"
xmlns:xlink="http://www.w3.org/1999/xlink">
4 <toolbar:toolbaritem xlink:href=".uno:OpenUrl" toolbar:visible=
"true"/>
6</toolbar:toolbar>
Here, the XSLT eliminate the line no. 5:
<toolbar:toolbaritem xlink:href=".uno:AddDirect" toolbar:helpid=
"5537"/>
Alternatively I would link to as opposed to delete the node, just change the attribute to true/false on OpenURL (fist node).
.... xlink:href=".uno:OpenUrl" toolbar:visible="
true"/>
Hope this is easier to understand.
Alexandro Colorado
Co-Leader for OpenOffice.org Project