Mapping.begin();
Publication publication = Publication.getInstance(id);
TypePublication type = publication.getType();
// list only XSL styles (not XSL-FO)
Vector styleNames = type.listStyles();
Vector styles = new Vector();
for( int i=0; i<styleNames.size(); i++ ) {
String n = styleNames.get(i).toString();
if(((TypePublicationImpl)type).getStyleSheet(n).getType() == Style.XSL ) {
styles.add(n);