You can subscribe to this list here.
2003 |
Jan
|
Feb
(89) |
Mar
(219) |
Apr
(82) |
May
(33) |
Jun
(11) |
Jul
(129) |
Aug
(357) |
Sep
(34) |
Oct
(37) |
Nov
(42) |
Dec
(182) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2004 |
Jan
(59) |
Feb
(74) |
Mar
(196) |
Apr
(205) |
May
(109) |
Jun
(268) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Frederic D. <de...@us...> - 2004-06-01 11:22:10
|
Update of /cvsroot/fudaa/fudaa_devel/ctulu/src/ghm/followgui In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22734/src/ghm/followgui Modified Files: DefaultNoExitSystemInterface.java FollowApp.java Added Files: FollowAppResourceBundle_fr.properties Log Message: francais --- NEW FILE: FollowAppResourceBundle_fr.properties --- (This appears to be a binary file; contents omitted.) Index: FollowApp.java =================================================================== RCS file: /cvsroot/fudaa/fudaa_devel/ctulu/src/ghm/followgui/FollowApp.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** FollowApp.java 11 Dec 2003 12:47:14 -0000 1.1 --- FollowApp.java 1 Jun 2004 11:21:59 -0000 1.2 *************** *** 22,30 **** import java.awt.Cursor; import java.awt.Dimension; - import java.awt.Frame; import java.awt.GraphicsEnvironment; import java.awt.Window; import java.awt.dnd.DropTarget; - import java.awt.event.InputEvent; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; --- 22,28 ---- *************** *** 42,47 **** import java.util.Map; import java.util.ResourceBundle; ! import javax.swing.Action; ! import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JMenuBar; --- 40,44 ---- import java.util.Map; import java.util.ResourceBundle; ! import javax.swing.JFrame; import javax.swing.JMenuBar; *************** *** 57,69 **** */ public class FollowApp { ! public JFrame getFrame() { ! return frame_; } ! public void setCloseFrameExitJvm(boolean _b) { ! if (_b) ! systemInterface_= new DefaultSystemInterface(this); ! else ! systemInterface_= new DefaultNoExitSystemInterface(this); } /** * @param fileNames names of files to be opened --- 54,152 ---- */ public class FollowApp { ! static final boolean DEBUG= Boolean.getBoolean("follow.debug"); ! static final String fileSeparator= System.getProperty("file.separator"); ! static boolean HAS_SOLARIS_BUG= false; ! static FollowApp instance_; ! static final String messageLineSeparator= "\n"; ! // We should remove this hack once JDK 1.4 gets wide adoption on Solaris. ! static { ! boolean isSolaris= "SunOS".equals(System.getProperty("os.name")); ! if (isSolaris) { ! String version= System.getProperty("java.version"); ! if ((version != null) && version.startsWith("1.")) { ! String substring= version.substring(2, 3); ! try { ! int minor= Integer.parseInt(substring); ! if (minor < 4) { ! HAS_SOLARIS_BUG= true; ! } ! } catch (NumberFormatException nfe) { ! // Nothing else to do. ! } ! } ! } } ! static void centerWindowInScreen(Window window) { ! Dimension screenSize= window.getToolkit().getScreenSize(); ! Dimension windowSize= window.getPreferredSize(); ! window.setLocation( ! (int) (screenSize.getWidth() / 2 - windowSize.getWidth() / 2), ! (int) (screenSize.getHeight() / 2 - windowSize.getHeight() / 2)); ! } ! /** ! Invoke this method to start the Follow application. If any command-line ! arguments are passed in, they are assume to be filenames and are opened ! in the Follow application ! @param args files to be opened ! */ ! public static void main(String[] args) ! throws IOException, InterruptedException, InvocationTargetException { ! instance_= new FollowApp(args); ! SwingUtilities.invokeAndWait(new Runnable() { ! public void run() { ! // ensure all widgets inited before opening files ! instance_.show(); ! instance_.startupStatus_.markDone( ! instance_.startupStatus_.CREATE_WIDGETS); ! } ! }); ! instance_.startupStatus_.dispose(); ! for (int i= 0; i < instance_.tabbedPane_.getTabCount(); i++) { ! ((FileFollowingPane)instance_.tabbedPane_.getComponentAt(i)) ! .startFollowing(); ! } } + public static FollowApp openFollowApp(String[] args,boolean _show) + throws IOException, InterruptedException, InvocationTargetException { + final FollowApp instance= new FollowApp(args); + if(_show) + instance.show(); + instance.startupStatus_.markDone(instance.startupStatus_.CREATE_WIDGETS); + instance.startupStatus_.dispose(); + for (int i= 0; i < instance.tabbedPane_.getTabCount(); i++) { + ((FileFollowingPane)instance.tabbedPane_.getComponentAt(i)) + .startFollowing(); + } + return instance; + } + About about_; + FollowAppAttributes attributes_; + Bottom bottom_; + Clear clear_; + ClearAll clearAll_; + Close close_; + Configure configure_; + int currentCursor_= Cursor.DEFAULT_CURSOR; + Debug debug_; + Cursor defaultCursor_; + Delete delete_; + DeleteAll deleteAll_; + Edit edit_; + Exit exit_; + Map fileToFollowingPaneMap_= new HashMap(); + JFrame frame_; + // Actions + Open open_; + PopupMenu popupMenu_; + Reload reload_; + ResourceBundle resBundle_= + ResourceBundle.getBundle("ghm.followgui.FollowAppResourceBundle"); + private MouseListener rightClickListener_; + private StartupStatus startupStatus_; + SystemInterface systemInterface_; + JTabbedPane tabbedPane_; + ToolBar toolBar_; + Top top_; + Cursor waitCursor_; /** * @param fileNames names of files to be opened *************** *** 101,105 **** resBundle_.getString("message.cmdLineFileNotFound.text"), new Object[] { file }); - System.out.println(msg); } else if (!attributes_.followedFileListContains(file)) { attributes_.addFollowedFile(file); --- 184,187 ---- *************** *** 144,149 **** toolsMenu.addFollowAppAction(clear_); toolsMenu.addFollowAppAction(clearAll_); ! toolsMenu.addFollowAppAction(delete_); ! toolsMenu.addFollowAppAction(deleteAll_); toolsMenu.addSeparator(); toolsMenu.addFollowAppAction(configure_); --- 226,231 ---- toolsMenu.addFollowAppAction(clear_); toolsMenu.addFollowAppAction(clearAll_); ! // toolsMenu.addFollowAppAction(delete_); ! // toolsMenu.addFollowAppAction(deleteAll_); toolsMenu.addSeparator(); toolsMenu.addFollowAppAction(configure_); *************** *** 164,167 **** --- 246,250 ---- // initialize popupMenu popupMenu_= new PopupMenu(); + popupMenu_.setInvoker(frame_); popupMenu_.addFollowAppAction(open_); popupMenu_.addFollowAppAction(close_); *************** *** 173,178 **** popupMenu_.addFollowAppAction(clear_); popupMenu_.addFollowAppAction(clearAll_); ! popupMenu_.addFollowAppAction(delete_); ! popupMenu_.addFollowAppAction(deleteAll_); popupMenu_.addSeparator(); popupMenu_.addFollowAppAction(configure_); --- 256,261 ---- popupMenu_.addFollowAppAction(clear_); popupMenu_.addFollowAppAction(clearAll_); ! //popupMenu_.addFollowAppAction(delete_); ! //popupMenu_.addFollowAppAction(deleteAll_); popupMenu_.addSeparator(); popupMenu_.addFollowAppAction(configure_); *************** *** 187,192 **** toolBar_.addFollowAppAction(clear_); toolBar_.addFollowAppAction(clearAll_); ! toolBar_.addFollowAppAction(delete_); ! toolBar_.addFollowAppAction(deleteAll_); toolBar_.addSeparator(); toolBar_.addFollowAppAction(configure_); --- 270,275 ---- toolBar_.addFollowAppAction(clear_); toolBar_.addFollowAppAction(clearAll_); ! //toolBar_.addFollowAppAction(delete_); ! //toolBar_.addFollowAppAction(deleteAll_); toolBar_.addSeparator(); toolBar_.addFollowAppAction(configure_); *************** *** 209,218 **** frame_.addWindowListener(new WindowTracker(attributes_)); frame_.addWindowListener(new WindowAdapter() { - public void windowClosing(WindowEvent e) { - if (tabbedPane_.getTabCount() > 0) { - attributes_.setSelectedTabIndex(tabbedPane_.getSelectedIndex()); - } - ((Window)e.getSource()).dispose(); - } public void windowClosed(WindowEvent e) { try { --- 292,295 ---- *************** *** 222,228 **** --- 299,316 ---- ioe.printStackTrace(System.err); } finally { + //on arrete les threads + for (int i= 0; i < tabbedPane_.getTabCount(); i++) { + ((FileFollowingPane)tabbedPane_.getComponentAt(i)) + .stopFollowing(); + } systemInterface_.exit(0); } } + public void windowClosing(WindowEvent e) { + if (tabbedPane_.getTabCount() > 0) { + attributes_.setSelectedTabIndex(tabbedPane_.getSelectedIndex()); + } + ((Window)e.getSource()).dispose(); + } }); enableDragAndDrop(frame_); *************** *** 287,313 **** } } ! private StartupStatus startupStatus_; ! public void show() { ! frame_.show(); } ! public void openFile( ! final File file, ! final boolean addFileToAttributes, ! final boolean startFollowing) { ! if (SwingUtilities.isEventDispatchThread()) { ! open(file, addFileToAttributes, startFollowing); ! } else { ! try { ! SwingUtilities.invokeAndWait(new Runnable() { ! public void run() { ! open(file, addFileToAttributes, startFollowing); } ! }); ! } catch (InterruptedException e) { ! e.printStackTrace(); ! } catch (InvocationTargetException e) { ! e.printStackTrace(); ! } } } /* --- 375,415 ---- } } ! void disableDragAndDrop(Component c) { ! c.setDropTarget(null); } ! void enableDragAndDrop(Component c) { ! // Invoking this constructor automatically sets the component's drop target ! new DropTarget(c, new DndFileOpener(this)); ! } ! List getAllFileFollowingPanes() { ! int tabCount= tabbedPane_.getTabCount(); ! List allFileFollowingPanes= new ArrayList(); ! for (int i= 0; i < tabCount; i++) { ! allFileFollowingPanes.add(tabbedPane_.getComponentAt(i)); ! } ! return allFileFollowingPanes; ! } ! public JFrame getFrame() { ! return frame_; ! } ! // Lazy initializer for the right-click listener which invokes a popup menu ! private MouseListener getRightClickListener() { ! if (rightClickListener_ == null) { ! rightClickListener_= new MouseAdapter() { ! public void mouseReleased(MouseEvent e) { ! if (SwingUtilities.isRightMouseButton(e)) { ! Component source= e.getComponent(); ! popupMenu_.show(source, e.getX(), e.getY()); } ! } ! }; } + return rightClickListener_; + } + FileFollowingPane getSelectedFileFollowingPane() { + return (FileFollowingPane)tabbedPane_.getSelectedComponent(); + } + void open(File file, boolean addFileToAttributes) { + open(file, addFileToAttributes, true); } /* *************** *** 359,364 **** } } ! void open(File file, boolean addFileToAttributes) { ! open(file, addFileToAttributes, true); } /** --- 461,489 ---- } } ! public void openFile( ! final File file, ! final boolean addFileToAttributes, ! final boolean startFollowing) { ! if (SwingUtilities.isEventDispatchThread()) { ! open(file, addFileToAttributes, startFollowing); ! } else { ! try { ! SwingUtilities.invokeAndWait(new Runnable() { ! public void run() { ! open(file, addFileToAttributes, startFollowing); ! } ! }); ! } catch (InterruptedException e) { ! e.printStackTrace(); ! } catch (InvocationTargetException e) { ! e.printStackTrace(); ! } ! } ! } ! public void setCloseFrameExitJvm(boolean _b) { ! if (_b) ! systemInterface_= new DefaultSystemInterface(this); ! else ! systemInterface_= new DefaultNoExitSystemInterface(this); } /** *************** *** 389,517 **** currentCursor_= cursorType; } ! int currentCursor_= Cursor.DEFAULT_CURSOR; ! Cursor defaultCursor_; ! Cursor waitCursor_; ! // Lazy initializer for the right-click listener which invokes a popup menu ! private MouseListener getRightClickListener() { ! if (rightClickListener_ == null) { ! rightClickListener_= new MouseAdapter() { ! public void mouseReleased(MouseEvent e) { ! if (SwingUtilities.isRightMouseButton(e)) { ! Component source= e.getComponent(); ! popupMenu_.show(source, e.getX(), e.getY()); ! } ! } ! }; ! } ! return rightClickListener_; ! } ! void enableDragAndDrop(Component c) { ! // Invoking this constructor automatically sets the component's drop target ! new DropTarget(c, new DndFileOpener(this)); ! } ! void disableDragAndDrop(Component c) { ! c.setDropTarget(null); ! } ! FileFollowingPane getSelectedFileFollowingPane() { ! return (FileFollowingPane)tabbedPane_.getSelectedComponent(); ! } ! List getAllFileFollowingPanes() { ! int tabCount= tabbedPane_.getTabCount(); ! List allFileFollowingPanes= new ArrayList(); ! for (int i= 0; i < tabCount; i++) { ! allFileFollowingPanes.add(tabbedPane_.getComponentAt(i)); ! } ! return allFileFollowingPanes; ! } ! FollowAppAttributes attributes_; ! Map fileToFollowingPaneMap_= new HashMap(); ! JFrame frame_; ! JTabbedPane tabbedPane_; ! ToolBar toolBar_; ! PopupMenu popupMenu_; ! private MouseListener rightClickListener_; ! ResourceBundle resBundle_= ! ResourceBundle.getBundle("ghm.followgui.FollowAppResourceBundle"); ! // Actions ! Open open_; ! Close close_; ! Reload reload_; ! Edit edit_; ! Exit exit_; ! Top top_; ! Bottom bottom_; ! Clear clear_; ! ClearAll clearAll_; ! Delete delete_; ! DeleteAll deleteAll_; ! Configure configure_; ! About about_; ! Debug debug_; ! SystemInterface systemInterface_; ! static final String fileSeparator= System.getProperty("file.separator"); ! static final String messageLineSeparator= "\n"; ! static final boolean DEBUG= Boolean.getBoolean("follow.debug"); ! static boolean HAS_SOLARIS_BUG= false; ! // We should remove this hack once JDK 1.4 gets wide adoption on Solaris. ! static { ! boolean isSolaris= "SunOS".equals(System.getProperty("os.name")); ! if (isSolaris) { ! String version= System.getProperty("java.version"); ! if ((version != null) && version.startsWith("1.")) { ! String substring= version.substring(2, 3); ! try { ! int minor= Integer.parseInt(substring); ! if (minor < 4) { ! HAS_SOLARIS_BUG= true; ! } ! } catch (NumberFormatException nfe) { ! // Nothing else to do. ! } ! } ! } ! } ! static void centerWindowInScreen(Window window) { ! Dimension screenSize= window.getToolkit().getScreenSize(); ! Dimension windowSize= window.getPreferredSize(); ! window.setLocation( ! (int) (screenSize.getWidth() / 2 - windowSize.getWidth() / 2), ! (int) (screenSize.getHeight() / 2 - windowSize.getHeight() / 2)); ! } ! /** ! Invoke this method to start the Follow application. If any command-line ! arguments are passed in, they are assume to be filenames and are opened ! in the Follow application ! @param args files to be opened ! */ ! public static void main(String[] args) ! throws IOException, InterruptedException, InvocationTargetException { ! instance_= new FollowApp(args); ! SwingUtilities.invokeAndWait(new Runnable() { ! public void run() { ! // ensure all widgets inited before opening files ! instance_.show(); ! instance_.startupStatus_.markDone( ! instance_.startupStatus_.CREATE_WIDGETS); ! } ! }); ! instance_.startupStatus_.dispose(); ! for (int i= 0; i < instance_.tabbedPane_.getTabCount(); i++) { ! ((FileFollowingPane)instance_.tabbedPane_.getComponentAt(i)) ! .startFollowing(); ! } ! } ! public static FollowApp openFollowApp(String[] args,boolean _show) ! throws IOException, InterruptedException, InvocationTargetException { ! final FollowApp instance= new FollowApp(args); ! if(_show) ! instance.show(); ! instance.startupStatus_.markDone(instance.startupStatus_.CREATE_WIDGETS); ! instance.startupStatus_.dispose(); ! for (int i= 0; i < instance.tabbedPane_.getTabCount(); i++) { ! ((FileFollowingPane)instance.tabbedPane_.getComponentAt(i)) ! .startFollowing(); ! } ! return instance; } - static FollowApp instance_; } --- 514,519 ---- currentCursor_= cursorType; } ! public void show() { ! frame_.show(); } } Index: DefaultNoExitSystemInterface.java =================================================================== RCS file: /cvsroot/fudaa/fudaa_devel/ctulu/src/ghm/followgui/DefaultNoExitSystemInterface.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** DefaultNoExitSystemInterface.java 11 Dec 2003 12:47:14 -0000 1.1 --- DefaultNoExitSystemInterface.java 1 Jun 2004 11:21:59 -0000 1.2 *************** *** 1,3 **** ! /* * @file DefaultNoExitSystemInterface.java * @creation 2 déc. 2003 --- 1,3 ---- ! /** * @file DefaultNoExitSystemInterface.java * @creation 2 déc. 2003 *************** *** 9,12 **** --- 9,16 ---- package ghm.followgui; + import javax.swing.MenuSelectionManager; + + import com.memoire.bu.BuRegistry; + /** * @author deniger *************** *** 14,17 **** --- 18,22 ---- */ public class DefaultNoExitSystemInterface extends DefaultSystemInterface { + /** * @param app *************** *** 20,26 **** super(app); } ! ! public void exit (int code) { app_.getFrame().setVisible(false); } ! ! ! } --- 25,38 ---- super(app); } ! ! /** ! * @see ghm.followgui.SystemInterface#exit(int) ! */ ! public void exit(int code) { ! app_.getFrame().setVisible(false); ! app_.popupMenu_.removeAll(); ! MenuSelectionManager.defaultManager().clearSelectedPath(); ! BuRegistry.unregister(app_.getFrame()); ! } ! ! } \ No newline at end of file |
Update of /cvsroot/fudaa/fudaa_devel/ctulu/src/com/memoire/bu In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22466/src/com/memoire/bu Modified Files: BuLib.java BuPopupMenu.java BuActionEnabler.java BuExplorer.java BuCommonImplementation.java BuList.java BuMainPanel.java BuMonitorAbstract.java Added Files: BuPreferencesFrameNew.java BuPreferencesEditorPanel.java BuTimerActionListenerAbstract.java BuTimerActionListenerMonitor.java BuPreferencesDialog.java BuTimerActionListenerExplorer.java Log Message: Index: BuPopupMenu.java =================================================================== RCS file: /cvsroot/fudaa/fudaa_devel/ctulu/src/com/memoire/bu/BuPopupMenu.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** BuPopupMenu.java 12 Mar 2004 15:41:01 -0000 1.4 --- BuPopupMenu.java 1 Jun 2004 11:20:25 -0000 1.5 *************** *** 30,33 **** --- 30,42 ---- /*MouseListener, MouseMotionListener*/ { + /** + * @see java.lang.Object#finalize() + */ + protected void finalize() throws Throwable { + super.finalize(); + if(getUI()!=null) + getUI().uninstallUI(this); + + } private static final Vector menus_=new Vector(); *************** *** 129,132 **** --- 138,144 ---- addMouseListener(new MA());//this); + //FRED il semble que seul le cas sticky est concerne par ce truc + //voir stateChanged + if(_stickable) MenuSelectionManager.defaultManager().addChangeListener(this); } *************** *** 397,403 **** (b2.getClientProperty("SLAF_NO_TEXTURE"))); } ! sticky_=false; super.setVisible(_visible); } --- 409,435 ---- (b2.getClientProperty("SLAF_NO_TEXTURE"))); } ! //FRED: pour enlever le menu du vecteur menus_ ! /*if(sticky_)*/ menus_.remove(this); sticky_=false; + //si b2 est non null ->le menu est "stickable" A Changer... + //on ajoute/enleve le menu du manager si visible/invisible + if(b2!=null){ + if(!_visible) + { + MenuSelectionManager.defaultManager().removeChangeListener(this); + } + else + MenuSelectionManager.defaultManager().addChangeListener(this); + + } + if(!_visible) { + MenuSelectionManager.defaultManager().clearSelectedPath(); + MenuSelectionManager.defaultManager().clearSelectedPath(); + } super.setVisible(_visible); + if(!_visible) { + MenuSelectionManager.defaultManager().clearSelectedPath(); + MenuSelectionManager.defaultManager().clearSelectedPath(); + } } Index: BuActionEnabler.java =================================================================== RCS file: /cvsroot/fudaa/fudaa_devel/ctulu/src/com/memoire/bu/BuActionEnabler.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** BuActionEnabler.java 12 Mar 2004 15:40:56 -0000 1.4 --- BuActionEnabler.java 1 Jun 2004 11:20:25 -0000 1.5 *************** *** 86,89 **** --- 86,90 ---- (JToolBar _bar, String _action, boolean _state) { + if(_bar==null) return; Component[] c=_bar.getComponents(); for(int i=0; i<c.length; i++) Index: BuMonitorAbstract.java =================================================================== RCS file: /cvsroot/fudaa/fudaa_devel/ctulu/src/com/memoire/bu/BuMonitorAbstract.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** BuMonitorAbstract.java 12 Mar 2004 15:41:01 -0000 1.4 --- BuMonitorAbstract.java 1 Jun 2004 11:20:25 -0000 1.5 *************** *** 52,68 **** monitor.start(); */ ! timer_=new BuTimer((int)getDelay(),new ActionListener() ! { ! public void actionPerformed(ActionEvent _evt) ! { ! if(refreshState()) ! { ! BuUpdateGUI.repaintLater(BuMonitorAbstract.this); ! // repaint(); ! setToolTipText(getToolTipText()); ! } ! } ! }); } --- 52,69 ---- monitor.start(); */ + timer_=new BuTimer((int)getDelay(),new BuTimerActionListenerMonitor(this)); ! // timer_=new BuTimer((int)getDelay(),new ActionListener() ! // { ! // public void actionPerformed(ActionEvent _evt) ! // { ! // if(refreshState()) ! // { ! // BuUpdateGUI.repaintLater(BuMonitorAbstract.this); ! // // repaint(); ! // setToolTipText(getToolTipText()); ! // } ! // } ! // }); } *************** *** 214,217 **** --- 215,232 ---- } } + + */ + /** + * @see java.lang.Object#finalize() + */ + protected void finalize() throws Throwable { + //il faut enlever le timer de TimerQueue: donc stop! + if(timer_!=null){ + //System.err.println("yes timer"); + timer_.stop(); + timer_=null; + } + super.finalize(); + } } --- NEW FILE: BuTimerActionListenerMonitor.java --- /** * @creation 25 mai 2004 * @modification $Date: 2004/06/01 11:20:25 $ * @license GNU General Public License 2 * @copyright guillaume desnoix en fait ce qu'il veut :-) */ package com.memoire.bu; import java.awt.event.ActionEvent; /** * An ActionListener for the monitor. * * @author Fred Deniger * @version $Id: BuTimerActionListenerMonitor.java,v 1.1 2004/06/01 11:20:25 deniger Exp $ */ public class BuTimerActionListenerMonitor extends BuTimerActionListenerAbstract { /** * @param _m the target monitor. */ public BuTimerActionListenerMonitor(BuMonitorAbstract _m) { super(_m); } /** * @see java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent) */ public void actionPerformed(ActionEvent _e) { BuMonitorAbstract m = getMonitor(); if (m == null) { //System.out.println("weak ref for "+getClass().getName()+" in garbage!"); return; } if (m.refreshState()) { BuUpdateGUI.repaintLater(m); m.setToolTipText(m.getToolTipText()); } } private BuMonitorAbstract getMonitor() { Object o = getTarget(); if (o != null) return (BuMonitorAbstract) o; return null; } } --- NEW FILE: BuTimerActionListenerAbstract.java --- /** * @creation 25 mai 2004 * @modification $Date: 2004/06/01 11:20:25 $ * @license GNU General Public License 2 * @copyright guillaume desnoix en fait ce qu'il veut :-) */ package com.memoire.bu; import java.awt.event.ActionListener; import java.lang.ref.WeakReference; /** * This class must be use to create an actionListener for a timer :the target object * is saved in a weak reference. The target can be reclaimed by the GC. * @author Fred Deniger * @version $Id: BuTimerActionListenerAbstract.java,v 1.1 2004/06/01 11:20:25 deniger Exp $ */ public abstract class BuTimerActionListenerAbstract implements ActionListener { WeakReference ref; /** * @param _target the target for this ActionListener */ public BuTimerActionListenerAbstract(Object _target) { super(); ref = new WeakReference(_target); } protected final Object getTarget() { return ref.get(); } } --- NEW FILE: BuPreferencesFrameNew.java --- /** * @modification $Date: 2004/06/01 11:20:25 $ * @statut unstable * @file BuPreferencesFrame.java * @version 0.36 * @author Guillaume Desnoix * @email gui...@de... * @license GNU General Public License 2 (GPL2) * @copyright 1998-2004 Guillaume Desnoix */ package com.memoire.bu; import java.awt.event.KeyEvent; import java.beans.PropertyChangeEvent; import java.beans.PropertyChangeListener; import java.beans.PropertyVetoException; /** * An internal frame which groups all the panels to set user preferences. */ public class BuPreferencesFrameNew extends BuInternalFrame implements PropertyChangeListener { BuPreferencesEditorPanel pn_; public BuPreferencesFrameNew() { this(null,null); } public BuPreferencesFrameNew(BuCommonImplementation _app,BuPreferencesEditorPanel _pn) { super("", false, true, false, true); pn_=_pn; if(pn_==null) pn_ = new BuPreferencesEditorPanel(); setName("ifPREFERENCES"); if (_app != null) _app.installContextHelp(getRootPane(), "bu/p-preferences.html"); setShortcut(KeyEvent.VK_F2); pn_.addPropertyChangeListener("close", this); setContentPane(pn_); pn_.updateDefaultButton(this.getRootPane()); pack(); setTitle(BuResource.BU.getString("Préférences de démarrage")); setFrameIcon(BuResource.BU.getFrameIcon("preference")); } /** * @see java.beans.PropertyChangeListener#propertyChange(java.beans.PropertyChangeEvent) */ public void propertyChange(PropertyChangeEvent _evt) { if (_evt.getSource().equals(getContentPane()) && (_evt.getPropertyName().equals("close"))) { try { setClosed(true); dispose(); } catch (PropertyVetoException e) { e.printStackTrace(); } } } /** * @return Returns the pn. */ public BuPreferencesEditorPanel getPn() { return pn_; } } Index: BuMainPanel.java =================================================================== RCS file: /cvsroot/fudaa/fudaa_devel/ctulu/src/com/memoire/bu/BuMainPanel.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** BuMainPanel.java 12 Mar 2004 15:41:01 -0000 1.4 --- BuMainPanel.java 1 Jun 2004 11:20:25 -0000 1.5 *************** *** 23,34 **** extends BuPanel { ! private BuSpecificBar specificbar_; ! private BuPanel specificpanel_; ! private BuDesktop desktop_; ! private BuStatusBar statusbar_; ! private BuSplit3Pane splitpane_; ! private BuColumn leftcolumn_; ! private BuColumn rightcolumn_; ! private boolean swapped_=false; public BuMainPanel() --- 23,34 ---- extends BuPanel { ! protected BuSpecificBar specificbar_; ! protected BuPanel specificpanel_; ! protected BuDesktop desktop_; ! protected BuStatusBar statusbar_; ! protected BuSplit3Pane splitpane_; ! protected BuColumn leftcolumn_; ! protected BuColumn rightcolumn_; ! protected boolean swapped_=false; public BuMainPanel() Index: BuCommonImplementation.java =================================================================== RCS file: /cvsroot/fudaa/fudaa_devel/ctulu/src/com/memoire/bu/BuCommonImplementation.java,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** BuCommonImplementation.java 14 May 2004 10:30:06 -0000 1.7 --- BuCommonImplementation.java 1 Jun 2004 11:20:25 -0000 1.8 *************** *** 183,187 **** public void setMainPanel(BuMainPanel _p) ! { main_panel_=_p; content_.add(main_panel_,BuBorderLayout.CENTER); --- 183,188 ---- public void setMainPanel(BuMainPanel _p) ! {if(main_panel_!=null) ! content_.remove(main_panel_); main_panel_=_p; content_.add(main_panel_,BuBorderLayout.CENTER); *************** *** 751,754 **** --- 752,772 ---- getMainPanel().arrangeIcons(); } + catch(Exception e){ + String tm; + int i; + + tm=_lnf; + i=tm.lastIndexOf('.'); + if(i>=0) tm=tm.substring(i+1); + i=tm.lastIndexOf("LookAndFeel"); + if(i>=0) tm=tm.substring(0,i); + tm=BuResource.BU.getString + ("L'aspect n'a pu mettre à jour l'arbre des composants")+ + ". ["+tm+"]"; + + BuDialogMessage dm=new BuDialogMessage + (app_,getInformationsSoftware(),tm); + dm.activate(); + } catch (Throwable ex) { *************** *** 885,888 **** --- 903,907 ---- int r=bd.activate(); + bd.dispose(); return (r==JOptionPane.YES_OPTION); } --- NEW FILE: BuPreferencesEditorPanel.java --- /** * @creation 26 mai 2004 * @modification $Date: 2004/06/01 11:20:25 $ * @license GNU General Public License 2 * @copyright (c)1998-2001 CETMEF 2 bd Gambetta F-60231 Compiegne * @mail fud...@li... */ package com.memoire.bu; import java.awt.Component; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.beans.PropertyChangeEvent; import java.beans.PropertyChangeListener; import java.beans.PropertyVetoException; import javax.swing.JComponent; import javax.swing.JRootPane; import javax.swing.event.ChangeEvent; import javax.swing.event.ChangeListener; /** * @author Fred Deniger * @version $Id: BuPreferencesEditorPanel.java,v 1.1 2004/06/01 11:20:25 deniger Exp $ */ public class BuPreferencesEditorPanel extends BuPanel implements ActionListener, ChangeListener, PropertyChangeListener, BuBorders { private BuTabbedPane tpMain_; private BuPanel pnButtons_; private BuButton btValider_, btAppliquer_, btAnnuler_, btFermer_; // Constructeur public BuPreferencesEditorPanel() { tpMain_ = new BuTabbedPane(); tpMain_.setTabPlacement(BuLib.getTabPlacement()); tpMain_.addChangeListener(this); // Panneau de validation pnButtons_ = new BuPanel(); pnButtons_.setLayout(new BuButtonLayout()); //new FlowLayout(FlowLayout.RIGHT)); btAppliquer_ = new BuButton(BuResource.BU.getString("Appliquer")); btAppliquer_.setIcon(BuResource.BU.loadToolCommandIcon("APPLIQUER")); btAppliquer_.setActionCommand("APPLIQUER"); btAppliquer_.addActionListener(this); pnButtons_.add(btAppliquer_, 0); btAnnuler_ = new BuButton(BuResource.BU.getString("Annuler")); btAnnuler_.setIcon(BuResource.BU.loadToolCommandIcon("ANNULER")); btAnnuler_.setActionCommand("ANNULER"); btAnnuler_.addActionListener(this); pnButtons_.add(btAnnuler_, 1); btValider_ = new BuButton(BuResource.BU.getString("Ecrire")); btValider_.setIcon(BuResource.BU.loadToolCommandIcon("VALIDER")); btValider_.setActionCommand("VALIDER"); btValider_.addActionListener(this); pnButtons_.add(btValider_, 2); btFermer_ = new BuButton(BuResource.BU.getString("Fermer")); btFermer_.setIcon(BuResource.BU.loadToolCommandIcon("FERMER")); btFermer_.setActionCommand("FERMER"); btFermer_.addActionListener(this); pnButtons_.add(btFermer_, 3); setLayout(new BuBorderLayout(5, 5)); setBorder(EMPTY5555); add(tpMain_, BuBorderLayout.CENTER); add(pnButtons_, BuBorderLayout.SOUTH); BuLib.computeMnemonics(pnButtons_, this); updateButtons(); } public void updateDefaultButton(JRootPane _parent){ _parent.setDefaultButton(btValider_); } // Evenements public void actionPerformed(ActionEvent _evt) { String actionCmd = _evt.getActionCommand(); if (actionCmd.equals("VALIDER")) { /* * for(int i=0; i <tpMain_.getTabCount(); i++) { BuAbstractPreferencesPanel p= * (BuAbstractPreferencesPanel)tpMain_.getComponentAt(i); if(p.isPreferencesValidable()) * p.validatePreferences(); } */ // valider(); Component c = tpMain_.getSelectedComponent(); if (c instanceof BuAbstractPreferencesPanel) { BuAbstractPreferencesPanel pp = (BuAbstractPreferencesPanel) c; if (pp.isPreferencesValidable()) pp.validatePreferences(); } } else if (actionCmd.equals("APPLIQUER")) { Component c = tpMain_.getSelectedComponent(); if (c instanceof BuAbstractPreferencesPanel) { BuAbstractPreferencesPanel pp = (BuAbstractPreferencesPanel) c; if (pp.isPreferencesApplyable()) pp.applyPreferences(); } // appliquer(); } else if (actionCmd.equals("ANNULER")) { Component c = tpMain_.getSelectedComponent(); if (c instanceof BuAbstractPreferencesPanel) { BuAbstractPreferencesPanel pp = (BuAbstractPreferencesPanel) c; if (pp.isPreferencesCancelable()) { pp.cancelPreferences(); if (pp.isPreferencesApplyable()) pp.applyPreferences(); } } // annuler(); } else if (actionCmd.equals("FERMER")) { // try { firePropertyChange("close",false,true); // setClosed(true); // } // catch (PropertyVetoException ex) {} } updateButtons(); } public void stateChanged(ChangeEvent _evt) { JComponent source = (JComponent) _evt.getSource(); // System.err.println("Change : "+source.getName()); updateButtons(); //BuLib.computeMnemonics(pnButtons_,this); } public void propertyChange(PropertyChangeEvent _evt) { if ("dirty".equals(_evt.getPropertyName())) updateButtons(); } private void updateButtons() { boolean dirty = false; Component c = tpMain_.getSelectedComponent(); if (c instanceof BuAbstractPreferencesPanel) { BuAbstractPreferencesPanel pp = (BuAbstractPreferencesPanel) c; dirty = pp.isDirty(); btAppliquer_.setEnabled(dirty && pp.isPreferencesApplyable()); btAnnuler_.setEnabled(dirty && pp.isPreferencesCancelable()); btValider_.setEnabled(dirty && pp.isPreferencesValidable()); } if (!dirty) { Component[] p = tpMain_.getComponents(); for (int i = 0; i < p.length; i++) if (p[i] instanceof BuAbstractPreferencesPanel) if (((BuAbstractPreferencesPanel) p[i]).isDirty()) dirty = true; } btFermer_.setEnabled(!dirty); //setClosable(!dirty); } // Methodes publiques public void selectTab(int _index) { tpMain_.setSelectedIndex(_index); } public void addTab(BuAbstractPreferencesPanel _newtab) { if (!(_newtab instanceof JComponent)) throw new RuntimeException("" + _newtab + " is not a JComponent"); //if(_newtab instanceof Container) //BuLib.computeMnemonics((Container)_newtab,null); String title = _newtab.getTitle(); String tooltip = _newtab.getToolTipText(); tpMain_.addTab(title, null, (JComponent) _newtab, tooltip); _newtab.addPropertyChangeListener(this); revalidate(); //doLayout(); //validate(); } } --- NEW FILE: BuPreferencesDialog.java --- /** * @creation 26 mai 2004 * @modification $Date: 2004/06/01 11:20:25 $ * @license GNU General Public License 2 * @copyright (c)1998-2001 CETMEF 2 bd Gambetta F-60231 Compiegne * @mail fud...@li... */ package com.memoire.bu; import java.awt.Frame; import java.beans.PropertyChangeEvent; import java.beans.PropertyChangeListener; import javax.swing.JDialog; /** * @author Fred Deniger * @version $Id: BuPreferencesDialog.java,v 1.1 2004/06/01 11:20:25 deniger Exp $ */ public class BuPreferencesDialog extends JDialog implements PropertyChangeListener { /** * @see java.beans.PropertyChangeListener#propertyChange(java.beans.PropertyChangeEvent) */ public void propertyChange(PropertyChangeEvent _evt) { if (_evt.getSource().equals(getContentPane()) && (_evt.getPropertyName().equals("close"))) { dispose(); } } public BuPreferencesDialog(Frame _parent, BuPreferencesEditorPanel _p) { super(_parent); setModal(true); if (_p != null) { _p.addPropertyChangeListener("close", this); setContentPane(_p); _p.updateDefaultButton(this.getRootPane()); setTitle(BuResource.BU.getString("Préférences de démarrage")); } pack(); } } Index: BuLib.java =================================================================== RCS file: /cvsroot/fudaa/fudaa_devel/ctulu/src/com/memoire/bu/BuLib.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** BuLib.java 12 Mar 2004 15:41:01 -0000 1.5 --- BuLib.java 1 Jun 2004 11:20:13 -0000 1.6 *************** *** 83,86 **** --- 83,87 ---- if(w instanceof Frame) ((Frame)w).setTitle("Swing Shared Owner Frame"); + w.dispose(); } } Index: BuList.java =================================================================== RCS file: /cvsroot/fudaa/fudaa_devel/ctulu/src/com/memoire/bu/BuList.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** BuList.java 12 Mar 2004 15:41:01 -0000 1.4 --- BuList.java 1 Jun 2004 11:20:25 -0000 1.5 *************** *** 28,32 **** { super(); ! setCellRenderer(BuAbstractCellRenderer.getDefaultListCellRenderer()); } --- 28,32 ---- { super(); ! //setCellRenderer(BuAbstractCellRenderer.getDefaultListCellRenderer()); } *************** *** 37,41 **** { super(_data); ! setCellRenderer(BuAbstractCellRenderer.getDefaultListCellRenderer()); } --- 37,41 ---- { super(_data); ! //setCellRenderer(BuAbstractCellRenderer.getDefaultListCellRenderer()); } *************** *** 46,50 **** { super(_data); ! setCellRenderer(BuAbstractCellRenderer.getDefaultListCellRenderer()); } --- 46,50 ---- { super(_data); ! //setCellRenderer(BuAbstractCellRenderer.getDefaultListCellRenderer()); } Index: BuExplorer.java =================================================================== RCS file: /cvsroot/fudaa/fudaa_devel/ctulu/src/com/memoire/bu/BuExplorer.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** BuExplorer.java 12 Mar 2004 15:41:00 -0000 1.4 --- BuExplorer.java 1 Jun 2004 11:20:25 -0000 1.5 *************** *** 338,349 **** p1.setPreferredSize(new Dimension(150,220)); p2.setPreferredSize(new Dimension(150,220)); ! ! timer_=new BuTimer(1000,new ActionListener() ! { ! public void actionPerformed(ActionEvent _evt) ! { ! refresh(); ! } ! }); setCurrentDirectory(FuFile.ensureFuFile(_path)); --- 338,349 ---- p1.setPreferredSize(new Dimension(150,220)); p2.setPreferredSize(new Dimension(150,220)); ! timer_=new BuTimer(1000,new BuTimerActionListenerExplorer(this)); ! // timer_=new BuTimer(1000,new ActionListener() ! // { ! // public void actionPerformed(ActionEvent _evt) ! // { ! // refresh(); ! // } ! // }); setCurrentDirectory(FuFile.ensureFuFile(_path)); *************** *** 1728,1730 **** --- 1728,1737 ---- } } + /** + * @see java.lang.Object#finalize() + */ + protected void finalize() throws Throwable { + if(timer_!=null) timer_.stop(); + super.finalize(); + } } --- NEW FILE: BuTimerActionListenerExplorer.java --- /** * @creation 25 mai 2004 * @modification $Date: 2004/06/01 11:20:25 $ * @license GNU General Public License 2 * @copyright (c)1998-2001 CETMEF 2 bd Gambetta F-60231 Compiegne * @mail fud...@li... */ package com.memoire.bu; import java.awt.event.ActionEvent; /** * @author Fred Deniger * @version $Id: BuTimerActionListenerExplorer.java,v 1.1 2004/06/01 11:20:25 deniger Exp $ */ public class BuTimerActionListenerExplorer extends BuTimerActionListenerAbstract { /** * @param _e the target explorer */ public BuTimerActionListenerExplorer(BuExplorer _e) { super(_e); } private BuExplorer getExplorer() { Object o = getTarget(); if (o != null) return (BuExplorer) o; return null; } /** * @see java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent) */ public void actionPerformed(ActionEvent _e) { BuExplorer m = getExplorer(); if (m == null) { //System.out.println("weak ref for "+getClass().getName()+" in garbage!"); return; } m.refresh(); } } |
Update of /cvsroot/fudaa/fudaa_devel/aide/xml/xsl/extensions In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20425/xml/xsl/extensions Added Files: saxon65.jar saxon643.jar build.xml saxon651.jar saxon644.jar prj.el xalan25.jar ChangeLog xalan2.jar Log Message: xml pour l'aide en docbook --- NEW FILE: saxon65.jar --- (This appears to be a binary file; contents omitted.) --- NEW FILE: xalan25.jar --- (This appears to be a binary file; contents omitted.) --- NEW FILE: saxon651.jar --- (This appears to be a binary file; contents omitted.) --- NEW FILE: saxon643.jar --- (This appears to be a binary file; contents omitted.) --- NEW FILE: saxon644.jar --- (This appears to be a binary file; contents omitted.) --- NEW FILE: xalan2.jar --- (This appears to be a binary file; contents omitted.) --- NEW FILE: build.xml --- <!-- Build file for docbook-xsl extensions --> <!-- Submitted by Ville Skytt (sc...@us...) --> <project name="docbook-xsl" default="all" basedir="."> <!-- Properties --> <property name="name" value="docbook-xsl"/> <property name="src.saxon" value="saxon643"/> <property name="src.xalan" value="xalan2"/> <property name="build" value="build"/> <property name="build.classes" value="${build}/classes"/> <property name="build.doc.xalan" value="${build}/api/xalan"/> <property name="build.doc.saxon" value="${build}/api/saxon"/> <property name="build.lib" value="${build}/lib"/> <!-- Targets --> <target name="prepare" description="Prepare build directories"> <mkdir dir="${build}"/> <mkdir dir="${build.classes}"/> <mkdir dir="${build.lib}"/> <mkdir dir="${build.doc.xalan}"/> <mkdir dir="${build.doc.saxon}"/> </target> <target name="clean" description="Remove build directories"> <delete dir="${build}"/> </target> <target name="classes.xalan" depends="prepare" description="Build Xalan extension classes"> <javac srcdir="${src.xalan}" destdir="${build.classes}"/> </target> <target name="classes.saxon" depends="prepare" description="Build Saxon extension classes"> <javac srcdir="${src.saxon}" destdir="${build.classes}"/> </target> <target name="jar.xalan" depends="classes.xalan" description="Build the Xalan extension jar"> <jar destfile="${build.lib}/${name}-xalan.jar" basedir="${build.classes}" includes="com/nwalsh/xalan/*"> </jar> </target> <target name="jar.saxon" depends="classes.saxon" description="Build the Saxon extension jar"> <jar destfile="${build.lib}/${name}-saxon.jar" basedir="${build.classes}" includes="com/nwalsh/saxon/*"> </jar> </target> <target name="jars" depends="jar.saxon,jar.xalan" description="Build all jars" /> <target name="javadoc.xalan" depends="prepare" description="Build Xalan extension javadocs"> <javadoc sourcepath="${src.xalan}" destdir="${build.doc.xalan}" doctitle="${name}-xalan JavaDoc" windowtitle="${name}-xalan JavaDoc" package="true" author="true" version="true" packagenames="com.nwalsh.xalan.*" /> </target> <target name="javadoc.saxon" depends="prepare" description="Build Saxon extension javadocs"> <javadoc sourcepath="${src.saxon}" destdir="${build.doc.saxon}" doctitle="${name}-saxon JavaDoc" windowtitle="${name}-saxon JavaDoc" package="true" author="true" version="true" packagenames="com.nwalsh.saxon.*" /> </target> <target name="javadocs" depends="javadoc.xalan,javadoc.saxon" description="Build all javadocs" /> <target name="all" depends="jars,javadocs" description="Build everything" /> </project> --- NEW FILE: ChangeLog --- 2002-11-17 Norman Walsh <nw...@us...> * build.xml: New file. 2002-05-17 Norman Walsh <nw...@us...> * Makefile: Fix bugs in jar creation 2002-03-21 Norman Walsh <nw...@us...> * Makefile: Abandon support for Saxon 6.4.2 2001-11-15 Norman Walsh <nw...@us...> * Makefile: Support saxon 6.5 2001-09-26 Norman Walsh <nw...@us...> * Makefile: Bug #465146: use in extensions/Makefile 2001-09-22 Norman Walsh <nw...@us...> * Makefile: Support Saxon 6.4.4 2001-07-16 Norman Walsh <nw...@us...> * Makefile: Produce correct 6.4.2/6.4.3 jar files 2001-07-07 Norman Walsh <nw...@us...> * Makefile: Remove old versions of Saxon from Makefile; make sure jars are always up-to-date 2001-05-21 Norman Walsh <nw...@us...> * Makefile: Tweak Makefile for Saxon 6.3 2001-04-02 Norman Walsh <nw...@us...> * .cvsignore, Makefile, prj.el: New file. --- NEW FILE: prj.el --- (jde-set-project-name "xalan") (jde-set-variables '(jde-gen-session-bean-template (quote ("(jde-import-insert-imports-into-buffer (list \"javax.ejb.*\" \"java.rmi.RemoteException\"))" "(jde-wiz-update-implements-clause \"SessionBean\")" "'> \"public void ejbActivate() throws RemoteException {\"'>'n \"}\"'>'n '>'n" "'> \"public void ejbPassivate() throws RemoteException {\"'>'n \"}\"'>'n '>'n" "'> \"public void ejbRemove() throws RemoteException {\"'>'n \"}\"'>'n '>'n" "'> \"public void setSessionContext(SessionContext ctx) throws RemoteException {\"" "'>'n \"}\"'>'n '>'n" "'> \"public void unsetSessionContext() throws RemoteException {\"'>'n \"}\"'>'n '>'n'>"))) '(jde-gen-beep (quote ("(end-of-line) '&" "\"Toolkit.getDefaultToolkit().beep();\"'>'n'>"))) '(jde-which-method-format (quote ("[" jde-which-method-current "]"))) '(jde-run-classic-mode-vm nil) '(jde-javadoc-gen-nodeprecatedlist nil) '(jde-which-method-max-length 20) '(jde-imenu-include-classdef t) '(jde-javadoc-gen-link-online nil) '(jde-gen-code-templates (quote (("Get Set Pair" . jde-gen-get-set) ("toString method" . jde-gen-to-string-method) ("Action Listener" . jde-gen-action-listener) ("Window Listener" . jde-gen-window-listener) ("Mouse Listener" . jde-gen-mouse-listener) ("Mouse Motion Listener" . jde-gen-mouse-motion-listener) ("Inner Class" . jde-gen-inner-class) ("println" . jde-gen-println) ("beep" . jde-gen-beep) ("property change support" . jde-gen-property-change-support) ("EJB Entity Bean" . jde-gen-entity-bean) ("EJB Session Bean" . jde-gen-session-bean)))) '(jde-gen-cflow-else (quote ("(if (jde-parse-comment-or-quoted-p)" "'(l \"else\")" "'(l '> \"else \"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n'>'r'n" "\"} // end of else\"'>'n'>)" ")"))) '(jde-make-args "") '(jde-javadoc-gen-destination-directory "JavaDoc") '(jde-mode-line-format (quote ("-" mode-line-mule-info mode-line-modified mode-line-frame-identification mode-line-buffer-identification " " global-mode-string " %[(" mode-name mode-line-process minor-mode-alist "%n" ")%]--" (line-number-mode "L%l--") (column-number-mode "C%c--") (-3 . "%p") (jde-which-method-mode ("--" jde-which-method-format "--")) "-%-"))) '(jde-mode-abbreviations (quote (("ab" . "abstract") ("bo" . "boolean") ("br" . "break") ("by" . "byte") ("byv" . "byvalue") ("cas" . "cast") ("ca" . "catch") ("ch" . "char") ("cl" . "class") ("co" . "const") ("con" . "continue") ("de" . "default") ("dou" . "double") ("el" . "else") ("ex" . "extends") ("fa" . "false") ("fi" . "final") ("fin" . "finally") ("fl" . "float") ("fo" . "for") ("fu" . "future") ("ge" . "generic") ("go" . "goto") ("impl" . "implements") ("impo" . "import") ("ins" . "instanceof") ("in" . "int") ("inte" . "interface") ("lo" . "long") ("na" . "native") ("ne" . "new") ("nu" . "null") ("pa" . "package") ("pri" . "private") ("pro" . "protected") ("pu" . "public") ("re" . "return") ("sh" . "short") ("st" . "static") ("su" . "super") ("sw" . "switch") ("sy" . "synchronized") ("th" . "this") ("thr" . "throw") ("throw" . "throws") ("tra" . "transient") ("tr" . "true") ("vo" . "void") ("vol" . "volatile") ("wh" . "while")))) '(jde-imenu-enable t) '(jde-compile-option-verbose nil) '(jde-db-option-heap-size (quote ((1 . "megabytes") (16 . "megabytes")))) '(jde-bug-debugger-host-address "localhost" t) '(jde-make-working-directory "") '(jde-bug-breakpoint-marker-colors (quote ("red" . "yellow"))) '(jde-javadoc-gen-use nil) '(jde-gen-buffer-boilerplate nil) '(jde-bug-raise-frame-p t) '(jde-db-option-application-args (quote ("-IN" "/share/xsl/docbook/test/exttest.xml" "-XSL " "/share/xsl/docbook/test/exttest.xsl")) t) '(jde-javadoc-gen-nonavbar nil) '(jde-javadoc-gen-nohelp nil) '(jde-bug-vm-includes-jpda-p nil) '(jde-gen-jfc-app-buffer-template (quote ("(funcall jde-gen-boilerplate-function) '>'n" "\"import java.awt.Dimension;\" '>'n" "\"import java.awt.Graphics;\" '>'n" "\"import java.awt.Graphics2D;\" '>'n" "\"import java.awt.Color;\" '>'n" "\"import java.awt.geom.Ellipse2D;\" '>'n" "\"import java.awt.event.WindowAdapter;\" '>'n" "\"import java.awt.event.WindowEvent;\" '>'n" "\"import javax.swing.JFrame;\" '>'n" "\"import javax.swing.JPanel;\" '>'n" "\"import javax.swing.JScrollPane;\" '>'n" "\"import javax.swing.JMenuBar;\" '>'n" "\"import javax.swing.JMenu;\" '>'n" "\"import java.awt.event.ActionEvent;\" '>'n" "\"import javax.swing.AbstractAction;\" '>'n '>'n" "\"/**\" '>'n" "\" * \"" "(file-name-nondirectory buffer-file-name) '>'n" "\" *\" '>'n" "\" *\" '>'n" "\" * Created: \" (current-time-string) '>'n" "\" *\" '>'n" "\" * @author <a href=\\\"mailto: \\\"\" (user-full-name) \"</a>\"'>'n" "\" * @version\" '>'n" "\" */\" '>'n" "'>'n" "\"public class \"" "(file-name-sans-extension (file-name-nondirectory buffer-file-name))" "\" extends JFrame\"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n" "\"class Canvas extends JPanel\"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n" "\"public Canvas () \"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n" "\"setSize(getPreferredSize());\" '>'n" "\"Canvas.this.setBackground(Color.white);\" '>'n" "\"}\"'>'n '>'n" "\"public Dimension getPreferredSize() \"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n" "\"return new Dimension(600, 600);\" '>'n" "\"}\"'>'n '>'n" "\"public void paintComponent(Graphics g) \"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n" "\"super.paintComponent(g);\" '>'n" "\"Graphics2D g2d = (Graphics2D) g;\" '>'n" "\"Ellipse2D circle = new Ellipse2D.Double(0d, 0d, 100d, 100d);\" '>'n" "\"g2d.setColor(Color.red);\" '>'n" "\"g2d.translate(10, 10);\" '>'n" "\"g2d.draw(circle);\" '>'n" "\"g2d.fill(circle);\" '>'n" "\"}\"'>'n " "\"}\"'>'n '>'n" "\"public \"" "(file-name-sans-extension (file-name-nondirectory buffer-file-name))" "\"()\"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n" "\"super(\\\"\" (P \"Enter app title: \") \"\\\");\" '>'n" "\"setSize(300, 300);\" '>'n" "\"addWindowListener(new WindowAdapter() \"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n" "\"public void windowClosing(WindowEvent e) {System.exit(0);}\" '>'n" "\"public void windowOpened(WindowEvent e) {}\" '>'n" "\"});\"'>'n" "\"setJMenuBar(createMenu());\" '>'n" "\"getContentPane().add(new JScrollPane(new Canvas()));\" '>'n" "\"}\"'>'n" "'>'n" "\"public static void main(String[] args) \"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n" "'>'n" "(file-name-sans-extension (file-name-nondirectory buffer-file-name))" "\" f = new \"" "(file-name-sans-extension (file-name-nondirectory buffer-file-name))" "\"();\" '>'n" "\"f.show();\" '>'n" "\"}\"'>'n '>'n" "\"protected JMenuBar createMenu() \"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n" "\"JMenuBar mb = new JMenuBar();\" '>'n" "\"JMenu menu = new JMenu(\\\"File\\\");\" '>'n" "\"menu.add(new AbstractAction(\\\"Exit\\\") \"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n" "\"public void actionPerformed(ActionEvent e) \"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n" "\"System.exit(0);\" '>'n" "\"}\" '>'n" "\"});\" '>'n" "\"mb.add(menu);\" '>'n" "\"return mb;\" '>'n" "\"}\"'>'n " "\"} // \"'>" "(file-name-sans-extension (file-name-nondirectory buffer-file-name))" "'>'n"))) '(jde-bug-key-bindings (quote (("[? ? ?]" . jde-bug-step-over) ("[? ? ?]" . jde-bug-step-into) ("[? ? ?]" . jde-bug-step-into-all) ("[? ? ?]" . jde-bug-step-out) ("[? ? ?]" . jde-bug-continue) ("[? ? ?]" . jde-bug-toggle-breakpoint)))) '(jde-compile-finish-hook (quote (jde-compile-finish-refresh-speedbar jde-compile-finish-flush-completion-cache))) '(jde-compile-option-nowarn nil) '(jde-setnu-mode-threshold 20000) '(jde-run-java-vm-w "javaw") '(jde-compile-option-encoding nil) '(jde-run-option-java-profile (quote (nil . "./java.prof"))) '(jde-bug-jpda-directory "/usr/local/jdk1.2.2" t) '(jde-read-compile-args nil) '(jde-run-java-vm "java") '(jde-db-option-verbose (quote (nil nil nil))) '(jde-which-method-class-min-length 4) '(jde-db-read-app-args nil) '(jde-javadoc-gen-nodeprecated nil) '(jde-run-option-heap-profile (quote (nil "./java.hprof" 5 20 "Allocation objects"))) '(jde-gen-println (quote ("(end-of-line) '&" "\"System.out.println(\" (P \"Print out: \") \");\" '>'n'>"))) '(jde-enable-abbrev-mode nil) '(jde-auto-parse-max-buffer-size 50000) '(jde-gen-cflow-main (quote ("(if (jde-parse-comment-or-quoted-p)" "'(l \"main\")" "'(l '> \"public static void main (String[] args) \"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n'>'r'n" "\"} // end of main ()\"'>'n'>)" ")"))) '(jde-javadoc-exception-tag-template "\"* @exception \" type \" if an error occurs\"") '(jde-global-classpath nil t) '(jde-gen-window-listener-template (quote ("(end-of-line) '& (P \"Window name: \")" "\".addWindowListener(new WindowAdapter() \"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n" "'> \"public void windowActivated(WindowEvent e) \"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n" "\"}\"" "'>'n \"public void windowClosed(WindowEvent e)\"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n" "'>'n \"}\"" "'>'n \"public void windowClosing(WindowEvent e) \"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n" "'>'n \"System.exit(0);\" '>'n \"}\"" "'>'n \"public void windowDeactivated(WindowEvent e) \"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n" "'>'n \"}\"" "'>'n \"public void windowDeiconified(WindowEvent e) \"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n" "'>'n \"}\"" "'>'n \"public void windowIconified(WindowEvent e) \"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n" "'>'n \"}\"" "'>'n \"public void windowOpened(WindowEvent e) \"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n" "'>'n \"}\"" "'>'n \"});\" '>'n'>"))) '(jde-run-working-directory "/share/xsl/docbook/extensions" t) '(jde-gen-property-change-support (quote ("(end-of-line) '&" "\"protected PropertyChangeSupport pcs = new PropertyChangeSupport(this);\" '>'n '>'n" "\"/**\" '>'n" "\"* Adds a PropertyChangeListener to the listener list.\" '>'n" "\"* The listener is registered for all properties.\" '>'n" "\"*\" '>'n" "\"* @param listener The PropertyChangeListener to be added\" '>'n" "\"*/\" '>'n" "\"public void addPropertyChangeListener(PropertyChangeListener listener) \"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n" "\"pcs.addPropertyChangeListener(listener);\" '>'n \"}\" '>'n '>'n" "\"/**\" '>'n" "\"* Removes a PropertyChangeListener from the listener list.\" '>'n" "\"* This removes a PropertyChangeListener that was registered for all properties.\" '>'n" "\"*\" '>'n " "\"* @param listener The PropertyChangeListener to be removed\" '>'n" "\"*/\" '>'n" "\"public void removePropertyChangeListener(PropertyChangeListener listener) \"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n" "'>\"pcs.removePropertyChangeListener(listener);\" '>'n \"}\" '>'n '>'n" "\"/**\" '>'n\"* Adds a PropertyChangeListener for a specific property.\" '>'n" "\"* The listener will be invoked only when a call on firePropertyChange\" '>'n" "\"* names that specific property.\" '>'n" "\"*\" '>'n \"* @param propertyName The name of the property to listen on\" '>'n" "\"* @param listener The PropertyChangeListener to be added\" '>'n \"*/\" '>'n" "\"public void addPropertyChangeListener(String propertyName,\" '>'n" "\"PropertyChangeListener listener) \"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n" "'> \"pcs.addPropertyChangeListener(propertyName, listener);\" '>'n \"}\" '>'n '>'n" "\"/**\" '>'n\"* Removes a PropertyChangeListener for a specific property.\" '>'n" "\"*\" '>'n \"* @param propertyName The name of the property that was listened on\" '>'n" "\"* @param listener The PropertyChangeListener to be removed\" '>'n \"*/\" '>'n" "\"public void removePropertyChangeListener(String propertyName,\" '>'n" "\"PropertyChangeListener listener) \"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n" "'> \"pcs.removePropertyChangeListener(propertyName, listener);\" '>'n \"}\" '>'n '>'n" "\"/**\" '>'n\"* Reports a bound property update to any registered listeners. \" '>'n" "\"* No event is fired if old and new are equal and non-null.\" '>'n" "\"*\" '>'n \"* @param propertyName The programmatic name of the property that was changed\" '>'n" "\"* @param oldValue The old value of the property\" '>'n" "\"* @param newValue The new value of the property.\" '>'n \"*/\" '>'n" "\"public void firePropertyChange(String propertyName, Object oldValue, Object newValue) \"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n" "'> \"pcs.firePropertyChange(propertyName, oldValue, newValue);\" '>'n \"}\" '>'n '>'n" "\"/**\" '>'n\"* Reports a bound property update to any registered listeners. \" '>'n" "\"* No event is fired if old and new are equal and non-null.\" '>'n" "\"* This is merely a convenience wrapper around the more general\" '>'n" "\"* firePropertyChange method that takes Object values.\" '>'n" "\"* No event is fired if old and new are equal and non-null.\" '>'n" "\"*\" '>'n \"* @param propertyName The programmatic name of the property that was changed\" '>'n" "\"* @param oldValue The old value of the property\" '>'n" "\"* @param newValue The new value of the property.\" '>'n \"*/\" '>'n" "\"public void firePropertyChange(String propertyName, int oldValue, int newValue) \"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n" "'> \"pcs.firePropertyChange(propertyName, oldValue, newValue);\" '>'n \"}\" '>'n '>'n" "\"/**\" '>'n\"* Reports a bound property update to any registered listeners. \" '>'n" "\"* No event is fired if old and new are equal and non-null.\" '>'n" "\"* This is merely a convenience wrapper around the more general\" '>'n" "\"* firePropertyChange method that takes Object values.\" '>'n" "\"* No event is fired if old and new are equal and non-null.\" '>'n" "\"*\" '>'n \"* @param propertyName The programmatic name of the property that was changed\" '>'n" "\"* @param oldValue The old value of the property\" '>'n" "\"* @param newValue The new value of the property.\" '>'n \"*/\" '>'n" "\"public void firePropertyChange(String propertyName, boolean oldValue, boolean newValue) \"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n" "'> \"pcs.firePropertyChange(propertyName, oldValue, newValue);\" '>'n \"}\" '>'n '>'n" "\"/**\" '>'n\"* Fires an existing PropertyChangeEvent to any registered listeners.\" '>'n" "\"* No event is fired if the given event's old and new values are equal and non-null. \" '>'n" "\"*\" '>'n \"* @param evt The PropertyChangeEvent object.\" '>'n\"*/\" '>'n" "\"public void firePropertyChange(PropertyChangeEvent evt) \"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n" "'> \"pcs.firePropertyChange(evt);\" '>'n \"}\" '>'n '>'n" "\"/**\" '>'n\"* Checks if there are any listeners for a specific property.\" '>'n" "\"*\" '>'n \"* @param evt The PropertyChangeEvent object.\" '>'n" "\"* @return <code>true</code>if there are one or more listeners for the given property\" '>'n" "\"*/\" '>'n" "\"public boolean hasListeners(String propertyName) \"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n" "'> \"return pcs.hasListeners(propertyName);\" '>'n \"}\" '>'n '>'n'>"))) '(jde-javadoc-describe-interface-template "\"* Describe interface \" (jde-javadoc-code name) \" here.\"") '(jde-imenu-include-signature t) '(jde-db-marker-regexp "^.*: thread=.*, \\(\\(.*[.]\\)*\\)\\([^$]*\\)\\($.*\\)*[.].+(), line=\\([0-9]*\\),") '(jde-gen-mouse-motion-listener-template (quote ("(end-of-line) '& (P \"Component name: \")" "\".addMouseMotionListener(new MouseMotionAdapter() \"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>" "'>'n \"public void mouseDragged(MouseEvent e) \"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n" "\"}\"'>" "'>'n \"public void mouseMoved(MouseEvent e) \"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n" "\"}\"'>" "'>'n \"});\"'>'n'>"))) '(jde-key-bindings (quote (("[? ? ?]" . jde-run-menu-run-applet) ("[? ? ?]" . jde-build) ("[? ? ?]" . jde-compile) ("[? ? ?]" . jde-debug) ("[? ? ?]" . jde-wiz-implement-interface) ("[? ? ?j]" . jde-javadoc-generate-javadoc-template) ("[? ? ?]" . bsh) ("[? ? ?]" . jde-gen-println) ("[? ? ?]" . jde-browse-jdk-doc) ("[? ? ?]" . jde-save-project) ("[? ? ?]" . jde-wiz-update-class-list) ("[? ? ?]" . jde-run) ("[? ? ?]" . speedbar-frame-mode) ("[? ? ?]" . jde-db-menu-debug-applet) ("[? ? ?]" . jde-help-symbol) ("[? ? ?]" . jde-show-class-source) ("[? ? ?]" . jde-import-find-and-import) ("[(control c) (control v) (control ?.)]" . jde-complete-at-point-menu) ("[(control c) (control v) ?.]" . jde-complete-at-point)))) '(jde-gen-cflow-for-i (quote ("(if (jde-parse-comment-or-quoted-p)" "'(l \"fori\")" "'(l '> \"for (int \" (p \"variable: \" var) \" = 0; \"" "(s var)" "\" < \"(p \"upper bound: \" ub)\"; \" (s var) \"++) \"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n'>'r'n" "\"} // end of for (int \" (s var) \" = 0; \"" "(s var) \" < \" (s ub) \"; \" (s var) \"++)\"'>'n'>)" ")"))) '(jde-run-option-classpath (quote ("/share/xsl/docbook/extensions/xalan2/.classes" "/projects/apache/xml-xalan/java/build/classes" "/projects/apache/xml-xalan/java/bin/bsf.jar" "/projects/apache/xml-xalan/java/bin/xerces.jar" "/projects/sun/resolver/.classes" "/projects/apache/xml-xerces/java/build/classes" "/home/ndw/java")) t) '(jde-javadoc-gen-detail-switch (quote ("-protected"))) '(jde-bug-sio-connect-delay 1) '(jde-javadoc-param-tag-template "\"* @param \" name \" \" (jde-javadoc-a type) \" \" (jde-javadoc-code type) \" value\"") '(jde-compile-option-verbose-path nil) '(jde-javadoc-display-doc t) '(jde-imenu-modifier-abbrev-alist (quote (("public" . 43) ("protected" . 177) ("private" . 172) ("static" . 2215) ("transient" . 35) ("volatile" . 126) ("abstract" . 170) ("final" . 182) ("native" . 36) ("synchronized" . 64) ("strictfp" . 37)))) '(jde-db-debugger (quote ("JDEbug" "/usr/local/jdk1.2.2/lib/i386" . "Executable")) t) '(jde-jdk-doc-url "http://www.javasoft.com/products/jdk/1.1/docs/index.html") '(jde-gen-cflow-enable t) '(jde-compiler "javac") '(jde-javadoc-gen-verbose nil) '(jde-javadoc-describe-method-template "\"* Describe \" (jde-javadoc-code name) \" method here.\"") '(jde-gen-class-buffer-template (quote ("(funcall jde-gen-boilerplate-function) '>'n" "\"/**\" '>'n" "\" * \"" "(file-name-nondirectory buffer-file-name) '>'n" "\" *\" '>'n" "\" *\" '>'n" "\" * Created: \" (current-time-string) '>'n" "\" *\" '>'n" "\" * @author <a href=\\\"mailto: \\\"\" (user-full-name) \"</a>\"'>'n" "\" * @version\" '>'n" "\" */\" '>'n'" "'>'n" "\"public class \"" "(file-name-sans-extension (file-name-nondirectory buffer-file-name))" "\" \" (jde-gen-get-super-class)" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n" "\"public \"" "(file-name-sans-extension (file-name-nondirectory buffer-file-name))" "\" ()\"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n" "'>'p'n" "\"}\">" "'>'n" "\"}\">" "\"// \"" "(file-name-sans-extension (file-name-nondirectory buffer-file-name))" "'>'n"))) '(jde-javadoc-checker-level (quote protected)) '(jde-appletviewer-option-vm-args nil) '(jde-run-executable-args nil) '(jde-db-option-garbage-collection (quote (t t))) '(jde-javadoc-gen-stylesheetfile "") '(jde-use-font-lock t) '(jde-compile-option-bootclasspath nil) '(jde-make-program "make") '(jde-javadoc-gen-group nil) '(jde-javadoc-gen-link-offline nil) '(jde-entering-java-buffer-hook (quote (jde-reload-project-file jde-which-method-update-on-entering-buffer))) '(jde-javadoc-gen-doc-title "") '(jde-javadoc-gen-header "") '(jde-run-option-vm-args nil) '(jde-javadoc-gen-window-title "") '(jde-compile-option-directory "" t) '(jde-imenu-create-index-function (quote semantic-create-imenu-index)) '(jde-gen-console-buffer-template (quote ("(funcall jde-gen-boilerplate-function) '>'n" "\"/**\" '>'n" "\" * \"" "(file-name-nondirectory buffer-file-name) '>'n" "\" *\" '>'n" "\" *\" '>'n" "\" * Created: \" (current-time-string) '>'n" "\" *\" '>'n" "\" * @author <a href=\\\"mailto: \\\"\" (user-full-name) \"</a>\"'>'n" "\" * @version\" '>'n" "\" */\" '>'n" "'>'n" "\"public class \"" "(file-name-sans-extension (file-name-nondirectory buffer-file-name))" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n" "\"public \"" "(file-name-sans-extension (file-name-nondirectory buffer-file-name))" "\" ()\"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n" "'>'n" "\"}\"'>'n" "'>'n" "\"public static void main(String[] args)\"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n" "'>'p'n" "\"}\"'>'n" "\"} // \"'>" "(file-name-sans-extension (file-name-nondirectory buffer-file-name))" "'>'n"))) '(jde-read-make-args nil) '(jde-javadoc-gen-noindex nil) '(jde-gen-mouse-listener-template (quote ("(end-of-line) '& (P \"Component name: \")" "\".addMouseListener(new MouseAdapter() \"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'> " "'>'n \"public void mouseClicked(MouseEvent e) \" " "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n" "\"}\" '>" "'>'n \"public void mouseEntered(MouseEvent e) \"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n" "\"}\" '>" "'>'n \"public void mouseExited(MouseEvent e) \"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n" "\"}\"'>" "'>'n \"public void mousePressed(MouseEvent e) \"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n" "\"}\" '>" "'>'n \"public void mouseReleased(MouseEvent e) \"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n" "\"}\"'>" "'>'n \"});\"'>'n'>"))) '(jde-run-option-application-args (quote ("-IN" "test.xml" "-XSL" "test.xsl")) t) '(jde-bug-vm-executable (quote ("java"))) '(jde-db-set-initial-breakpoint t) '(jde-bug-debugger-command-timeout 10) '(jde-db-option-stack-size (quote ((128 . "kilobytes") (400 . "kilobytes")))) '(jde-db-option-properties nil t) '(jde-db-source-directories (quote ("/share/xsl/docbook/extensions/xalan2/" "/projects/apache/xml-xalan/java/src/" "/projects/apache/xml-xerces/java/build/src/" "/projects/sun/resolver/" "/home/ndw/java/")) t) '(jde-run-read-app-args nil) '(jde-gen-to-string-method-template (quote ("(end-of-line) '&" "\"public String toString() \"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n" "\"}\"'>'n'>"))) '(jde-quote-classpath t) '(jde-bug-window-message nil) '(jde-build-use-make nil) '(jde-javadoc-author-tag-template "\"* @author <a href=\\\"mailto:\" user-mail-address \"\\\">\" user-full-name \"</a>\"") '(jde-javadoc-describe-field-template "\"* Describe \" (jde-javadoc-field-type modifiers) \" \" (jde-javadoc-code name) \" here.\"") '(jde-javadoc-gen-link-URL nil) '(jde-compile-option-classpath (quote ("/share/xsl/docbook/extensions/xalan2/.classes" "/projects/apache/xml-xalan/java/build/classes" "/projects/apache/xml-xalan/java/bin/bsf.jar" "/projects/apache/xml-xalan/java/bin/xerces.jar" "/projects/sun/resolver/.classes" "/projects/apache/xml-xerces/java/build/classes" "/home/ndw/java")) t) '(jde-bug-jdk-directory "/usr/local/jdk1.2.2" t) '(jde-gen-boilerplate-function (quote jde-gen-create-buffer-boilerplate)) '(jde-gen-entity-bean-template (quote ("(jde-import-insert-imports-into-buffer (list \"javax.ejb.*\" \"java.rmi.RemoteException\"))" "'> \"public void ejbActivate() throws RemoteException \"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n" "\"}\"'>'n '>'n" "'> \"public void ejbPassivate() throws RemoteException \"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n" "\"}\"'>'n '>'n" "'> \"public void ejbLoad() throws RemoteException \"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n" "\"}\"'>'n '>'n" "'> \"public void ejbStore() throws RemoteException \"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n" "\"}\"'>'n '>'n" "'> \"public void ejbRemove() throws RemoteException \"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n" "\"}\"'>'n '>'n" "'> \"public void setEntityContext(EntityContext ctx) throws RemoteException \"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n" "\"}\"'>'n '>'n" "'> \"public void unsetEntityContext() throws RemoteException \"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n" "\"}\"'>'n '>'n'>"))) '(jde-javadoc-describe-constructor-template "\"* Creates a new \" (jde-javadoc-code name) \" instance.\"") '(jde-bug-server-shmem-name (quote (t . "JDEbug"))) '(jde-db-startup-commands nil) '(jde-javadoc-gen-docletpath nil) '(jde-javadoc-gen-split-index nil) '(jde-compile-option-deprecation nil t) '(jde-import-group-of-rules (quote (("^javax?\\.")))) '(jde-which-method-mode t) '(jde-gen-k&r t) '(jde-javadoc-gen-bottom "") '(jde-javadoc-gen-footer "") '(jde-db-option-classpath (quote ("/share/xsl/docbook/extensions/xalan2/.classes" "/projects/apache/xml-xalan/java/build/classes" "/projects/apache/xml-xalan/java/bin/bsf.jar" "/projects/apache/xml-xalan/java/bin/xerces.jar" "/projects/sun/resolver/.classes" "/projects/apache/xml-xerces/java/build/classes" "/home/ndw/java")) t) '(jde-gen-cflow-for (quote ("(if (jde-parse-comment-or-quoted-p)" "'(l \"for\")" "'(l '> \"for (\" (p \"for-clause: \" clause) \") \"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n'>'r'n" "\"} // end of for (\" (s clause) \")\"'>'n'>)" ")"))) '(jde-run-mode-hook nil) '(jde-db-option-verify (quote (nil t))) '(jde-compile-option-extdirs nil) '(jde-imenu-sort nil) '(jde-gen-get-set-var-template (quote ("(end-of-line) '&" "(P \"Variable type: \" type) \" \"" "(P \"Variable name: \" name) \";\" '>'n '>'n" "\"/**\" '>'n" "\"* Get the value of \" (s name) \".\" '>'n" "\"* @return value of \" (s name) \".\" '>'n" "\"*/\" '>'n" "'>'\"public \" (s type)" "(if (string= \"boolean\" (jde-gen-lookup-named 'type) ) " "\" is\" " "\" get\" ) " "(jde-gen-init-cap (jde-gen-lookup-named 'name))" "\"() \"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\" '>'n" "\"return \" (s name) \";\" '>'n \"}\"" "'>'n '>'n" "\"/**\" '>'n" "\"* Set the value of \" (s name) \".\" '>'n" "\"* @param v Value to assign to \" (s name) \".\" '>'n" "\"*/\" '>'n" "'>'\"public void set\" (jde-gen-init-cap (jde-gen-lookup-named 'name))" "\"(\" (s type) \" v) \" " "(if jde-gen-k&r " "()" "'>'n)" "\"{\" '>'n" "'>'\"this.\" (s name) \" = v;\" '>'n \"}\" '>'n'>"))) '(jde-bug-saved-breakpoints nil) '(jde-compile-option-sourcepath (quote ("/share/xsl/docbook/extensions/xalan2" "/projects/apache/xml-xalan/java/build/src" "/projects/apache/xml-xerces/java/build/src" "/projects/sun/resolver")) t) '(jde-gen-cflow-if (quote ("(if (jde-parse-comment-or-quoted-p)" "'(l \"if\")" "'(l '> \"if (\" (p \"if-clause: \" clause) \") \"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n'>'r'n" "\"} // end of if (\" (s clause) \")\"'>'n'>)" ")"))) '(jde-db-option-java-profile (quote (nil . "./java.prof"))) '(jde-javadoc-gen-author t) '(jde-compile-option-depend-switch (quote ("-Xdepend"))) '(jde-setnu-mode-enable nil) '(jde-run-applet-doc "") '(jde-compile-option-vm-args nil) '(jde-javadoc-gen-overview "") '(jde-javadoc-gen-notree nil) '(jde-run-option-garbage-collection (quote (t t))) '(jde-db-mode-hook nil) '(jde-javadoc-command-path "javadoc") '(jde-db-option-heap-profile (quote (nil "./java.hprof" 5 20 "Allocation objects"))) '(jde-import-group-function (quote jde-import-group-of)) '(jde-db-read-vm-args nil) '(jde-bug-debug nil) '(jde-javadoc-end-block-template nil) '(jde-javadoc-gen-packages nil) '(jde-gen-cflow-if-else (quote ("(if (jde-parse-comment-or-quoted-p)" "'(l \"ife\")" "'(l '> \"if (\" (p \"if-clause: \" clause) \") \"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n'>'r'n" "\"} // end of if (\" (s clause) \")\"'> n" "'> \"else \"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n'>'r'n" "\"} // end of if (\" (s clause) \")else\"'>'n'>)" ")"))) '(jde-gen-cflow-while (quote ("(if (jde-parse-comment-or-quoted-p)" "'(l \"while\")" "'(l '> \"while (\" (p \"while-clause: \" clause) \") \"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n'>'r'n" "\"} // end of while (\" (s clause) \")\"'>'n'>)" ")"))) '(jde-bug-server-socket (quote (t . "2112"))) '(jde-imenu-include-modifiers nil) '(jde-appletviewer-option-encoding "") '(jde-bug-breakpoint-cursor-colors (quote ("cyan" . "brown"))) '(jde-compile-option-target (quote ("1.1"))) '(jde-run-executable "") '(jde-run-option-heap-size (quote ((1 . "megabytes") (16 . "megabytes")))) '(jde-gen-cflow-switch (quote ("(if (jde-parse-comment-or-quoted-p)" "'(l \"switch\")" "'(l '> \"switch (\" (p \"switch-condition: \" clause) \") \"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n'" "\"case \" (p \"first value: \") \":\"'>'n'>'p'n" "\"break;\"'>'n'>'p'n" "\"default:\"'>'n'>'p'n" "\"break;\"'>'n" "\"} // end of switch (\" (s clause) \")\"'>'n'>)" ")"))) '(jde-which-method-abbrev-symbol "~") '(jde-db-option-vm-args nil) '(jde-run-application-class "org.apache.xalan.xslt.Process" t) '(jde-javadoc-gen-doclet "") '(jde-import-auto-sort nil) '(jde-run-option-verbose (quote (nil nil nil))) '(jde-project-file-name "prj.el") '(jde-compile-option-debug (quote ("selected" (t nil nil))) t) '(jde-bug-jre-home "") '(jde-import-sorted-groups nil) '(jde-run-applet-viewer "") '(jde-javadoc-return-tag-template "\"* @return \" (jde-javadoc-a type) \" \" (jde-javadoc-code type) \" value\"") '(jde-javadoc-gen-version t) '(jde-javadoc-gen-helpfile "") '(jde-import-excluded-packages (quote ("bsh.*"))) '(jde-run-read-vm-args nil) '(jde-help-docsets nil) '(jde-gen-inner-class-template (quote ("(end-of-line) '& \"class \" (P \"Class name: \" class)" "(P \"Superclass: \" super t)" "(let ((parent (jde-gen-lookup-named 'super)))" "(if (not (string= parent \"\"))" "(concat \" extends \" parent ))) " "(if jde-gen-k&r " "()" "'>'n)" "\"{\" '>'n" "\"public \" (s class) \"() \"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n" "\"}\"'>'n" "\"}\" '>'n'>"))) '(jde-auto-parse-buffer-interval 180) '(jde-run-option-verify (quote (nil t))) '(jde-import-reverse-sort-group nil) '(jde-compile-option-optimize nil) '(jde-gen-cflow-case (quote ("(if (jde-parse-comment-or-quoted-p)" "'(l \"case\")" "'(l 'n \"case \" (p \"value: \") \":\"'>'n'>'p'n" "\"break;\"'>'n'>'p)" ")"))) '(jde-compile-option-depend nil) '(jde-javadoc-describe-class-template "\"* Describe class \" (jde-javadoc-code name) \" here.\"") '(jde-javadoc-gen-serialwarn nil) '(jde-gen-action-listener-template (quote ("'& (P \"Component name: \")" "\".addActionListener(new ActionListener() \"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n" "\"public void actionPerformed(ActionEvent e) \"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n" "\"}\"'>'n \"});\"'>'n'>"))) '(jde-auto-parse-enable t) '(jde-compile-option-command-line-args "") '(jde-gen-buffer-templates (quote (("Class" . jde-gen-class) ("Console" . jde-gen-console) ("Swing App" . jde-gen-jfc-app)))) '(jde-project-context-switching-enabled-p t) '(jde-javadoc-gen-args nil) '(jde-run-option-stack-size (quote ((128 . "kilobytes") (400 . "kilobytes")))) '(jde-run-option-properties nil t)) |
Update of /cvsroot/fudaa/fudaa_devel/aide/xml/xsl/doc/pi In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20425/xml/xsl/doc/pi Added Files: rn02re03.html index.html dbhtml.filename.html pr01.html ChangeLog rn02.html rn01.html dbhtml.dir.html Log Message: xml pour l'aide en docbook --- NEW FILE: index.html --- <html><head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>Processing Instruction Reference</title><link rel="stylesheet" href="../ref.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.0"><link rel="home" href="index.html" title="Processing Instruction Reference"><link rel="next" href="pr01.html" title="Introduction"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Processing Instruction Reference</th></tr><tr><td width="20%" align="left"> </td><th width="60%" align="center"> </th><td width="20%" align="right"> <a accesskey="n" href="pr01.html">Next</a></td></tr></table><hr></div><div class="book" lang="en"><div class="titlepage"><div><div><h1 class="title"><a name="d0e1"></a>Processing Instruction Reference</h1></div><div><div class="author"><h3 class="author"><span class="firstname">Jiří</span> <span class="surname">Kosek</span></h3></div></div><div><p class="releaseinfo"> $Id: index.html,v 1.1 2004/06/01 11:13:59 deniger Exp $ </p></div><div><p class="copyright">Copyright © 2003 Jiří Kosek</p></div></div><div></div><hr></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><span class="preface"><a href="pr01.html">Introduction</a></span></dt><dt><span class="reference"><a href="rn01.html">I. HTML PIs</a></span></dt><dd><dl><dt><a href="dbhtml.filename.html"><?dbhtml filename="..."?></a> - Filename for chunk</dt><dt><a href="dbhtml.dir.html"><?dbhtml dir="..."?></a> - Directory for chunk</dt></dl></dd><dt><span class="reference"><a href="rn02.html">II. Common PIs</a></span></dt><dd><dl><dt><a href="rn02re03.html"></a> - </dt></dl></dd></dl></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"> </td><td width="20%" align="center"> </td><td width="40%" align="right"> <a accesskey="n" href="pr01.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"> </td><td width="20%" align="center"> </td><td width="40%" align="right" valign="top"> Introduction</td></tr></table></div></body></html> --- NEW FILE: ChangeLog --- 2003-05-08 Norman Walsh <nw...@us...> * .cvsignore: New file. 2003-05-01 Jirka Kosek <ko...@us...> * Makefile: New file. --- NEW FILE: pr01.html --- <html><head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>Introduction</title><link rel="stylesheet" href="../ref.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.0"><link rel="home" href="index.html" title="Processing Instruction Reference"><link rel="up" href="index.html" title="Processing Instruction Reference"><link rel="previous" href="index.html" title="Processing Instruction Reference"><link rel="next" href="rn01.html" title="HTML PIs"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Introduction</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="index.html">Prev</a> </td><th width="60%" align="center"> </th><td width="20%" align="right"> <a accesskey="n" href="rn01.html">Next</a></td></tr></table><hr></div><div class="preface" lang="en"><div class="titlepage"><div><div><h2 class="title"><a name="d0e17"></a>Introduction</h2></div></div><div></div></div><p>This is technical reference documentation for the DocBook XSL Stylesheets. It documents processing instructions (PIs) recognized by the stylesheets.</p><p>These PIs can be usually used to change behaviour of stylesheets in a particular place. If you want to change some setting globally it is better to do it via setting appropriate stylesheet parameter if there is such one.</p></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="index.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="index.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="rn01.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Processing Instruction Reference </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> HTML PIs</td></tr></table></div></body></html> --- NEW FILE: rn02re03.html --- <html><head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title></title><link rel="stylesheet" href="../ref.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.0"><link rel="home" href="index.html" title="Processing Instruction Reference"><link rel="up" href="rn02.html" title="Common PIs"><link rel="previous" href="rn02.html" title="Common PIs"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center"></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="rn02.html">Prev</a> </td><th width="60%" align="center">Common PIs</th><td width="20%" align="right"> </td></tr></table><hr></div><div class="refentry" lang="en"><a name="d0e99"></a><div class="titlepage"><div></div><div></div></div><div class="refnamediv"><h2>Name</h2><p> — </p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="rn02.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="rn02.html">Up</a></td><td width="40%" align="right"> </td></tr><tr><td width="40%" align="left" valign="top">Common PIs </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> </td></tr></table></div></body></html> --- NEW FILE: dbhtml.filename.html --- <html><head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title><?dbhtml filename="..."?></title><link rel="stylesheet" href="../ref.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.0"><link rel="home" href="index.html" title="Processing Instruction Reference"><link rel="up" href="rn01.html" title="HTML PIs"><link rel="previous" href="rn01.html" title="HTML PIs"><link rel="next" href="dbhtml.dir.html" title="<?dbhtml dir="..."?>"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center"><?dbhtml filename="..."?></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="rn01.html">Prev</a> </td><th width="60%" align="center">HTML PIs</th><td width="20%" align="right"> <a accesskey="n" href="dbhtml.dir.html">Next</a></td></tr></table><hr></div><div class="refentry" lang="en"><a name="dbhtml.filename"></a><div class="titlepage"><div></div><div></div></div><div class="refnamediv"><h2>Name</h2><p>filename — Filename for chunk</p></div><div class="refsect1" lang="en"><a name="d0e49"></a><h2>Description</h2><p>Sets the name for chunked file. PI must be child of element which goes into chunk (e.g. chapter, section). You can also set <a href="dbhtml.dir.html" title="<?dbhtml dir="..."?>">directory</a> for chunk.</p><p>Another way to control filename of chunk is enabling <a href="../html/use.id.as.filename.html"><i class="parameter"><tt>use.id.as.filename</tt></i></a> parameter.</p></div><div class="refsect1" lang="en"><a name="d0e62"></a><h2>Example</h2><pre class="programlisting"><section> <title>Configuring pencil</title> <?dbhtml filename="configuration.html"?> ... </section></pre></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="rn01.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="rn01.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="dbhtml.dir.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">HTML PIs </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> <?dbhtml dir="..."?></td></tr></table></div></body></html> --- NEW FILE: dbhtml.dir.html --- <html><head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title><?dbhtml dir="..."?></title><link rel="stylesheet" href="../ref.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.0"><link rel="home" href="index.html" title="Processing Instruction Reference"><link rel="up" href="rn01.html" title="HTML PIs"><link rel="previous" href="dbhtml.filename.html" title="<?dbhtml filename="..."?>"><link rel="next" href="rn02.html" title="Common PIs"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center"><?dbhtml dir="..."?></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="dbhtml.filename.html">Prev</a> </td><th width="60%" align="center">HTML PIs</th><td width="20%" align="right"> <a accesskey="n" href="rn02.html">Next</a></td></tr></table><hr></div><div class="refentry" lang="en"><a name="dbhtml.dir"></a><div class="titlepage"><div></div><div></div></div><div class="refnamediv"><h2>Name</h2><p>dir — Directory for chunk</p></div><div class="refsect1" lang="en"><a name="d0e78"></a><h2>Description</h2><p>Sets the directory for chunked file. PI must be child of element which goes into chunk (e.g. chapter, section). Resulting directory is inherited from ancestor elements if they also contain this PI. You can also set <a href="dbhtml.filename.html" title="<?dbhtml filename="..."?>">filename</a> for chunk.</p><p>PI can specify both filename and directory at the same time.</p></div><div class="refsect1" lang="en"><a name="d0e88"></a><h2>Example</h2><pre class="programlisting"><section> <title>Configuring pencil</title> <?dbhtml dir="config" filename="pencil.html"?> ... </section></pre></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="dbhtml.filename.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="rn01.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="rn02.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><?dbhtml filename="..."?> </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> Common PIs</td></tr></table></div></body></html> --- NEW FILE: rn02.html --- <html><head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>Common PIs</title><link rel="stylesheet" href="../ref.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.0"><link rel="home" href="index.html" title="Processing Instruction Reference"><link rel="up" href="index.html" title="Processing Instruction Reference"><link rel="previous" href="dbhtml.dir.html" title="<?dbhtml dir="..."?>"><link rel="next" href="rn02re03.html" title=""></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Common PIs</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="dbhtml.dir.html">Prev</a> </td><th width="60%" align="center"> </th><td width="20%" align="right"> <a accesskey="n" href="rn02re03.html">Next</a></td></tr></table><hr></div><div class="reference" lang="en"><a name="d0e93"></a><div class="titlepage"><div><div><h1 class="title"><a name="d0e93"></a>Common PIs</h1></div></div><div></div><hr></div><div class="partintro" lang="en"><div><div></div><div></div></div><p>Following PIs are recognized in all output formats.</p><div class="toc"><p><b>Table of Contents</b></p><dl><dt><a href="rn02re03.html"></a> - </dt></dl></div></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="dbhtml.dir.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="index.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="rn02re03.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><?dbhtml dir="..."?> </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> </td></tr></table></div></body></html> --- NEW FILE: rn01.html --- <html><head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>HTML PIs</title><link rel="stylesheet" href="../ref.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.0"><link rel="home" href="index.html" title="Processing Instruction Reference"><link rel="up" href="index.html" title="Processing Instruction Reference"><link rel="previous" href="pr01.html" title="Introduction"><link rel="next" href="dbhtml.filename.html" title="<?dbhtml filename="..."?>"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">HTML PIs</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="pr01.html">Prev</a> </td><th width="60%" align="center"> </th><td width="20%" align="right"> <a accesskey="n" href="dbhtml.filename.html">Next</a></td></tr></table><hr></div><div class="reference" lang="en"><a name="d0e24"></a><div class="titlepage"><div><div><h1 class="title"><a name="d0e24"></a>HTML PIs</h1></div></div><div></div><hr></div><div class="partintro" lang="en"><div><div></div><div></div></div><p>Following PIs are processed only if you are generating HTML output. This means that you are using HTML, XHTML, HTML Help or JavaHelp output format.</p><p>Name of this PI is <tt class="literal">dbhtml</tt> and its behaviour is controlled with following “<span class="quote">attributes</span>”.</p><div class="toc"><p><b>Table of Contents</b></p><dl><dt><a href="dbhtml.filename.html"><?dbhtml filename="..."?></a> - Filename for chunk</dt><dt><a href="dbhtml.dir.html"><?dbhtml dir="..."?></a> - Directory for chunk</dt></dl></div></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="pr01.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="index.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="dbhtml.filename.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Introduction </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> <?dbhtml filename="..."?></td></tr></table></div></body></html> |
From: Frederic D. <de...@us...> - 2004-06-01 11:14:20
|
Update of /cvsroot/fudaa/fudaa_devel/aide/xml/xsl/manpages In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20425/xml/xsl/manpages Added Files: ChangeLog README docbook.xsl sect23.xsl synop.xsl lists.xsl xref.xsl Log Message: xml pour l'aide en docbook --- NEW FILE: lists.xsl --- <?xml version='1.0'?> <!-- vim:set sts=2 shiftwidth=2 syntax=sgml: --> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'> <xsl:template match="para[ancestor::listitem or ancestor::step]| simpara[ancestor::listitem or ancestor::step]| remark[ancestor::listitem or ancestor::step]"> <xsl:for-each select="node()"> <xsl:choose> <xsl:when test="self::literallayout|self::screen|self::programlisting| self::itemizedlist|self::orderedlist|self::variablelist| self::simplelist"> <xsl:text> </xsl:text> <xsl:apply-templates select="."/> </xsl:when> <xsl:when test="self::text()"> <xsl:if test="starts-with(translate(.,' ',' '), ' ') and preceding-sibling::node()[name(.)!='']"> <xsl:text> </xsl:text> </xsl:if> <xsl:variable name="content"> <xsl:apply-templates select="."/> </xsl:variable> <xsl:value-of select="normalize-space($content)"/> <xsl:if test="translate(substring(., string-length(.), 1),' ',' ') = ' ' and following-sibling::node()[name(.)!='']"> <xsl:text> </xsl:text> </xsl:if> </xsl:when> <xsl:otherwise> <xsl:variable name="content"> <xsl:apply-templates select="."/> </xsl:variable> <xsl:value-of select="normalize-space($content)"/> </xsl:otherwise> </xsl:choose> </xsl:for-each> <xsl:text> </xsl:text> <xsl:if test="following-sibling::para or following-sibling::simpara or following-sibling::remark"> <!-- Make sure multiple paragraphs within a list item don't --> <!-- merge together. --> <xsl:text> </xsl:text> </xsl:if> </xsl:template> <xsl:template match="varlistentry|glossentry"> <xsl:text> .TP </xsl:text> <xsl:apply-templates/> </xsl:template> <xsl:template match="variablelist[ancestor::listitem or ancestor::step]| glosslist[ancestor::listitem or ancestor::step]"> <xsl:text> .RS </xsl:text> <xsl:apply-templates/> <xsl:text> .RE .IP </xsl:text> </xsl:template> <xsl:template match="varlistentry/term|glossterm"> <xsl:variable name="content"> <xsl:apply-templates/> </xsl:variable> <xsl:value-of select="normalize-space($content)"/> <xsl:text>, </xsl:text> </xsl:template> <xsl:template match="varlistentry/term[position()=last()]|glossterm[position()=last()]" priority="2"> <xsl:variable name="content"> <xsl:apply-templates/> </xsl:variable> <xsl:value-of select="normalize-space($content)"/> </xsl:template> <xsl:template match="varlistentry/listitem|glossdef"> <xsl:text> </xsl:text> <xsl:apply-templates/> </xsl:template> <xsl:template match="itemizedlist/listitem"> <xsl:text>\(bu </xsl:text> <xsl:apply-templates/> <xsl:if test="following-sibling::listitem"> <xsl:text>.TP </xsl:text> </xsl:if> </xsl:template> <xsl:template match="orderedlist/listitem|procedure/step"> <xsl:number format="1."/> <xsl:text> </xsl:text> <xsl:apply-templates/> <xsl:if test="position()!=last()"> <xsl:text>.TP </xsl:text> </xsl:if> </xsl:template> <xsl:template match="itemizedlist|orderedlist|procedure"> <xsl:text> .TP 3 </xsl:text> <xsl:apply-templates/> <xsl:text>.LP </xsl:text> </xsl:template> <xsl:template match="itemizedlist[ancestor::listitem or ancestor::step]| orderedlist[ancestor::listitem or ancestor::step]| procedure[ancestor::listitem or ancestor::step]"> <xsl:text> .RS .TP 3 </xsl:text> <xsl:apply-templates/> <xsl:text>.LP .RE .IP </xsl:text> </xsl:template> <!-- simplelist --> <xsl:template match="simplelist[@type='inline']"> <xsl:apply-templates/> </xsl:template> <xsl:template match="simplelist[@type='inline']/member"> <xsl:apply-templates/> <xsl:text>, </xsl:text> </xsl:template> <xsl:template match="simplelist[@type='inline']/member[position()=last()]" priority="2"> <xsl:apply-templates/> </xsl:template> <xsl:template match="simplelist[@type='vert' and @columns='1']"> <xsl:text> .IP </xsl:text> <xsl:apply-templates/> <xsl:text>.LP </xsl:text> </xsl:template> <xsl:template match="simplelist[@type='vert' and @columns='1']/member"> <xsl:apply-templates/> <xsl:text> </xsl:text> </xsl:template> </xsl:stylesheet> --- NEW FILE: synop.xsl --- <?xml version='1.0'?> <!-- vim:set sts=2 shiftwidth=2 syntax=sgml: --> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'> <xsl:template match="synopfragment"> <xsl:text> .PP </xsl:text> <xsl:apply-templates/> </xsl:template> <!-- there's a bug were an <arg> that's not inside a <group> isn't made bold --> <xsl:template match="group|arg"> <xsl:variable name="choice" select="@choice"/> <xsl:variable name="rep" select="@rep"/> <xsl:variable name="sepchar"> <xsl:choose> <xsl:when test="ancestor-or-self::*/@sepchar"> <xsl:value-of select="ancestor-or-self::*/@sepchar"/> </xsl:when> <xsl:otherwise> <xsl:text> </xsl:text> </xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:if test="position()>1"><xsl:value-of select="$sepchar"/></xsl:if> <xsl:choose> <xsl:when test="$choice='plain'"> <!-- do nothing --> </xsl:when> <xsl:when test="$choice='req'"> <xsl:value-of select="$arg.choice.req.open.str"/> </xsl:when> <xsl:when test="$choice='opt'"> <xsl:value-of select="$arg.choice.opt.open.str"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="$arg.choice.def.open.str"/> </xsl:otherwise> </xsl:choose> <xsl:variable name="arg"> <xsl:apply-templates/> </xsl:variable> <xsl:choose> <xsl:when test="local-name(.) = 'arg' and not(ancestor::arg)"> <!-- Prevent breaking up an argument by wrapping it --> <xsl:call-template name="replace-string"> <xsl:with-param name="content" select="normalize-space($arg)"/> <xsl:with-param name="replace" select="' '"/> <xsl:with-param name="with" select="'\ '"/> </xsl:call-template> </xsl:when> <xsl:otherwise> <xsl:value-of select="normalize-space($arg)"/> </xsl:otherwise> </xsl:choose> <xsl:choose> <xsl:when test="$rep='repeat'"> <xsl:value-of select="$arg.rep.repeat.str"/> </xsl:when> <xsl:when test="$rep='norepeat'"> <xsl:value-of select="$arg.rep.norepeat.str"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="$arg.rep.def.str"/> </xsl:otherwise> </xsl:choose> <xsl:choose> <xsl:when test="$choice='plain'"> <xsl:if test='arg'> <xsl:value-of select="$arg.choice.plain.close.str"/> </xsl:if> </xsl:when> <xsl:when test="$choice='req'"> <xsl:value-of select="$arg.choice.req.close.str"/> </xsl:when> <xsl:when test="$choice='opt'"> <xsl:value-of select="$arg.choice.opt.close.str"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="$arg.choice.def.close.str"/> </xsl:otherwise> </xsl:choose> </xsl:template> <xsl:template match="group/arg"> <xsl:if test="position()>1"> <xsl:value-of select="$arg.or.sep"/> </xsl:if> <!-- Don't use the 'bold' named template here since there may be --> <!-- child elements that require different markup (such as --> <!-- <replaceable>). --> <xsl:text>\fB</xsl:text> <xsl:variable name="arg"> <xsl:apply-templates/> </xsl:variable> <xsl:call-template name="replace-string"> <xsl:with-param name="content" select="normalize-space($arg)"/> <xsl:with-param name="replace" select="' '"/> <xsl:with-param name="with" select="'\ '"/> </xsl:call-template> <xsl:text>\fR</xsl:text> </xsl:template> <xsl:template match="command"> <xsl:apply-templates mode="bold" select="."/> </xsl:template> <xsl:template match="function[not(ancestor::command)]"> <xsl:apply-templates mode="bold" select="."/> </xsl:template> <xsl:template match="parameter[not(ancestor::command)]"> <xsl:apply-templates mode="italic" select="."/> </xsl:template> <xsl:template match="sbr" /> <xsl:template match="cmdsynopsis"> <xsl:text>.ad l .hy 0 </xsl:text> <xsl:text>.HP </xsl:text> <xsl:value-of select="string-length (normalize-space (command)) + 1"/> <xsl:text> </xsl:text> <xsl:apply-templates/> <xsl:text> .ad .hy </xsl:text> </xsl:template> <xsl:template match="synopsis"> <xsl:text> .nf </xsl:text> <xsl:apply-templates/> <xsl:text> .fi </xsl:text> </xsl:template> <xsl:template match="void"> <xsl:text>void</xsl:text> </xsl:template> <xsl:template match="varargs"> <xsl:text>...</xsl:text> </xsl:template> <xsl:template match="funcsynopsisinfo"> <xsl:text> </xsl:text> <xsl:apply-templates/> <xsl:text> .sp </xsl:text> </xsl:template> <!-- disable hyphenation, and use left-aligned filling for the duration of the synopsis, so that line breaks only occur between separate paramdefs. --> <xsl:template match="funcsynopsis"> <xsl:text>.ad l .hy 0 </xsl:text> <xsl:apply-templates/> <xsl:text>.ad .hy </xsl:text> </xsl:template> <!-- TODO: Handle K&R-style parameter lists Comment that used to go with the paramdef template, which is now obsolete and thus deleted --> <!-- replaces all spaces within the funcdef/paramdef with non-breaking spaces --> <xsl:template match="paramdef|funcdef"> <xsl:variable name="rcontent"> <xsl:apply-templates select="*|./*|text()"/> </xsl:variable> <xsl:variable name="content"> <xsl:value-of select="normalize-space($rcontent)"/> </xsl:variable> <xsl:call-template name="replace-string"> <xsl:with-param name="content" select="$content"/> <xsl:with-param name="replace" select="' '"/> <xsl:with-param name="with" select="'\ '"/> </xsl:call-template> <xsl:if test="local-name(.) = 'paramdef' and (following-sibling::paramdef or following-sibling::varargs)"> <xsl:text>, </xsl:text> </xsl:if> </xsl:template> <xsl:template match="funcprototype"> <xsl:variable name="funcprototype"> <xsl:apply-templates select="funcdef"/> </xsl:variable> <xsl:text>.HP </xsl:text> <xsl:value-of select="string-length (normalize-space ($funcprototype)) - 5"/> <xsl:text> </xsl:text> <xsl:value-of select="normalize-space ($funcprototype)"/> <xsl:text>\ (</xsl:text> <xsl:apply-templates select="void|paramdef|varargs"/> <xsl:text>); </xsl:text> </xsl:template> </xsl:stylesheet> --- NEW FILE: ChangeLog --- 2004-02-04 <tw...@us...> * docbook.xsl, lists.xsl: Place-holder implementation for simplelist. 2004-01-30 <tw...@us...> * docbook.xsl: Add replacement dingbat characters. 2003-12-24 <tw...@us...> * lists.xsl: .RS/.RE doesn't nest precisely. Use .IP to fix up the environment. Part of bug #852714. * lists.xsl: Handle comments inside lists (part of bug #852714). 2003-12-15 <tw...@us...> * lists.xsl: Fix nested lists properly. 2003-12-13 <tw...@us...> * docbook.xsl: Use .nf environment for literallayout. * docbook.xsl: Prevent duplicate .nf environments inside informalexample or screen. All fiftenn allowed contained element in these elements will provide its own. 2003-12-12 <tw...@us...> * docbook.xsl: Last commit reverted a previous change -- redo it. 2003-12-11 <tw...@us...> * docbook.xsl: Remove unused rule. * docbook.xsl: Fix literallayout inside para. * lists.xsl: Fix singly-nested lists. 2003-12-10 <tw...@us...> * docbook.xsl: Don't mess up roff markup in tables. 2003-11-06 <tw...@us...> * lists.xsl, synop.xsl: 2003-11-06 Tim Waugh <tw...@re...> * lists.xsl: Normalize space in itemizedlist/listitem. * synop.xsl: Likewise. 2003-05-23 <tw...@us...> * synop.xsl: Only escape option spaces once when args are nested. 2003-05-15 <tw...@us...> * docbook.xsl: Handle refsection as well as refsect1|refsect2 in the manpages stylesheet. 2003-05-09 Norman Walsh <nw...@us...> * synop.xsl, synop.xsl: Patch from Tim Waugh 2003-04-12 Norman Walsh <nw...@us...> * docbook.xsl, synop.xsl: Patches from Tim Waugh 2003-03-15 <jo...@us...> * docbook.xsl: If the refmeta contains no manvolnum, then: - if the refentry contains a funcsynopsis, default to section 3 - otherwise, default to section 1 * docbook.xsl: Don't try and generate man pages with spaces in the filename; replace spaces with underscores. 2003-01-05 <jo...@us...> * docbook.xsl: Second half of fix for #628888: add template for <optional>. * docbook.xsl: Add replacement ulink template from xmlto, fixing bug #619500. Written by Tim Waugh. * docbook.xsl: First part of fix for #628888: - don't use generic italic/bold templates for things like <replaceable>, since <replaceable> can contain other elements, but the templates discard any non-PCDATA content. * docbook.xsl: Prevent a line beginning with a '.' character being interpreted as a troff macro by inserting \& (a zero-width space) before every '.' in text. * xref.xsl: Make xref work again, though I'm not sure why it stopped working. 2002-09-20 Norman Walsh <nw...@us...> * synop.xsl: Joe Orton: Use replace-string from lib.xsl 2002-09-18 Norman Walsh <nw...@us...> * db2man.xsl, docbook.xsl: Renamed * docbook.xsl: Joe Orton: patch to get rid of extra whitespace in author names 2002-09-17 Norman Walsh <nw...@us...> * db2man.xsl: Another patch from Joe Orton * db2man.xsl, synop.xsl: Patch from Joe Orton 2002-07-04 Norman Walsh <nw...@us...> * README, db2man.xsl, lists.xsl, sect23.xsl, synop.xsl, xref.xsl: New file. --- NEW FILE: README --- README for db2man by Martijn van Beers (lo...@us...) I've been working on some stylesheets to convert <refentry>s to man format. I thought I'd submit what I have for inclusion in the docbook-xsl package. See also: http://sourceforge.net/tracker/index.php?func=detail&aid=468779&group_id=21935&atid=373749 --- NEW FILE: sect23.xsl --- <?xml version='1.0'?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'> <xsl:template match="refsect2"> <xsl:text> .Sh "</xsl:text> <xsl:value-of select="substring-before(title[1],' ')"/> <xsl:text>" </xsl:text> <xsl:apply-templates/> </xsl:template> <xsl:template match="refsect2/title"></xsl:template> <xsl:template match="refsect2/programlisting"></xsl:template> <xsl:template match="funcsynopsis"> <xsl:text> .BI "</xsl:text> <xsl:apply-templates/> </xsl:template> <xsl:template match="funcsynopsis/funcprototype"> <xsl:apply-templates/> <xsl:text> ); .br </xsl:text> </xsl:template> <xsl:template match="funcsynopsis/funcprototype/funcdef"> <xsl:apply-templates/> <xsl:value-of select="function"/> <xsl:text> (</xsl:text> </xsl:template> <xsl:template match="funcsynopsis/funcprototype/funcdef/function"></xsl:template> <xsl:template match="funcsynopsis/funcprototype/paramdef"> <xsl:apply-templates/> <xsl:text>" </xsl:text> <xsl:value-of select="parameter"/> <xsl:choose> <xsl:when test="following-sibling::paramdef"> <xsl:text> ", </xsl:text> </xsl:when> </xsl:choose> </xsl:template> <xsl:template match="funcsynopsis/funcprototype/paramdef/parameter"></xsl:template> <xsl:template match="refsect2/informaltable/tgroup/tbody/row"> <xsl:text>.Ip "\(bu \s-1</xsl:text> <xsl:value-of select="entry[1]/parameter[1]"/> <xsl:text>\s0 \- </xsl:text> <xsl:value-of select="normalize-space(entry[2])"/> <xsl:text>" </xsl:text> </xsl:template> <xsl:template match="refsect1"> <xsl:text> .SH "</xsl:text> <xsl:value-of select="translate(title[1],'abcdefghijklmnopqrstuvwxyz', 'ABCDEFGHIJKLMNOPQRSTUVWXYZ')"/> <xsl:text>" </xsl:text> <xsl:apply-templates/> </xsl:template> <xsl:template match="refsynopsisdiv"> <xsl:text> .SH "</xsl:text> <xsl:value-of select="translate(title[1],'abcdefghijklmnopqrstuvwxyz', 'ABCDEFGHIJKLMNOPQRSTUVWXYZ')"/> <xsl:text>" </xsl:text> <xsl:apply-templates/> </xsl:template> <xsl:template match="refsynopsisdiv/title"></xsl:template> <xsl:template match="refsect1/title"></xsl:template> <xsl:template match="para"> <xsl:text>.PP </xsl:text> <xsl:apply-templates/> </xsl:template> <xsl:template match="*"><xsl:apply-templates/></xsl:template> <xsl:template match="refentry"> <xsl:text>." DO NOT MODIFY THIS FILE! .de Sh \" Subsection .br .if t .Sp .ne 5 .PP \fB\\$1\fR .PP .. .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Ip \" List item .br .ie \\n(.$>=3 .ne \\$3 .el .ne 3 .IP "\\$1" \\$2 .. .TH "</xsl:text> <xsl:value-of select="refmeta/refentrytitle[1]"/> <xsl:text>" </xsl:text> <xsl:value-of select="refmeta/manvolnum[1]"/> <xsl:text> "</xsl:text> <xsl:value-of select="@revision"/> <xsl:text>" </xsl:text> <xsl:apply-templates/> </xsl:template> <xsl:template match="refmeta"></xsl:template> <xsl:template match="refnamediv"> <xsl:text>.SH NAME </xsl:text> <xsl:value-of select="refname"/> <xsl:text> \- </xsl:text> <xsl:value-of select="refpurpose"/> </xsl:template> <xsl:template match="refentry/refentrytitle"></xsl:template> <xsl:template match="article/articleinfo/*"></xsl:template> <xsl:template match="term/option"> <xsl:text>\fB</xsl:text><xsl:apply-templates/><xsl:text>\fR</xsl:text> </xsl:template> <xsl:template match="varlistentry"> <xsl:text> .TP </xsl:text> <xsl:apply-templates select="./term"/> <xsl:apply-templates select="./listitem"/> </xsl:template> <xsl:template match="varlistentry/listitem/para"> <xsl:apply-templates/> </xsl:template> <xsl:template match="filename"> <xsl:text> .FN </xsl:text><xsl:apply-templates/> </xsl:template> <xsl:template match="userinput"> <xsl:text> .IP .B </xsl:text><xsl:apply-templates/> </xsl:template> <xsl:template match="envar"> <xsl:text>\fB</xsl:text><xsl:apply-templates/><xsl:text>\fR</xsl:text> </xsl:template> <xsl:template match="filename"> <xsl:text>\fI</xsl:text><xsl:apply-templates/><xsl:text>\fR</xsl:text> </xsl:template> </xsl:stylesheet> --- NEW FILE: xref.xsl --- <?xml version='1.0'?> <!-- vim:set sts=2 shiftwidth=2 syntax=sgml: --> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'> <xsl:template match="xref"> <xsl:variable name="targets" select="key('id', @linkend)"/> <xsl:variable name="target" select="$targets[1]"/> <xsl:variable name="type" select="local-name($target)"/> <xsl:choose> <xsl:when test="$type=''"> <xsl:message> <xsl:text>xref to nonexistent id </xsl:text> <xsl:value-of select="@linkend"/> </xsl:message> </xsl:when> <xsl:when test="$type='refentry'"> <xsl:call-template name="do-citerefentry"> <xsl:with-param name="refentrytitle" select="$target/refmeta/refentrytitle[1]"/> <xsl:with-param name="manvolnum" select="$target/refmeta/manvolnum"/> </xsl:call-template> </xsl:when> <xsl:when test="$type='refname'"> <xsl:call-template name="do-citerefentry"> <xsl:with-param name="refentrytitle" select="$target"/> <xsl:with-param name="manvolnum" select="$target/../../refmeta/manvolnum"/> </xsl:call-template> </xsl:when> <xsl:otherwise> <xsl:text>[xref to </xsl:text> <xsl:value-of select="$type"/> <xsl:text>]</xsl:text> </xsl:otherwise> </xsl:choose> </xsl:template> </xsl:stylesheet> --- NEW FILE: docbook.xsl --- <?xml version='1.0'?> <!-- vim:set sts=2 shiftwidth=2 syntax=sgml: --> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'> <xsl:import href="../html/docbook.xsl"/> <xsl:include href="synop.xsl"/> <xsl:include href="lists.xsl"/> <xsl:include href="xref.xsl"/> <!-- Needed for chunker.xsl (for now): --> <xsl:param name="chunker.output.method" select="'text'"/> <xsl:param name="chunker.output.encoding" select="'ISO-8859-1'"/> <xsl:output method="text" encoding="ISO-8859-1" indent="no"/> <!-- named templates for bold and italic. call like: <xsl:apply-templates mode="bold" select="node-you-want" /> --> <xsl:template mode="bold" match="*"> <xsl:variable name="content"> <xsl:apply-templates/> </xsl:variable> <xsl:text>\fB</xsl:text> <xsl:value-of select="$content"/> <xsl:text>\fR</xsl:text> </xsl:template> <xsl:template mode="italic" match="*"> <xsl:variable name="content"> <xsl:apply-templates/> </xsl:variable> <xsl:text>\fI</xsl:text> <xsl:value-of select="$content"/> <xsl:text>\fR</xsl:text> </xsl:template> <xsl:template match="caution|important|note|tip|warning"> <xsl:text> .RS .Sh "</xsl:text> <!-- capitalize word --> <xsl:value-of select="translate (substring (name(.), 1, 1), 'cintw', 'CINTW')" /> <xsl:value-of select="substring (name(), 2)" /> <xsl:if test="title"> <xsl:text>: </xsl:text> <xsl:value-of select="title[1]"/> </xsl:if> <xsl:text>" </xsl:text> <xsl:apply-templates/> <xsl:text> .RE </xsl:text> </xsl:template> <xsl:template match="refsection|refsect1"> <xsl:choose> <xsl:when test="ancestor::refsection"> <xsl:text> .SS "</xsl:text> <xsl:value-of select="title[1]"/> </xsl:when> <xsl:otherwise> <xsl:text> .SH "</xsl:text> <xsl:value-of select="translate(title[1],'abcdefghijklmnopqrstuvwxyz', 'ABCDEFGHIJKLMNOPQRSTUVWXYZ')"/> </xsl:otherwise> </xsl:choose> <xsl:text>" </xsl:text> <xsl:apply-templates/> </xsl:template> <xsl:template match="refsect2"> <xsl:text> .SS "</xsl:text> <xsl:value-of select="title[1]"/> <xsl:text>" </xsl:text> <xsl:apply-templates/> </xsl:template> <xsl:template match="refsynopsisdiv"> <xsl:text> .SH "SYNOPSIS" </xsl:text> <xsl:apply-templates/> </xsl:template> <xsl:template match="para"> <xsl:text> .PP </xsl:text> <xsl:for-each select="node()"> <xsl:choose> <xsl:when test="self::literallayout|self::informaltable|self::screen| self::programlisting|self::itemizedlist| self::orderedlist|self::variablelist|self::simplelist"> <xsl:text> </xsl:text> <xsl:apply-templates select="."/> </xsl:when> <xsl:when test="self::text()"> <xsl:if test="starts-with(translate(.,' ',' '), ' ') and preceding-sibling::node()[name(.)!='']"> <xsl:text> </xsl:text> </xsl:if> <xsl:variable name="content"> <xsl:apply-templates select="."/> </xsl:variable> <xsl:value-of select="normalize-space($content)"/> <xsl:if test="translate(substring(., string-length(.), 1),' ',' ') = ' ' and following-sibling::node()[name(.)!='']"> <xsl:text> </xsl:text> </xsl:if> </xsl:when> <xsl:otherwise> <xsl:variable name="content"> <xsl:apply-templates select="."/> </xsl:variable> <xsl:value-of select="normalize-space($content)"/> </xsl:otherwise> </xsl:choose> </xsl:for-each> <xsl:text> </xsl:text> </xsl:template> <xsl:template match="simpara"> <xsl:variable name="content"> <xsl:apply-templates/> </xsl:variable> <xsl:text> </xsl:text> <xsl:value-of select="normalize-space($content)"/> <xsl:text> </xsl:text> </xsl:template> <xsl:template match="refentry"> <xsl:variable name="section"> <xsl:choose> <xsl:when test="refmeta/manvolnum"> <xsl:value-of select="refmeta/manvolnum[1]"/> </xsl:when> <xsl:when test=".//funcsynopsis">3</xsl:when> <xsl:otherwise>1</xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="name" select="refnamediv/refname[1]"/> <!-- standard man page width is 64 chars; 6 chars needed for the two (x) volume numbers, and 2 spaces, leaves 56 --> <xsl:variable name="twidth" select="(56 - string-length(refmeta/refentrytitle)) div 2"/> <xsl:variable name="reftitle" select="substring(refmeta/refentrytitle, 1, $twidth)"/> <xsl:variable name="title"> <xsl:choose> <xsl:when test="refentryinfo/title"> <xsl:value-of select="refentryinfo/title"/> </xsl:when> <xsl:when test="../referenceinfo/title"> <xsl:value-of select="../referenceinfo/title"/> </xsl:when> </xsl:choose> </xsl:variable> <xsl:variable name="date"> <xsl:choose> <xsl:when test="refentryinfo/date"> <xsl:value-of select="refentryinfo/date"/> </xsl:when> <xsl:when test="../referenceinfo/date"> <xsl:value-of select="../referenceinfo/date"/> </xsl:when> </xsl:choose> </xsl:variable> <xsl:variable name="productname"> <xsl:choose> <xsl:when test="refentryinfo/productname"> <xsl:value-of select="refentryinfo/productname"/> </xsl:when> <xsl:when test="../referenceinfo/productname"> <xsl:value-of select="../referenceinfo/productname"/> </xsl:when> </xsl:choose> </xsl:variable> <!-- replace spaces with underscores in the filename --> <xsl:variable name="filename"> <xsl:call-template name="replace-string"> <xsl:with-param name="content" select="concat(normalize-space ($name), '.', $section)"/> <xsl:with-param name="replace" select="' '"/> <xsl:with-param name="with" select="'_'"/> </xsl:call-template> </xsl:variable> <xsl:call-template name="write.text.chunk"> <xsl:with-param name="filename" select="$filename"/> <xsl:with-param name="content"> <xsl:text>.\"Generated by db2man.xsl. Don't modify this, modify the source. .de Sh \" Subsection .br .if t .Sp .ne 5 .PP \fB\\$1\fR .PP .. .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Ip \" List item .br .ie \\n(.$>=3 .ne \\$3 .el .ne 3 .IP "\\$1" \\$2 .. .TH "</xsl:text> <xsl:value-of select="translate($reftitle,'abcdefghijklmnopqrstuvwxyz', 'ABCDEFGHIJKLMNOPQRSTUVWXYZ')"/> <xsl:text>" </xsl:text> <xsl:value-of select="$section"/> <xsl:text> "</xsl:text> <xsl:value-of select="normalize-space($date)"/> <xsl:text>" "</xsl:text> <xsl:value-of select="normalize-space($productname)"/> <xsl:text>" "</xsl:text> <xsl:value-of select="$title"/> <xsl:text>" </xsl:text> <xsl:apply-templates/> <xsl:text> </xsl:text> <!-- Author section --> <xsl:choose> <xsl:when test="refentryinfo//author"> <xsl:apply-templates select="refentryinfo" mode="authorsect"/> </xsl:when> <xsl:when test="/book/bookinfo//author"> <xsl:apply-templates select="/book/bookinfo" mode="authorsect"/> </xsl:when> <xsl:when test="/article/articleinfo//author"> <xsl:apply-templates select="/article/articleinfo" mode="authorsect"/> </xsl:when> </xsl:choose> </xsl:with-param> </xsl:call-template> <!-- Now generate stub include pages for every page documented in this refentry (except the page itself) --> <xsl:for-each select="refnamediv/refname"> <xsl:if test=". != $name"> <xsl:call-template name="write.text.chunk"> <xsl:with-param name="filename" select="concat(normalize-space(.), '.', $section)"/> <xsl:with-param name="content" select="concat('.so man', $section, '/', $name, '.', $section, ' ')"/> </xsl:call-template> </xsl:if> </xsl:for-each> </xsl:template> <xsl:template match="refmeta"></xsl:template> <xsl:template match="title"></xsl:template> <xsl:template match="abstract"></xsl:template> <xsl:template match="articleinfo|bookinfo|refentryinfo" mode="authorsect"> <xsl:text>.SH AUTHOR</xsl:text> <xsl:if test="count(.//author)>1"> <xsl:text>S</xsl:text> </xsl:if> <xsl:text> </xsl:text> <xsl:for-each select=".//author"> <xsl:if test="position() > 1"> <xsl:text>, </xsl:text> </xsl:if> <xsl:variable name="author"> <xsl:apply-templates select="."/> </xsl:variable> <xsl:value-of select="normalize-space($author)"/> </xsl:for-each> <xsl:text>. </xsl:text> <xsl:if test=".//editor"> <xsl:text>.br Man page edited by </xsl:text> <xsl:apply-templates select=".//editor"/> <xsl:text>. </xsl:text> </xsl:if> </xsl:template> <xsl:template match="author|editor"> <xsl:call-template name="person.name"/> <xsl:apply-templates select="./affiliation/address/email" /> </xsl:template> <xsl:template match="copyright"> <xsl:text>Copyright \(co </xsl:text> <xsl:apply-templates select="./year" /> <xsl:text> .Sp </xsl:text> </xsl:template> <xsl:template match="email"> <xsl:text> <</xsl:text> <xsl:apply-templates/> <xsl:text>></xsl:text> </xsl:template> <xsl:template match="refnamediv"> <xsl:text>.SH NAME </xsl:text> <xsl:for-each select="refname"> <xsl:if test="position()>1"> <xsl:text>, </xsl:text> </xsl:if> <xsl:value-of select="."/> </xsl:for-each> <xsl:text> \- </xsl:text> <xsl:value-of select="normalize-space (refpurpose)"/> </xsl:template> <xsl:template match="refentry/refentryinfo"></xsl:template> <xsl:template match="informalexample|screen"> <xsl:text> .IP </xsl:text> <xsl:apply-templates/> </xsl:template> <xsl:template match="filename|replaceable|varname"> <xsl:text>\fI</xsl:text><xsl:apply-templates/><xsl:text>\fR</xsl:text> </xsl:template> <xsl:template match="option|userinput|envar|errorcode|constant|type"> <xsl:text>\fB</xsl:text><xsl:apply-templates/><xsl:text>\fR</xsl:text> </xsl:template> <xsl:template match="quote"> <xsl:text>``</xsl:text> <xsl:apply-templates/> <xsl:text>''</xsl:text> </xsl:template> <xsl:template match="programlisting|literallayout"> <xsl:text> .nf </xsl:text> <xsl:apply-templates/> <xsl:text> .fi </xsl:text> </xsl:template> <xsl:template match="optional"> <xsl:value-of select="$arg.choice.opt.open.str"/> <xsl:apply-templates/> <xsl:value-of select="$arg.choice.opt.close.str"/> </xsl:template> <xsl:template name="do-citerefentry"> <xsl:param name="refentrytitle" select="''"/> <xsl:param name="manvolnum" select="''"/> <xsl:apply-templates mode="bold" select="$refentrytitle"/> <xsl:text>(</xsl:text> <xsl:value-of select="$manvolnum"/> <xsl:text>)</xsl:text> </xsl:template> <xsl:template match="citerefentry"> <xsl:call-template name="do-citerefentry"> <xsl:with-param name="refentrytitle" select="refentrytitle"/> <xsl:with-param name="manvolnum" select="manvolnum"/> </xsl:call-template> </xsl:template> <xsl:template match="ulink"> <xsl:variable name="content"> <xsl:apply-templates/> </xsl:variable> <xsl:variable name="url" select="@url"/> <xsl:choose> <xsl:when test="$url=$content or $content=''"> <xsl:text>\fI</xsl:text> <xsl:value-of select="$url"/> <xsl:text>\fR</xsl:text> </xsl:when> <xsl:otherwise> <xsl:value-of select="$content"/> <xsl:text>: \fI</xsl:text> <xsl:value-of select="$url"/> <xsl:text>\fR</xsl:text> </xsl:otherwise> </xsl:choose> </xsl:template> <!-- Translate some entities to textual equivalents. --> <xsl:template name="replace-string"> <xsl:param name="content" select="''"/> <xsl:param name="replace" select="''"/> <xsl:param name="with" select="''"/> <xsl:choose> <xsl:when test="not(contains($content,$replace))"> <xsl:value-of select="$content"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="substring-before($content,$replace)"/> <xsl:value-of select="$with"/> <xsl:call-template name="replace-string"> <xsl:with-param name="content" select="substring-after($content,$replace)"/> <xsl:with-param name="replace" select="$replace"/> <xsl:with-param name="with" select="$with"/> </xsl:call-template> </xsl:otherwise> </xsl:choose> </xsl:template> <xsl:template name="replace-dash"> <xsl:param name="content" select="''"/> <xsl:call-template name="replace-string"> <xsl:with-param name="content" select="$content"/> <xsl:with-param name="replace" select="'-'"/> <xsl:with-param name="with" select="'\-'"/> </xsl:call-template> </xsl:template> <xsl:template name="replace-ndash"> <xsl:param name="content" select="''"/> <xsl:call-template name="replace-string"> <xsl:with-param name="content" select="$content"/> <xsl:with-param name="replace" select="'–'"/> <xsl:with-param name="with" select="'-'"/> </xsl:call-template> </xsl:template> <xsl:template name="replace-mdash"> <xsl:param name="content" select="''"/> <xsl:call-template name="replace-string"> <xsl:with-param name="content" select="$content"/> <xsl:with-param name="replace" select="'—'"/> <xsl:with-param name="with" select="'--'"/> </xsl:call-template> </xsl:template> <xsl:template name="replace-hellip"> <xsl:param name="content" select="''"/> <xsl:call-template name="replace-string"> <xsl:with-param name="content" select="$content"/> <xsl:with-param name="replace" select="'…'"/> <xsl:with-param name="with" select="'...'"/> </xsl:call-template> </xsl:template> <xsl:template name="replace-setmn"> <xsl:param name="content" select="''"/> <xsl:call-template name="replace-string"> <xsl:with-param name="content" select="$content"/> <xsl:with-param name="replace" select="'∖'"/> <xsl:with-param name="with" select="'\\'"/> </xsl:call-template> </xsl:template> <xsl:template name="replace-minus"> <xsl:param name="content" select="''"/> <xsl:value-of select="translate($content,'−','-')"/> </xsl:template> <xsl:template name="replace-backslash"> <xsl:param name="content" select="''"/> <xsl:call-template name="replace-string"> <xsl:with-param name="content" select="$content"/> <xsl:with-param name="replace" select="'\'"/> <xsl:with-param name="with" select="'\\'"/> </xsl:call-template> </xsl:template> <!-- if a period character is output at the beginning of a line it will be interpreted as a groff macro, so prefix all periods with "\&", a zero-width space. --> <xsl:template name="replace-period"> <xsl:param name="content" select="''"/> <xsl:call-template name="replace-string"> <xsl:with-param name="content" select="$content"/> <xsl:with-param name="replace" select="'.'"/> <xsl:with-param name="with" select="'\&.'"/> </xsl:call-template> </xsl:template> <xsl:template name="replace-entities"> <xsl:param name="content" select="''"/> <xsl:call-template name="replace-hellip"> <xsl:with-param name="content"> <xsl:call-template name="replace-minus"> <xsl:with-param name="content"> <xsl:call-template name="replace-mdash"> <xsl:with-param name="content"> <xsl:call-template name="replace-ndash"> <xsl:with-param name="content"> <xsl:call-template name="replace-dash"> <xsl:with-param name="content"> <xsl:call-template name="replace-setmn"> <xsl:with-param name="content"> <xsl:call-template name="replace-period"> <xsl:with-param name="content"> <xsl:call-template name="replace-backslash"> <xsl:with-param name="content" select="$content"/> </xsl:call-template> </xsl:with-param> </xsl:call-template> </xsl:with-param> </xsl:call-template> </xsl:with-param> </xsl:call-template> </xsl:with-param> </xsl:call-template> </xsl:with-param> </xsl:call-template> </xsl:with-param> </xsl:call-template> </xsl:with-param> </xsl:call-template> </xsl:template> <xsl:template match="dingbat.characters"> <!-- now that I'm using the real serializer, all that dingbat malarky --> <!-- isn't necessary anymore... --> <xsl:param name="dingbat">bullet</xsl:param> <xsl:choose> <xsl:when test="$dingbat='bullet'">\(bu</xsl:when> <xsl:when test="$dingbat='copyright'">\(co</xsl:when> <xsl:when test="$dingbat='trademark'">\(tm</xsl:when> <xsl:when test="$dingbat='trade'">\(tm</xsl:when> <xsl:when test="$dingbat='registered'">\(rg</xsl:when> <xsl:when test="$dingbat='service'">(SM)</xsl:when> <xsl:when test="$dingbat='nbsp'"> </xsl:when> <xsl:when test="$dingbat='ldquo'">\(lq</xsl:when> <xsl:when test="$dingbat='rdquo'">\(rq</xsl:when> <xsl:when test="$dingbat='lsquo'">`</xsl:when> <xsl:when test="$dingbat='rsquo'">'</xsl:when> <xsl:when test="$dingbat='em-dash'">\(em</xsl:when> <xsl:when test="$dingbat='mdash'">\(em</xsl:when> <xsl:when test="$dingbat='en-dash'">\(en</xsl:when> <xsl:when test="$dingbat='ndash'">\(en</xsl:when> <xsl:otherwise> <xsl:text>\(bu</xsl:text> </xsl:otherwise> </xsl:choose> </xsl:template> <xsl:template match="text()"> <xsl:call-template name="replace-entities"> <xsl:with-param name="content"> <xsl:value-of select="."/> </xsl:with-param> </xsl:call-template> </xsl:template> <xsl:template match="/"> <xsl:choose> <xsl:when test="//refentry"> <xsl:apply-templates select="//refentry"/> </xsl:when> <xsl:otherwise> <xsl:message>No refentry elements!</xsl:message> </xsl:otherwise> </xsl:choose> </xsl:template> </xsl:stylesheet> |
From: Frederic D. <de...@us...> - 2004-06-01 11:14:20
|
Update of /cvsroot/fudaa/fudaa_devel/aide/xml/xsl/docsrc/html In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20425/xml/xsl/docsrc/html Added Files: param.xml ChangeLog Log Message: xml pour l'aide en docbook --- NEW FILE: param.xml --- <?xml version="1.0" encoding="utf-8"?> <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"> <book> <bookinfo> <title>HTML Parameter Reference</title> <releaseinfo role="meta"> $Id: param.xml,v 1.1 2004/06/01 11:13:57 deniger Exp $ </releaseinfo> <author> <surname>Walsh</surname> <firstname>Norman</firstname> </author> <copyright> <year>1999</year> <year>2000</year> <year>2001</year> <holder>Norman Walsh</holder> </copyright> [...7421 lines suppressed...] <src:fragref linkend="use.embed.for.svg.frag"></src:fragref> <src:fragref linkend="use.extensions.frag"></src:fragref> <src:fragref linkend="use.id.as.filename.frag"></src:fragref> <src:fragref linkend="use.local.olink.style.frag"></src:fragref> <src:fragref linkend="use.role.as.xrefstyle.frag"></src:fragref> <src:fragref linkend="use.role.for.mediaobject.frag"></src:fragref> <src:fragref linkend="use.svg.frag"></src:fragref> <src:fragref linkend="variablelist.as.table.frag"></src:fragref> <src:fragref linkend="xref.with.number.and.title.frag"></src:fragref> <src:fragref linkend="xref.label-title.separator.frag"></src:fragref> <src:fragref linkend="xref.label-page.separator.frag"></src:fragref> <src:fragref linkend="xref.title-page.separator.frag"></src:fragref> <src:fragref linkend="insert.xref.page.number.frag"></src:fragref> </xsl:stylesheet> </programlisting> </appendix> </book> --- NEW FILE: ChangeLog --- 2001-10-13 Norman Walsh <nw...@us...> * Makefile: Changes to make the documentation work with the new litprog sources 2001-04-03 Norman Walsh <nw...@us...> * Makefile: Documentation fixes 2001-04-02 Norman Walsh <nw...@us...> * .cvsignore, Makefile: New file. |
From: Frederic D. <de...@us...> - 2004-06-01 11:14:20
|
Update of /cvsroot/fudaa/fudaa_devel/aide/xml/xsl/docsrc/common In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20425/xml/xsl/docsrc/common Added Files: ChangeLog common.xml Log Message: xml pour l'aide en docbook --- NEW FILE: common.xml --- <?xml version="1.0" encoding="utf-8" standalone="no"?> <!DOCTYPE reference PUBLIC "-//Norman Walsh//DTD JRefEntry V1.1//EN" "http://docbook.sourceforge.net/release/jrefentry/1.1/jrefentry.dtd"> <reference> <referenceinfo> <releaseinfo role="meta"> $Id: common.xml,v 1.1 2004/06/01 11:13:56 deniger Exp $ </releaseinfo> <author><surname>Walsh</surname> <firstname>Norman</firstname></author> <copyright><year>1999</year><year>2000</year> <holder>Norman Walsh</holder> </copyright> </referenceinfo> <title>Common Template Reference</title> <partintro> <section><title>Introduction</title> <para>This is technical reference documentation for the DocBook XSL Stylesheets; it documents (some of) the parameters, templates, and other elements of the stylesheets.</para> <para>This is not intended to be <quote>user</quote> documentation. It is provided for developers writing customization layers for the stylesheets, and for anyone who's interested in <quote>how it works</quote>.</para> <para>Although I am trying to be thorough, this documentation is known to be incomplete. Don't forget to read the source, too :-)</para> </section> </partintro> <refentry id="template.is.component"> <refnamediv> <refname>is.component</refname> <refpurpose>Tests if a given node is a component-level element</refpurpose> </refnamediv> <refsynopsisdiv> <synopsis><xsl:template name="is.component"> <xsl:param name="node" select="."/> ... </xsl:template></synopsis> </refsynopsisdiv> <refdescription> <para>This template returns '1' if the specified node is a component (Chapter, Appendix, etc.), and '0' otherwise.</para> </refdescription><refparameter> <variablelist> <varlistentry><term>node</term> <listitem> <para>The node which is to be tested.</para> </listitem> </varlistentry> </variablelist> </refparameter><refreturn> <para>This template returns '1' if the specified node is a component (Chapter, Appendix, etc.), and '0' otherwise.</para> </refreturn></refentry> <refentry id="template.is.section"> <refnamediv> <refname>is.section</refname> <refpurpose>Tests if a given node is a section-level element</refpurpose> </refnamediv> <refsynopsisdiv> <synopsis><xsl:template name="is.section"> <xsl:param name="node" select="."/> ... </xsl:template></synopsis> </refsynopsisdiv> <refdescription> <para>This template returns '1' if the specified node is a section (Section, Sect1, Sect2, etc.), and '0' otherwise.</para> </refdescription><refparameter> <variablelist> <varlistentry><term>node</term> <listitem> <para>The node which is to be tested.</para> </listitem> </varlistentry> </variablelist> </refparameter><refreturn> <para>This template returns '1' if the specified node is a section (Section, Sect1, Sect2, etc.), and '0' otherwise.</para> </refreturn></refentry> <refentry id="template.section.level"> <refnamediv> <refname>section.level</refname> <refpurpose>Returns the hierarchical level of a section.</refpurpose> </refnamediv> <refsynopsisdiv> <synopsis><xsl:template name="section.level"> <xsl:param name="node" select="."/> ... </xsl:template></synopsis> </refsynopsisdiv> <refdescription> <para>This template calculates the hierarchical level of a section. The element <sgmltag>sect1</sgmltag> is at level 1, <sgmltag>sect2</sgmltag> is at level 2, etc.</para> <para>Recursive sections are calculated down to the fifth level.</para> </refdescription><refparameter> <variablelist> <varlistentry><term>node</term> <listitem> <para>The section node for which the level should be calculated. Defaults to the context node.</para> </listitem> </varlistentry> </variablelist> </refparameter><refreturn> <para>The section level, <quote>1</quote>, <quote>2</quote>, etc. </para> </refreturn></refentry> <refentry id="template.qanda.section.level"> <refnamediv> <refname>qanda.section.level</refname> <refpurpose>Returns the hierarchical level of a QandASet.</refpurpose> </refnamediv> <refsynopsisdiv> <synopsis><xsl:template name="qanda.section.level"/></synopsis> </refsynopsisdiv> <refdescription> <para>This template calculates the hierarchical level of a QandASet. </para> </refdescription><refreturn> <para>The level, <quote>1</quote>, <quote>2</quote>, etc. </para> </refreturn></refentry> <refentry id="template.select.mediaobject"> <refnamediv> <refname>select.mediaobject</refname> <refpurpose>Selects and processes an appropriate media object from a list</refpurpose> </refnamediv> <refsynopsisdiv> <synopsis><xsl:template name="select.mediaobject"> <xsl:param name="olist" select="imageobject|imageobjectco |videoobject|audioobject|textobject"/> ... </xsl:template></synopsis> </refsynopsisdiv> <refdescription> <para>This template takes a list of media objects (usually the children of a mediaobject or inlinemediaobject) and processes the "right" object.</para> <para>This template relies on a template named "select.mediaobject.index" to determine which object in the list is appropriate.</para> <para>If no acceptable object is located, nothing happens.</para> </refdescription><refparameter> <variablelist> <varlistentry><term>olist</term> <listitem> <para>The node list of potential objects to examine.</para> </listitem> </varlistentry> </variablelist> </refparameter><refreturn> <para>Calls <xsl:apply-templates> on the selected object.</para> </refreturn></refentry> <refentry id="template.select.mediaobject.index"> <refnamediv> <refname>select.mediaobject.index</refname> <refpurpose>Selects the position of the appropriate media object from a list</refpurpose> </refnamediv> <refsynopsisdiv> <synopsis><xsl:template name="select.mediaobject.index"> <xsl:param name="olist" select="imageobject|imageobjectco |videoobject|audioobject|textobject"/> <xsl:param name="count">1</xsl:param> ... </xsl:template></synopsis> </refsynopsisdiv> <refdescription> <para>This template takes a list of media objects (usually the children of a mediaobject or inlinemediaobject) and determines the "right" object. It returns the position of that object to be used by the calling template.</para> <para>If the parameter <parameter>use.role.for.mediaobject</parameter> is nonzero, then it first checks for an object with a role attribute of the appropriate value. It takes the first of those. Otherwise, it takes the first acceptable object through a recursive pass through the list.</para> <para>This template relies on a template named "is.acceptable.mediaobject" to determine if a given object is an acceptable graphic. The semantics of media objects is that the first acceptable graphic should be used. </para> <para>If no acceptable object is located, no index is returned.</para> </refdescription><refparameter> <variablelist> <varlistentry><term>olist</term> <listitem> <para>The node list of potential objects to examine.</para> </listitem> </varlistentry> <varlistentry><term>count</term> <listitem> <para>The position in the list currently being considered by the recursive process.</para> </listitem> </varlistentry> </variablelist> </refparameter><refreturn> <para>Returns the position in the original list of the selected object.</para> </refreturn></refentry> <refentry id="template.is.acceptable.mediaobject"> <refnamediv> <refname>is.acceptable.mediaobject</refname> <refpurpose>Returns '1' if the specified media object is recognized.</refpurpose> </refnamediv> <refsynopsisdiv> <synopsis><xsl:template name="is.acceptable.mediaobject"> <xsl:param name="object"/> ... </xsl:template></synopsis> </refsynopsisdiv> <refdescription> <para>This template examines a media object and returns '1' if the object is recognized as a graphic.</para> </refdescription><refparameter> <variablelist> <varlistentry><term>object</term> <listitem> <para>The media object to consider.</para> </listitem> </varlistentry> </variablelist> </refparameter><refreturn> <para>0 or 1</para> </refreturn></refentry> <refentry id="template.check.id.unique"> <refnamediv> <refname>check.id.unique</refname> <refpurpose>Warn users about references to non-unique IDs</refpurpose> </refnamediv> <refsynopsisdiv> <synopsis><xsl:template name="check.id.unique"> <xsl:param name="linkend"/> ... </xsl:template></synopsis> </refsynopsisdiv> <refdescription> <para>If passed an ID in <varname>linkend</varname>, <function>check.id.unique</function> prints a warning message to the user if either the ID does not exist or the ID is not unique.</para> </refdescription></refentry> <refentry id="template.check.idref.targets"> <refnamediv> <refname>check.idref.targets</refname> <refpurpose>Warn users about incorrectly typed references</refpurpose> </refnamediv> <refsynopsisdiv> <synopsis><xsl:template name="check.idref.targets"> <xsl:param name="linkend"/> <xsl:param name="element-list"/> ... </xsl:template></synopsis> </refsynopsisdiv> <refdescription> <para>If passed an ID in <varname>linkend</varname>, <function>check.idref.targets</function> makes sure that the element pointed to by the link is one of the elements listed in <varname>element-list</varname> and warns the user otherwise.</para> </refdescription></refentry> <refentry id="template.copyright.years"> <refnamediv> <refname>copyright.years</refname> <refpurpose>Print a set of years with collapsed ranges</refpurpose> </refnamediv> <refsynopsisdiv> <synopsis><xsl:template name="copyright.years"> <xsl:param name="years"/> <xsl:param name="print.ranges" select="1"/> <xsl:param name="single.year.ranges" select="0"/> <xsl:param name="firstyear" select="0"/> <xsl:param name="nextyear" select="0"/> ... </xsl:template></synopsis> </refsynopsisdiv> <refdescription> <para>This template prints a list of year elements with consecutive years printed as a range. In other words:</para> <screen><year>1992</year> <year>1993</year> <year>1994</year></screen> <para>is printed <quote>1992-1994</quote>, whereas:</para> <screen><year>1992</year> <year>1994</year></screen> <para>is printed <quote>1992, 1994</quote>.</para> <para>This template assumes that all the year elements contain only decimal year numbers, that the elements are sorted in increasing numerical order, that there are no duplicates, and that all the years are expressed in full <quote>century+year</quote> (<quote>1999</quote> not <quote>99</quote>) notation.</para> </refdescription><refparameter> <variablelist> <varlistentry><term>years</term> <listitem> <para>The initial set of year elements.</para> </listitem> </varlistentry> <varlistentry><term>print.ranges</term> <listitem> <para>If non-zero, multi-year ranges are collapsed. If zero, all years are printed discretely.</para> </listitem> </varlistentry> <varlistentry><term>single.year.ranges</term> <listitem> <para>If non-zero, two consecutive years will be printed as a range, otherwise, they will be printed discretely. In other words, a single year range is <quote>1991-1992</quote> but discretely it's <quote>1991, 1992</quote>.</para> </listitem> </varlistentry> </variablelist> </refparameter><refreturn> <para>This template returns the formatted list of years.</para> </refreturn></refentry> <refentry id="template.find.path.params"> <refnamediv> <refname>find.path.params</refname> <refpurpose>Search in a table for the "best" match for the node</refpurpose> </refnamediv> <refsynopsisdiv> <synopsis><xsl:template name="find.path.params"> <xsl:param name="node" select="."/> <xsl:param name="table" select="''"/> <xsl:param name="location"> <xsl:call-template name="xpath.location"> <xsl:with-param name="node" select="$node"/> </xsl:call-template> </xsl:param> ... </xsl:template></synopsis> </refsynopsisdiv> <refdescription> <para>This template searches in a table for the value that most-closely (in the typical best-match sense of XSLT) matches the current (element) node location.</para> </refdescription></refentry> </reference> --- NEW FILE: ChangeLog --- 2001-04-03 Norman Walsh <nw...@us...> * Makefile: Documentation fixes 2001-04-02 Norman Walsh <nw...@us...> * .cvsignore, Makefile: New file. |
From: Frederic D. <de...@us...> - 2004-06-01 11:14:20
|
Update of /cvsroot/fudaa/fudaa_devel/aide/xml/xsl/extensions/saxon643 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20425/xml/xsl/extensions/saxon643 Added Files: ChangeLog prj.el Log Message: xml pour l'aide en docbook --- NEW FILE: prj.el --- (jde-set-project-name "saxon") (jde-set-variables '(jde-gen-session-bean-template (quote ("(jde-import-insert-imports-into-buffer (list \"javax.ejb.*\" \"java.rmi.RemoteException\"))" "(jde-wiz-update-implements-clause \"SessionBean\")" "'> \"public void ejbActivate() throws RemoteException {\"'>'n \"}\"'>'n '>'n" "'> \"public void ejbPassivate() throws RemoteException {\"'>'n \"}\"'>'n '>'n" "'> \"public void ejbRemove() throws RemoteException {\"'>'n \"}\"'>'n '>'n" "'> \"public void setSessionContext(SessionContext ctx) throws RemoteException {\"" "'>'n \"}\"'>'n '>'n" "'> \"public void unsetSessionContext() throws RemoteException {\"'>'n \"}\"'>'n '>'n'>"))) '(jde-gen-beep (quote ("(end-of-line) '&" "\"Toolkit.getDefaultToolkit().beep();\"'>'n'>"))) '(jde-which-method-format (quote ("[" jde-which-method-current "]"))) '(jde-run-classic-mode-vm nil) '(jde-javadoc-gen-nodeprecatedlist nil) '(jde-which-method-max-length 20) '(jde-imenu-include-classdef t) '(jde-javadoc-gen-link-online nil) '(jde-gen-code-templates (quote (("Get Set Pair" . jde-gen-get-set) ("toString method" . jde-gen-to-string-method) ("Action Listener" . jde-gen-action-listener) ("Window Listener" . jde-gen-window-listener) ("Mouse Listener" . jde-gen-mouse-listener) ("Mouse Motion Listener" . jde-gen-mouse-motion-listener) ("Inner Class" . jde-gen-inner-class) ("println" . jde-gen-println) ("beep" . jde-gen-beep) ("property change support" . jde-gen-property-change-support) ("EJB Entity Bean" . jde-gen-entity-bean) ("EJB Session Bean" . jde-gen-session-bean)))) '(jde-gen-cflow-else (quote ("(if (jde-parse-comment-or-quoted-p)" "'(l \"else\")" "'(l '> \"else \"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n'>'r'n" "\"} // end of else\"'>'n'>)" ")"))) '(jde-make-args "") '(jde-javadoc-gen-destination-directory "JavaDoc") '(jde-mode-line-format (quote ("-" mode-line-mule-info mode-line-modified mode-line-frame-identification mode-line-buffer-identification " " global-mode-string " %[(" mode-name mode-line-process minor-mode-alist "%n" ")%]--" (line-number-mode "L%l--") (column-number-mode "C%c--") (-3 . "%p") (jde-which-method-mode ("--" jde-which-method-format "--")) "-%-"))) '(jde-mode-abbreviations (quote (("ab" . "abstract") ("bo" . "boolean") ("br" . "break") ("by" . "byte") ("byv" . "byvalue") ("cas" . "cast") ("ca" . "catch") ("ch" . "char") ("cl" . "class") ("co" . "const") ("con" . "continue") ("de" . "default") ("dou" . "double") ("el" . "else") ("ex" . "extends") ("fa" . "false") ("fi" . "final") ("fin" . "finally") ("fl" . "float") ("fo" . "for") ("fu" . "future") ("ge" . "generic") ("go" . "goto") ("impl" . "implements") ("impo" . "import") ("ins" . "instanceof") ("in" . "int") ("inte" . "interface") ("lo" . "long") ("na" . "native") ("ne" . "new") ("nu" . "null") ("pa" . "package") ("pri" . "private") ("pro" . "protected") ("pu" . "public") ("re" . "return") ("sh" . "short") ("st" . "static") ("su" . "super") ("sw" . "switch") ("sy" . "synchronized") ("th" . "this") ("thr" . "throw") ("throw" . "throws") ("tra" . "transient") ("tr" . "true") ("vo" . "void") ("vol" . "volatile") ("wh" . "while")))) '(jde-imenu-enable t) '(jde-compile-option-verbose nil) '(jde-db-option-heap-size (quote ((1 . "megabytes") (16 . "megabytes")))) '(jde-bug-debugger-host-address "localhost" t) '(jde-make-working-directory "") '(jde-bug-breakpoint-marker-colors (quote ("red" . "yellow"))) '(jde-javadoc-gen-use nil) '(jde-gen-buffer-boilerplate nil) '(jde-bug-raise-frame-p t) '(jde-db-option-application-args (quote ("-IN" "/share/xsl/docbook/test/exttest.xml" "-XSL " "/share/xsl/docbook/test/exttest.xsl")) t) '(jde-javadoc-gen-nonavbar nil) '(jde-javadoc-gen-nohelp nil) '(jde-bug-vm-includes-jpda-p nil) '(jde-gen-jfc-app-buffer-template (quote ("(funcall jde-gen-boilerplate-function) '>'n" "\"import java.awt.Dimension;\" '>'n" "\"import java.awt.Graphics;\" '>'n" "\"import java.awt.Graphics2D;\" '>'n" "\"import java.awt.Color;\" '>'n" "\"import java.awt.geom.Ellipse2D;\" '>'n" "\"import java.awt.event.WindowAdapter;\" '>'n" "\"import java.awt.event.WindowEvent;\" '>'n" "\"import javax.swing.JFrame;\" '>'n" "\"import javax.swing.JPanel;\" '>'n" "\"import javax.swing.JScrollPane;\" '>'n" "\"import javax.swing.JMenuBar;\" '>'n" "\"import javax.swing.JMenu;\" '>'n" "\"import java.awt.event.ActionEvent;\" '>'n" "\"import javax.swing.AbstractAction;\" '>'n '>'n" "\"/**\" '>'n" "\" * \"" "(file-name-nondirectory buffer-file-name) '>'n" "\" *\" '>'n" "\" *\" '>'n" "\" * Created: \" (current-time-string) '>'n" "\" *\" '>'n" "\" * @author <a href=\\\"mailto: \\\"\" (user-full-name) \"</a>\"'>'n" "\" * @version\" '>'n" "\" */\" '>'n" "'>'n" "\"public class \"" "(file-name-sans-extension (file-name-nondirectory buffer-file-name))" "\" extends JFrame\"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n" "\"class Canvas extends JPanel\"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n" "\"public Canvas () \"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n" "\"setSize(getPreferredSize());\" '>'n" "\"Canvas.this.setBackground(Color.white);\" '>'n" "\"}\"'>'n '>'n" "\"public Dimension getPreferredSize() \"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n" "\"return new Dimension(600, 600);\" '>'n" "\"}\"'>'n '>'n" "\"public void paintComponent(Graphics g) \"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n" "\"super.paintComponent(g);\" '>'n" "\"Graphics2D g2d = (Graphics2D) g;\" '>'n" "\"Ellipse2D circle = new Ellipse2D.Double(0d, 0d, 100d, 100d);\" '>'n" "\"g2d.setColor(Color.red);\" '>'n" "\"g2d.translate(10, 10);\" '>'n" "\"g2d.draw(circle);\" '>'n" "\"g2d.fill(circle);\" '>'n" "\"}\"'>'n " "\"}\"'>'n '>'n" "\"public \"" "(file-name-sans-extension (file-name-nondirectory buffer-file-name))" "\"()\"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n" "\"super(\\\"\" (P \"Enter app title: \") \"\\\");\" '>'n" "\"setSize(300, 300);\" '>'n" "\"addWindowListener(new WindowAdapter() \"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n" "\"public void windowClosing(WindowEvent e) {System.exit(0);}\" '>'n" "\"public void windowOpened(WindowEvent e) {}\" '>'n" "\"});\"'>'n" "\"setJMenuBar(createMenu());\" '>'n" "\"getContentPane().add(new JScrollPane(new Canvas()));\" '>'n" "\"}\"'>'n" "'>'n" "\"public static void main(String[] args) \"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n" "'>'n" "(file-name-sans-extension (file-name-nondirectory buffer-file-name))" "\" f = new \"" "(file-name-sans-extension (file-name-nondirectory buffer-file-name))" "\"();\" '>'n" "\"f.show();\" '>'n" "\"}\"'>'n '>'n" "\"protected JMenuBar createMenu() \"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n" "\"JMenuBar mb = new JMenuBar();\" '>'n" "\"JMenu menu = new JMenu(\\\"File\\\");\" '>'n" "\"menu.add(new AbstractAction(\\\"Exit\\\") \"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n" "\"public void actionPerformed(ActionEvent e) \"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n" "\"System.exit(0);\" '>'n" "\"}\" '>'n" "\"});\" '>'n" "\"mb.add(menu);\" '>'n" "\"return mb;\" '>'n" "\"}\"'>'n " "\"} // \"'>" "(file-name-sans-extension (file-name-nondirectory buffer-file-name))" "'>'n"))) '(jde-bug-key-bindings (quote (("[? ? ?]" . jde-bug-step-over) ("[? ? ?]" . jde-bug-step-into) ("[? ? ?]" . jde-bug-step-into-all) ("[? ? ?]" . jde-bug-step-out) ("[? ? ?]" . jde-bug-continue) ("[? ? ?]" . jde-bug-toggle-breakpoint)))) '(jde-compile-finish-hook (quote (jde-compile-finish-refresh-speedbar jde-compile-finish-flush-completion-cache))) '(jde-compile-option-nowarn nil) '(jde-setnu-mode-threshold 20000) '(jde-run-java-vm-w "javaw") '(jde-compile-option-encoding nil) '(jde-run-option-java-profile (quote (nil . "./java.prof"))) '(jde-bug-jpda-directory "/usr/local/jdk1.2.2" t) '(jde-read-compile-args nil) '(jde-run-java-vm "java") '(jde-db-option-verbose (quote (nil nil nil))) '(jde-which-method-class-min-length 4) '(jde-db-read-app-args nil) '(jde-javadoc-gen-nodeprecated nil) '(jde-run-option-heap-profile (quote (nil "./java.hprof" 5 20 "Allocation objects"))) '(jde-gen-println (quote ("(end-of-line) '&" "\"System.out.println(\" (P \"Print out: \") \");\" '>'n'>"))) '(jde-enable-abbrev-mode nil) '(jde-auto-parse-max-buffer-size 50000) '(jde-gen-cflow-main (quote ("(if (jde-parse-comment-or-quoted-p)" "'(l \"main\")" "'(l '> \"public static void main (String[] args) \"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n'>'r'n" "\"} // end of main ()\"'>'n'>)" ")"))) '(jde-javadoc-exception-tag-template "\"* @exception \" type \" if an error occurs\"") '(jde-global-classpath nil t) '(jde-gen-window-listener-template (quote ("(end-of-line) '& (P \"Window name: \")" "\".addWindowListener(new WindowAdapter() \"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n" "'> \"public void windowActivated(WindowEvent e) \"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n" "\"}\"" "'>'n \"public void windowClosed(WindowEvent e)\"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n" "'>'n \"}\"" "'>'n \"public void windowClosing(WindowEvent e) \"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n" "'>'n \"System.exit(0);\" '>'n \"}\"" "'>'n \"public void windowDeactivated(WindowEvent e) \"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n" "'>'n \"}\"" "'>'n \"public void windowDeiconified(WindowEvent e) \"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n" "'>'n \"}\"" "'>'n \"public void windowIconified(WindowEvent e) \"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n" "'>'n \"}\"" "'>'n \"public void windowOpened(WindowEvent e) \"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n" "'>'n \"}\"" "'>'n \"});\" '>'n'>"))) '(jde-run-working-directory "/share/xsl/docbook/extensions" t) '(jde-gen-property-change-support (quote ("(end-of-line) '&" "\"protected PropertyChangeSupport pcs = new PropertyChangeSupport(this);\" '>'n '>'n" "\"/**\" '>'n" "\"* Adds a PropertyChangeListener to the listener list.\" '>'n" "\"* The listener is registered for all properties.\" '>'n" "\"*\" '>'n" "\"* @param listener The PropertyChangeListener to be added\" '>'n" "\"*/\" '>'n" "\"public void addPropertyChangeListener(PropertyChangeListener listener) \"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n" "\"pcs.addPropertyChangeListener(listener);\" '>'n \"}\" '>'n '>'n" "\"/**\" '>'n" "\"* Removes a PropertyChangeListener from the listener list.\" '>'n" "\"* This removes a PropertyChangeListener that was registered for all properties.\" '>'n" "\"*\" '>'n " "\"* @param listener The PropertyChangeListener to be removed\" '>'n" "\"*/\" '>'n" "\"public void removePropertyChangeListener(PropertyChangeListener listener) \"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n" "'>\"pcs.removePropertyChangeListener(listener);\" '>'n \"}\" '>'n '>'n" "\"/**\" '>'n\"* Adds a PropertyChangeListener for a specific property.\" '>'n" "\"* The listener will be invoked only when a call on firePropertyChange\" '>'n" "\"* names that specific property.\" '>'n" "\"*\" '>'n \"* @param propertyName The name of the property to listen on\" '>'n" "\"* @param listener The PropertyChangeListener to be added\" '>'n \"*/\" '>'n" "\"public void addPropertyChangeListener(String propertyName,\" '>'n" "\"PropertyChangeListener listener) \"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n" "'> \"pcs.addPropertyChangeListener(propertyName, listener);\" '>'n \"}\" '>'n '>'n" "\"/**\" '>'n\"* Removes a PropertyChangeListener for a specific property.\" '>'n" "\"*\" '>'n \"* @param propertyName The name of the property that was listened on\" '>'n" "\"* @param listener The PropertyChangeListener to be removed\" '>'n \"*/\" '>'n" "\"public void removePropertyChangeListener(String propertyName,\" '>'n" "\"PropertyChangeListener listener) \"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n" "'> \"pcs.removePropertyChangeListener(propertyName, listener);\" '>'n \"}\" '>'n '>'n" "\"/**\" '>'n\"* Reports a bound property update to any registered listeners. \" '>'n" "\"* No event is fired if old and new are equal and non-null.\" '>'n" "\"*\" '>'n \"* @param propertyName The programmatic name of the property that was changed\" '>'n" "\"* @param oldValue The old value of the property\" '>'n" "\"* @param newValue The new value of the property.\" '>'n \"*/\" '>'n" "\"public void firePropertyChange(String propertyName, Object oldValue, Object newValue) \"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n" "'> \"pcs.firePropertyChange(propertyName, oldValue, newValue);\" '>'n \"}\" '>'n '>'n" "\"/**\" '>'n\"* Reports a bound property update to any registered listeners. \" '>'n" "\"* No event is fired if old and new are equal and non-null.\" '>'n" "\"* This is merely a convenience wrapper around the more general\" '>'n" "\"* firePropertyChange method that takes Object values.\" '>'n" "\"* No event is fired if old and new are equal and non-null.\" '>'n" "\"*\" '>'n \"* @param propertyName The programmatic name of the property that was changed\" '>'n" "\"* @param oldValue The old value of the property\" '>'n" "\"* @param newValue The new value of the property.\" '>'n \"*/\" '>'n" "\"public void firePropertyChange(String propertyName, int oldValue, int newValue) \"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n" "'> \"pcs.firePropertyChange(propertyName, oldValue, newValue);\" '>'n \"}\" '>'n '>'n" "\"/**\" '>'n\"* Reports a bound property update to any registered listeners. \" '>'n" "\"* No event is fired if old and new are equal and non-null.\" '>'n" "\"* This is merely a convenience wrapper around the more general\" '>'n" "\"* firePropertyChange method that takes Object values.\" '>'n" "\"* No event is fired if old and new are equal and non-null.\" '>'n" "\"*\" '>'n \"* @param propertyName The programmatic name of the property that was changed\" '>'n" "\"* @param oldValue The old value of the property\" '>'n" "\"* @param newValue The new value of the property.\" '>'n \"*/\" '>'n" "\"public void firePropertyChange(String propertyName, boolean oldValue, boolean newValue) \"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n" "'> \"pcs.firePropertyChange(propertyName, oldValue, newValue);\" '>'n \"}\" '>'n '>'n" "\"/**\" '>'n\"* Fires an existing PropertyChangeEvent to any registered listeners.\" '>'n" "\"* No event is fired if the given event's old and new values are equal and non-null. \" '>'n" "\"*\" '>'n \"* @param evt The PropertyChangeEvent object.\" '>'n\"*/\" '>'n" "\"public void firePropertyChange(PropertyChangeEvent evt) \"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n" "'> \"pcs.firePropertyChange(evt);\" '>'n \"}\" '>'n '>'n" "\"/**\" '>'n\"* Checks if there are any listeners for a specific property.\" '>'n" "\"*\" '>'n \"* @param evt The PropertyChangeEvent object.\" '>'n" "\"* @return <code>true</code>if there are one or more listeners for the given property\" '>'n" "\"*/\" '>'n" "\"public boolean hasListeners(String propertyName) \"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n" "'> \"return pcs.hasListeners(propertyName);\" '>'n \"}\" '>'n '>'n'>"))) '(jde-javadoc-describe-interface-template "\"* Describe interface \" (jde-javadoc-code name) \" here.\"") '(jde-imenu-include-signature t) '(jde-db-marker-regexp "^.*: thread=.*, \\(\\(.*[.]\\)*\\)\\([^$]*\\)\\($.*\\)*[.].+(), line=\\([0-9]*\\),") '(jde-gen-mouse-motion-listener-template (quote ("(end-of-line) '& (P \"Component name: \")" "\".addMouseMotionListener(new MouseMotionAdapter() \"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>" "'>'n \"public void mouseDragged(MouseEvent e) \"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n" "\"}\"'>" "'>'n \"public void mouseMoved(MouseEvent e) \"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n" "\"}\"'>" "'>'n \"});\"'>'n'>"))) '(jde-key-bindings (quote (("[? ? ?]" . jde-run-menu-run-applet) ("[? ? ?]" . jde-build) ("[? ? ?]" . jde-compile) ("[? ? ?]" . jde-debug) ("[? ? ?]" . jde-wiz-implement-interface) ("[? ? ?j]" . jde-javadoc-generate-javadoc-template) ("[? ? ?]" . bsh) ("[? ? ?]" . jde-gen-println) ("[? ? ?]" . jde-browse-jdk-doc) ("[? ? ?]" . jde-save-project) ("[? ? ?]" . jde-wiz-update-class-list) ("[? ? ?]" . jde-run) ("[? ? ?]" . speedbar-frame-mode) ("[? ? ?]" . jde-db-menu-debug-applet) ("[? ? ?]" . jde-help-symbol) ("[? ? ?]" . jde-show-class-source) ("[? ? ?]" . jde-import-find-and-import) ("[(control c) (control v) (control ?.)]" . jde-complete-at-point-menu) ("[(control c) (control v) ?.]" . jde-complete-at-point)))) '(jde-gen-cflow-for-i (quote ("(if (jde-parse-comment-or-quoted-p)" "'(l \"fori\")" "'(l '> \"for (int \" (p \"variable: \" var) \" = 0; \"" "(s var)" "\" < \"(p \"upper bound: \" ub)\"; \" (s var) \"++) \"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n'>'r'n" "\"} // end of for (int \" (s var) \" = 0; \"" "(s var) \" < \" (s ub) \"; \" (s var) \"++)\"'>'n'>)" ")"))) '(jde-run-option-classpath (quote ("/share/xsl/docbook/extensions/xalan2/.classes" "/projects/apache/xml-xalan/java/build/classes" "/projects/apache/xml-xalan/java/bin/bsf.jar" "/projects/apache/xml-xalan/java/bin/xerces.jar" "/projects/sun/resolver/.classes" "/projects/apache/xml-xerces/java/build/classes" "/home/ndw/java")) t) '(jde-javadoc-gen-detail-switch (quote ("-protected"))) '(jde-bug-sio-connect-delay 1) '(jde-javadoc-param-tag-template "\"* @param \" name \" \" (jde-javadoc-a type) \" \" (jde-javadoc-code type) \" value\"") '(jde-compile-option-verbose-path nil) '(jde-javadoc-display-doc t) '(jde-imenu-modifier-abbrev-alist (quote (("public" . 43) ("protected" . 177) ("private" . 172) ("static" . 2215) ("transient" . 35) ("volatile" . 126) ("abstract" . 170) ("final" . 182) ("native" . 36) ("synchronized" . 64) ("strictfp" . 37)))) '(jde-db-debugger (quote ("JDEbug" "/usr/local/jdk1.2.2/lib/i386" . "Executable")) t) '(jde-jdk-doc-url "http://www.javasoft.com/products/jdk/1.1/docs/index.html") '(jde-gen-cflow-enable t) '(jde-compiler "javac") '(jde-javadoc-gen-verbose nil) '(jde-javadoc-describe-method-template "\"* Describe \" (jde-javadoc-code name) \" method here.\"") '(jde-gen-class-buffer-template (quote ("(funcall jde-gen-boilerplate-function) '>'n" "\"/**\" '>'n" "\" * \"" "(file-name-nondirectory buffer-file-name) '>'n" "\" *\" '>'n" "\" *\" '>'n" "\" * Created: \" (current-time-string) '>'n" "\" *\" '>'n" "\" * @author <a href=\\\"mailto: \\\"\" (user-full-name) \"</a>\"'>'n" "\" * @version\" '>'n" "\" */\" '>'n'" "'>'n" "\"public class \"" "(file-name-sans-extension (file-name-nondirectory buffer-file-name))" "\" \" (jde-gen-get-super-class)" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n" "\"public \"" "(file-name-sans-extension (file-name-nondirectory buffer-file-name))" "\" ()\"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n" "'>'p'n" "\"}\">" "'>'n" "\"}\">" "\"// \"" "(file-name-sans-extension (file-name-nondirectory buffer-file-name))" "'>'n"))) '(jde-javadoc-checker-level (quote protected)) '(jde-appletviewer-option-vm-args nil) '(jde-run-executable-args nil) '(jde-db-option-garbage-collection (quote (t t))) '(jde-javadoc-gen-stylesheetfile "") '(jde-use-font-lock t) '(jde-compile-option-bootclasspath nil) '(jde-make-program "make") '(jde-javadoc-gen-group nil) '(jde-javadoc-gen-link-offline nil) '(jde-entering-java-buffer-hook (quote (jde-reload-project-file jde-which-method-update-on-entering-buffer))) '(jde-javadoc-gen-doc-title "") '(jde-javadoc-gen-header "") '(jde-run-option-vm-args nil) '(jde-javadoc-gen-window-title "") '(jde-compile-option-directory "/sourceforge/docbook/xsl/extensions/saxon64/.classes" t) '(jde-imenu-create-index-function (quote semantic-create-imenu-index)) '(jde-gen-console-buffer-template (quote ("(funcall jde-gen-boilerplate-function) '>'n" "\"/**\" '>'n" "\" * \"" "(file-name-nondirectory buffer-file-name) '>'n" "\" *\" '>'n" "\" *\" '>'n" "\" * Created: \" (current-time-string) '>'n" "\" *\" '>'n" "\" * @author <a href=\\\"mailto: \\\"\" (user-full-name) \"</a>\"'>'n" "\" * @version\" '>'n" "\" */\" '>'n" "'>'n" "\"public class \"" "(file-name-sans-extension (file-name-nondirectory buffer-file-name))" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n" "\"public \"" "(file-name-sans-extension (file-name-nondirectory buffer-file-name))" "\" ()\"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n" "'>'n" "\"}\"'>'n" "'>'n" "\"public static void main(String[] args)\"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n" "'>'p'n" "\"}\"'>'n" "\"} // \"'>" "(file-name-sans-extension (file-name-nondirectory buffer-file-name))" "'>'n"))) '(jde-read-make-args nil) '(jde-javadoc-gen-noindex nil) '(jde-gen-mouse-listener-template (quote ("(end-of-line) '& (P \"Component name: \")" "\".addMouseListener(new MouseAdapter() \"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'> " "'>'n \"public void mouseClicked(MouseEvent e) \" " "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n" "\"}\" '>" "'>'n \"public void mouseEntered(MouseEvent e) \"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n" "\"}\" '>" "'>'n \"public void mouseExited(MouseEvent e) \"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n" "\"}\"'>" "'>'n \"public void mousePressed(MouseEvent e) \"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n" "\"}\" '>" "'>'n \"public void mouseReleased(MouseEvent e) \"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n" "\"}\"'>" "'>'n \"});\"'>'n'>"))) '(jde-run-option-application-args (quote ("-IN" "test.xml" "-XSL" "test.xsl")) t) '(jde-bug-vm-executable (quote ("java"))) '(jde-db-set-initial-breakpoint t) '(jde-bug-debugger-command-timeout 10) '(jde-db-option-stack-size (quote ((128 . "kilobytes") (400 . "kilobytes")))) '(jde-db-option-properties nil t) '(jde-db-source-directories (quote ("/share/xsl/docbook/extensions/xalan2/" "/projects/apache/xml-xalan/java/src/" "/projects/apache/xml-xerces/java/build/src/" "/projects/sun/resolver/" "/home/ndw/java/")) t) '(jde-run-read-app-args nil) '(jde-gen-to-string-method-template (quote ("(end-of-line) '&" "\"public String toString() \"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n" "\"}\"'>'n'>"))) '(jde-quote-classpath t) '(jde-bug-window-message nil) '(jde-build-use-make nil) '(jde-javadoc-author-tag-template "\"* @author <a href=\\\"mailto:\" user-mail-address \"\\\">\" user-full-name \"</a>\"") '(jde-javadoc-describe-field-template "\"* Describe \" (jde-javadoc-field-type modifiers) \" \" (jde-javadoc-code name) \" here.\"") '(jde-javadoc-gen-link-URL nil) '(jde-compile-option-classpath (quote ("/sourceforge/docbook/xsl/extensions/saxon64/.classes" "/usr/local/java/saxon-6.4.3/saxon.jar" "/usr/local/jaxp-1.1/jaxp.jar" "/usr/local/jaxp-1.1/crimson.jar")) t) '(jde-bug-jdk-directory "/usr/local/jdk1.2.2" t) '(jde-gen-boilerplate-function (quote jde-gen-create-buffer-boilerplate)) '(jde-gen-entity-bean-template (quote ("(jde-import-insert-imports-into-buffer (list \"javax.ejb.*\" \"java.rmi.RemoteException\"))" "'> \"public void ejbActivate() throws RemoteException \"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n" "\"}\"'>'n '>'n" "'> \"public void ejbPassivate() throws RemoteException \"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n" "\"}\"'>'n '>'n" "'> \"public void ejbLoad() throws RemoteException \"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n" "\"}\"'>'n '>'n" "'> \"public void ejbStore() throws RemoteException \"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n" "\"}\"'>'n '>'n" "'> \"public void ejbRemove() throws RemoteException \"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n" "\"}\"'>'n '>'n" "'> \"public void setEntityContext(EntityContext ctx) throws RemoteException \"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n" "\"}\"'>'n '>'n" "'> \"public void unsetEntityContext() throws RemoteException \"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n" "\"}\"'>'n '>'n'>"))) '(jde-javadoc-describe-constructor-template "\"* Creates a new \" (jde-javadoc-code name) \" instance.\"") '(jde-bug-server-shmem-name (quote (t . "JDEbug"))) '(jde-db-startup-commands nil) '(jde-javadoc-gen-docletpath nil) '(jde-javadoc-gen-split-index nil) '(jde-compile-option-deprecation nil t) '(jde-import-group-of-rules (quote (("^javax?\\.")))) '(jde-which-method-mode t) '(jde-gen-k&r t) '(jde-javadoc-gen-bottom "") '(jde-javadoc-gen-footer "") '(jde-db-option-classpath (quote ("/share/xsl/docbook/extensions/xalan2/.classes" "/projects/apache/xml-xalan/java/build/classes" "/projects/apache/xml-xalan/java/bin/bsf.jar" "/projects/apache/xml-xalan/java/bin/xerces.jar" "/projects/sun/resolver/.classes" "/projects/apache/xml-xerces/java/build/classes" "/home/ndw/java")) t) '(jde-gen-cflow-for (quote ("(if (jde-parse-comment-or-quoted-p)" "'(l \"for\")" "'(l '> \"for (\" (p \"for-clause: \" clause) \") \"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n'>'r'n" "\"} // end of for (\" (s clause) \")\"'>'n'>)" ")"))) '(jde-run-mode-hook nil) '(jde-db-option-verify (quote (nil t))) '(jde-compile-option-extdirs nil) '(jde-imenu-sort nil) '(jde-gen-get-set-var-template (quote ("(end-of-line) '&" "(P \"Variable type: \" type) \" \"" "(P \"Variable name: \" name) \";\" '>'n '>'n" "\"/**\" '>'n" "\"* Get the value of \" (s name) \".\" '>'n" "\"* @return value of \" (s name) \".\" '>'n" "\"*/\" '>'n" "'>'\"public \" (s type)" "(if (string= \"boolean\" (jde-gen-lookup-named 'type) ) " "\" is\" " "\" get\" ) " "(jde-gen-init-cap (jde-gen-lookup-named 'name))" "\"() \"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\" '>'n" "\"return \" (s name) \";\" '>'n \"}\"" "'>'n '>'n" "\"/**\" '>'n" "\"* Set the value of \" (s name) \".\" '>'n" "\"* @param v Value to assign to \" (s name) \".\" '>'n" "\"*/\" '>'n" "'>'\"public void set\" (jde-gen-init-cap (jde-gen-lookup-named 'name))" "\"(\" (s type) \" v) \" " "(if jde-gen-k&r " "()" "'>'n)" "\"{\" '>'n" "'>'\"this.\" (s name) \" = v;\" '>'n \"}\" '>'n'>"))) '(jde-bug-saved-breakpoints nil) '(jde-compile-option-sourcepath (quote ("/share/xsl/docbook/extensions/xalan2" "/projects/apache/xml-xalan/java/build/src" "/projects/apache/xml-xerces/java/build/src" "/projects/sun/resolver")) t) '(jde-gen-cflow-if (quote ("(if (jde-parse-comment-or-quoted-p)" "'(l \"if\")" "'(l '> \"if (\" (p \"if-clause: \" clause) \") \"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n'>'r'n" "\"} // end of if (\" (s clause) \")\"'>'n'>)" ")"))) '(jde-db-option-java-profile (quote (nil . "./java.prof"))) '(jde-javadoc-gen-author t) '(jde-compile-option-depend-switch (quote ("-Xdepend"))) '(jde-setnu-mode-enable nil) '(jde-run-applet-doc "") '(jde-compile-option-vm-args nil) '(jde-javadoc-gen-overview "") '(jde-javadoc-gen-notree nil) '(jde-run-option-garbage-collection (quote (t t))) '(jde-db-mode-hook nil) '(jde-javadoc-command-path "javadoc") '(jde-db-option-heap-profile (quote (nil "./java.hprof" 5 20 "Allocation objects"))) '(jde-import-group-function (quote jde-import-group-of)) '(jde-db-read-vm-args nil) '(jde-bug-debug nil) '(jde-javadoc-end-block-template nil) '(jde-javadoc-gen-packages nil) '(jde-gen-cflow-if-else (quote ("(if (jde-parse-comment-or-quoted-p)" "'(l \"ife\")" "'(l '> \"if (\" (p \"if-clause: \" clause) \") \"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n'>'r'n" "\"} // end of if (\" (s clause) \")\"'> n" "'> \"else \"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n'>'r'n" "\"} // end of if (\" (s clause) \")else\"'>'n'>)" ")"))) '(jde-gen-cflow-while (quote ("(if (jde-parse-comment-or-quoted-p)" "'(l \"while\")" "'(l '> \"while (\" (p \"while-clause: \" clause) \") \"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n'>'r'n" "\"} // end of while (\" (s clause) \")\"'>'n'>)" ")"))) '(jde-bug-server-socket (quote (t . "2112"))) '(jde-imenu-include-modifiers nil) '(jde-appletviewer-option-encoding "") '(jde-bug-breakpoint-cursor-colors (quote ("cyan" . "brown"))) '(jde-compile-option-target (quote ("1.1"))) '(jde-run-executable "") '(jde-run-option-heap-size (quote ((1 . "megabytes") (16 . "megabytes")))) '(jde-gen-cflow-switch (quote ("(if (jde-parse-comment-or-quoted-p)" "'(l \"switch\")" "'(l '> \"switch (\" (p \"switch-condition: \" clause) \") \"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n'" "\"case \" (p \"first value: \") \":\"'>'n'>'p'n" "\"break;\"'>'n'>'p'n" "\"default:\"'>'n'>'p'n" "\"break;\"'>'n" "\"} // end of switch (\" (s clause) \")\"'>'n'>)" ")"))) '(jde-which-method-abbrev-symbol "~") '(jde-db-option-vm-args nil) '(jde-run-application-class "org.apache.xalan.xslt.Process" t) '(jde-javadoc-gen-doclet "") '(jde-import-auto-sort nil) '(jde-run-option-verbose (quote (nil nil nil))) '(jde-project-file-name "prj.el") '(jde-compile-option-debug (quote ("selected" (t nil nil))) t) '(jde-bug-jre-home "") '(jde-import-sorted-groups nil) '(jde-run-applet-viewer "") '(jde-javadoc-return-tag-template "\"* @return \" (jde-javadoc-a type) \" \" (jde-javadoc-code type) \" value\"") '(jde-javadoc-gen-version t) '(jde-javadoc-gen-helpfile "") '(jde-import-excluded-packages (quote ("bsh.*"))) '(jde-run-read-vm-args nil) '(jde-help-docsets nil) '(jde-gen-inner-class-template (quote ("(end-of-line) '& \"class \" (P \"Class name: \" class)" "(P \"Superclass: \" super t)" "(let ((parent (jde-gen-lookup-named 'super)))" "(if (not (string= parent \"\"))" "(concat \" extends \" parent ))) " "(if jde-gen-k&r " "()" "'>'n)" "\"{\" '>'n" "\"public \" (s class) \"() \"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n" "\"}\"'>'n" "\"}\" '>'n'>"))) '(jde-auto-parse-buffer-interval 180) '(jde-run-option-verify (quote (nil t))) '(jde-import-reverse-sort-group nil) '(jde-compile-option-optimize nil) '(jde-gen-cflow-case (quote ("(if (jde-parse-comment-or-quoted-p)" "'(l \"case\")" "'(l 'n \"case \" (p \"value: \") \":\"'>'n'>'p'n" "\"break;\"'>'n'>'p)" ")"))) '(jde-compile-option-depend nil) '(jde-javadoc-describe-class-template "\"* Describe class \" (jde-javadoc-code name) \" here.\"") '(jde-javadoc-gen-serialwarn nil) '(jde-gen-action-listener-template (quote ("'& (P \"Component name: \")" "\".addActionListener(new ActionListener() \"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n" "\"public void actionPerformed(ActionEvent e) \"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n" "\"}\"'>'n \"});\"'>'n'>"))) '(jde-auto-parse-enable t) '(jde-compile-option-command-line-args "") '(jde-gen-buffer-templates (quote (("Class" . jde-gen-class) ("Console" . jde-gen-console) ("Swing App" . jde-gen-jfc-app)))) '(jde-project-context-switching-enabled-p t) '(jde-javadoc-gen-args nil) '(jde-run-option-stack-size (quote ((128 . "kilobytes") (400 . "kilobytes")))) '(jde-run-option-properties nil t)) --- NEW FILE: ChangeLog --- 2001-11-11 Norman Walsh <nw...@us...> * .cvsignore: Removed .classes 2001-07-16 Norman Walsh <nw...@us...> * .cvsignore, prj.el: New file. |
From: Frederic D. <de...@us...> - 2004-06-01 11:14:19
|
Update of /cvsroot/fudaa/fudaa_devel/aide/xml/xsl/doc/template In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20425/xml/xsl/doc/template Added Files: ChangeLog titlepage.html Log Message: xml pour l'aide en docbook --- NEW FILE: titlepage.html --- <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>Template Stylesheet Reference</title> <link rel="stylesheet" href="../reference.css" type="text/css"> <meta name="generator" content="DocBook XSL Stylesheets V1.64.1"> </head> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <div class="reference" lang="en"><a name="d0e1"></a><div class="titlepage"> <div> <div> <h1 class="title"><a name="d0e1"></a>Template Stylesheet Reference </h1> </div> <div> <div class="author"> <h3 class="author"><span class="firstname">Norman</span> <span class="surname">Walsh</span></h3> </div> </div> <div> <p class="releaseinfo"> $Id: titlepage.html,v 1.1 2004/06/01 11:14:01 deniger Exp $ </p> </div> <div> <p class="copyright"><a href="../copyright.html">Copyright</a> © 19992000 by Norman Walsh. <a href="../warranty.html">No Warranty</a>. </p> </div> </div> <div></div> <hr> </div> <div class="partintro" lang="en"> <div> <div></div> <div></div> </div> <div class="section" lang="en"> <div class="titlepage"> <div> <div> <h2 class="title" style="clear: both"><a name="d0e24"></a>Introduction </h2> </div> </div> <div></div> </div> <p>This is technical reference documentation for the DocBook XSL Stylesheets; it documents (some of) the parameters, templates, and other elements of the stylesheets. </p> <p>This is not intended to be “<span class="quote">user</span>” documentation. It is provided for developers writing customization layers for the stylesheets, and for anyone who's interested in “<span class="quote">how it works</span>”. </p> <p>Although I am trying to be thorough, this documentation is known to be incomplete. Don't forget to read the source, too :-) </p> </div> <div class="toc"> <p><b>Table of Contents</b></p> <dl> <dt><a href="#d0e39">t:templates</a> - Construct a stylesheet for the templates provided </dt> <dt><a href="#d0e71">xsl:*</a> - Copy xsl: elements straight through </dt> <dt><a href="#d0e85">t:titlepage</a> - Create the templates necessary to construct a title page </dt> <dt><a href="#d0e178">@* (in copy.literal.atts mode)</a> - Copy t:titlepage attributes </dt> <dt><a href="#d0e198">t:titlepage-content</a> - Create templates for the content of one side of a title page </dt> <dt><a href="#d0e305">t:titlepage-separator</a> - Create templates for the separator </dt> <dt><a href="#d0e322">t:titlepage-before</a> - Create templates for what precedes a title page </dt> <dt><a href="#d0e339">* (in copy mode)</a> - Copy elements </dt> <dt><a href="#d0e353">@* (in copy mode)</a> - Copy attributes </dt> <dt><a href="#d0e367">* (in document.order mode)</a> - Create rules to process titlepage elements in document order </dt> <dt><a href="#d0e390">* (in document.order mode)</a> - Create rules to process titlepage elements in stylesheet order </dt> <dt><a href="#d0e416">* (in titlepage.specialrules mode)</a> - Create templates for special rules </dt> <dt><a href="#d0e436">* (in titlepage.subrules mode)</a> - Create template for individual special rules </dt> <dt><a href="#d0e450">t:or</a> - Process the t:or special rule </dt> <dt><a href="#d0e464">t:or (in titlepage.subrules mode)</a> - Process the t:or special rule in titlepage.subrules mode </dt> <dt><a href="#template.element-or-list">element-or-list</a> - Construct the "or-list" used in the select attribute for special rules. </dt> </dl> </div> </div> <div class="refentry" lang="en"><a name="d0e39"></a><div class="titlepage"> <div></div> <div></div> </div> <div class="refnamediv"> <h2>Name</h2> <p>t:templates — Construct a stylesheet for the templates provided</p> </div> <div class="refsynopsisdiv"> <h2>Synopsis</h2><pre class="synopsis"><xsl:template match="t:templates"/></pre></div> <div class="refdescription"><a name="d0e48"></a> <p>The <tt class="literal">t:templates</tt> element is the root of a set of templates. This template creates an appropriate <tt class="literal">xsl:stylesheet</tt> for the templates. </p> <p>If the <tt class="literal">t:templates</tt> element has a <tt class="literal">base-stylesheet</tt> attribute, an <tt class="literal">xsl:import</tt> statement is constructed for it. </p> </div> </div> <div class="refentry" lang="en"> <div class="refentry.separator"> <hr> </div><a name="d0e71"></a><div class="titlepage"> <div></div> <div></div> </div> <div class="refnamediv"> <h2>Name</h2> <p>xsl:* — Copy xsl: elements straight through</p> </div> <div class="refsynopsisdiv"> <h2>Synopsis</h2><pre class="synopsis"><xsl:template match="xsl:*"/></pre></div> <div class="refdescription"><a name="d0e80"></a> <p>This template simply copies the xsl: elements straight through into the result tree. </p> </div> </div> <div class="refentry" lang="en"> <div class="refentry.separator"> <hr> </div><a name="d0e85"></a><div class="titlepage"> <div></div> <div></div> </div> <div class="refnamediv"> <h2>Name</h2> <p>t:titlepage — Create the templates necessary to construct a title page</p> </div> <div class="refsynopsisdiv"> <h2>Synopsis</h2><pre class="synopsis"><xsl:template match="t:titlepage"/></pre></div> <div class="refdescription"><a name="d0e94"></a> <p>The <tt class="literal">t:titlepage</tt> element creates a set of templates for processing the titlepage for an element. The “<span class="quote">root</span>” of this template set is the template named “<span class="quote"><tt class="literal">wrapper.titlepage</tt></span>”. That is the template that should be called to generate the title page. </p> <p>The <tt class="literal">t:titlepage</tt> element has three attributes: </p> <div class="variablelist"> <dl> <dt><span class="term">element</span></dt> <dd> <p>The name of the source document element for which these templates apply. In other words, to make a title page for the <tt class="sgmltag-element">article</tt> element, set the <tt class="sgmltag-attribute">element</tt> attribute to “<span class="quote"><tt class="literal">article</tt></span>”. This attribute is required. </p> </dd> <dt><span class="term">wrapper</span></dt> <dd> <p>The entire title page can be wrapped with an element. This attribute identifies that element. </p> </dd> <dt><span class="term">class</span></dt> <dd> <p>If the <tt class="sgmltag-attribute">class</tt> attribute is set, a <tt class="sgmltag-attribute">class</tt> attribute with this value will be added to the wrapper element that surrounds the entire title page. </p> </dd> </dl> </div> <p> </p> <p>Any other attributes are copied through literally to the wrapper element. </p> <p>The content of a <tt class="literal">t:titlepage</tt> is one or more <tt class="literal">t:titlepage-content</tt>, <tt class="literal">t:titlepage-separator</tt>, and <tt class="literal">t:titlepage-before</tt> elements. </p> <p>Each of these elements may be provided for the “<span class="quote">recto</span>” and “<span class="quote">verso</span>” sides of the title page. </p> </div> </div> <div class="refentry" lang="en"> <div class="refentry.separator"> <hr> </div><a name="d0e178"></a><div class="titlepage"> <div></div> <div></div> </div> <div class="refnamediv"> <h2>Name</h2> <p>@* (in copy.literal.atts mode) — Copy t:titlepage attributes</p> </div> <div class="refsynopsisdiv"> <h2>Synopsis</h2><pre class="synopsis"><xsl:template match="@*" mode="copy.literal.atts"/></pre></div> <div class="refdescription"><a name="d0e187"></a> <p>This template copies all of the “<span class="quote">other</span>” attributes from a <tt class="literal">t:titlepage</tt> element onto the specified wrapper. </p> </div> </div> <div class="refentry" lang="en"> <div class="refentry.separator"> <hr> </div><a name="d0e198"></a><div class="titlepage"> <div></div> <div></div> </div> <div class="refnamediv"> <h2>Name</h2> <p>t:titlepage-content — Create templates for the content of one side of a title page</p> </div> <div class="refsynopsisdiv"> <h2>Synopsis</h2><pre class="synopsis"><xsl:template match="t:titlepage-content"/></pre></div> <div class="refdescription"><a name="d0e207"></a> <p>The title page content, that is, the elements from the source document that are rendered on the title page, can be controlled independently for the recto and verso sides of the title page. </p> <p>The <tt class="literal">t:titlepage-content</tt> element has two attributes: </p> <div class="variablelist"> <dl> <dt><span class="term">side</span></dt> <dd> <p>Identifies the side of the page to which this title page content applies. The <tt class="sgmltag-attribute">side</tt> attribute is required and must be set to either “<span class="quote"><tt class="literal">recto</tt></span>” or “<span class="quote"><tt class="literal">verso</tt></span>”. In addition, you must specify exactly one <tt class="literal">t:titlepage-content</tt> for each side within each <tt class="literal">t:titlepage</tt>. </p> </dd> <dt><span class="term">order</span></dt> <dd> <p>Indicates how the order of the elements presented on the title page is determined. If the <tt class="sgmltag-attribute">order</tt> is “<span class="quote"><tt class="literal">document</tt></span>”, the elements are presented in document order. Otherwise (if the <tt class="sgmltag-attribute">order</tt> is “<span class="quote"><tt class="literal">stylesheet</tt></span>”), the elements are presented in the order that they appear in the template (and consequently in the stylesheet). </p> </dd> </dl> </div> <p> </p> <p>The content of a <tt class="literal">t:titlepage-content</tt> element is a list of element names. These names should be unqualified. They identify the elements in the source document that should appear on the title page. </p> <p>Each element may have a single attribute: <tt class="sgmltag-attribute">predicate</tt>. The value of this attribute is used as a predicate for the expression that matches the element on which it occurs. </p> <p>In other words, to put only the first three authors on the recto-side of a title page, you could specify: </p><pre class="screen"> <t:titlepage-contents side="recto"> <!-- other titlepage elements --> <author predicate="[count(previous-sibling::author)<2]"/> <!-- other titlepage elements --> </t:titlepage-contents> </pre><p> </p> <p>Usually, the elements so named are empty. But it is possible to make one level of selection within them. Suppose that you want to process <tt class="literal">authorgroup</tt> elements on the title page, but you want to select only proper authors, editors, or corporate authors, not collaborators or other credited authors. </p> <p>In that case, you can put a <tt class="literal">t:or</tt> group inside the <tt class="literal">authorgroup</tt> element: </p><pre class="screen"> <t:titlepage-contents side="recto"> <!-- other titlepage elements --> <authorgroup> <t:or> <author/> <editor/> <corpauthor/> </t:or> </authorgroup> <!-- other titlepage elements --> </t:titlepage-contents> </pre><p> </p> <p>This will have the effect of automatically generating a template for processing <tt class="literal">authorgroup</tt>s in the title page mode, selecting only the specified children. If you need more complex processing, you'll have to construct the templates by hand. </p> </div> </div> <div class="refentry" lang="en"> <div class="refentry.separator"> <hr> </div><a name="d0e305"></a><div class="titlepage"> <div></div> <div></div> </div> <div class="refnamediv"> <h2>Name</h2> <p>t:titlepage-separator — Create templates for the separator</p> </div> <div class="refsynopsisdiv"> <h2>Synopsis</h2><pre class="synopsis"><xsl:template match="t:titlepage-separator"/></pre></div> <div class="refdescription"><a name="d0e314"></a> <p>The title page is separated from the content which follows it by the markup specified in the <tt class="literal">t:titlepage-separator</tt> element. </p> </div> </div> <div class="refentry" lang="en"> <div class="refentry.separator"> <hr> </div><a name="d0e322"></a><div class="titlepage"> <div></div> <div></div> </div> <div class="refnamediv"> <h2>Name</h2> <p>t:titlepage-before — Create templates for what precedes a title page</p> </div> <div class="refsynopsisdiv"> <h2>Synopsis</h2><pre class="synopsis"><xsl:template match="t:titlepage-before"/></pre></div> <div class="refdescription"><a name="d0e331"></a> <p>Each side of the title page is preceded by the markup specified in the <tt class="literal">t:titlepage-before</tt> element for that side. </p> </div> </div> <div class="refentry" lang="en"> <div class="refentry.separator"> <hr> </div><a name="d0e339"></a><div class="titlepage"> <div></div> <div></div> </div> <div class="refnamediv"> <h2>Name</h2> <p>* (in copy mode) — Copy elements</p> </div> <div class="refsynopsisdiv"> <h2>Synopsis</h2><pre class="synopsis"><xsl:template match="*" mode="copy"/></pre></div> <div class="refdescription"><a name="d0e348"></a> <p>This template simply copies the elements that it applies to straight through into the result tree. </p> </div> </div> <div class="refentry" lang="en"> <div class="refentry.separator"> <hr> </div><a name="d0e353"></a><div class="titlepage"> <div></div> <div></div> </div> <div class="refnamediv"> <h2>Name</h2> <p>@* (in copy mode) — Copy attributes</p> </div> <div class="refsynopsisdiv"> <h2>Synopsis</h2><pre class="synopsis"><xsl:template match="@*" mode="copy"/></pre></div> <div class="refdescription"><a name="d0e362"></a> <p>This template simply copies the attributes that it applies to straight through into the result tree. </p> </div> </div> <div class="refentry" lang="en"> <div class="refentry.separator"> <hr> </div><a name="d0e367"></a><div class="titlepage"> <div></div> <div></div> </div> <div class="refnamediv"> <h2>Name</h2> <p>* (in document.order mode) — Create rules to process titlepage elements in document order</p> </div> <div class="refsynopsisdiv"> <h2>Synopsis</h2><pre class="synopsis"><xsl:template match="*" mode="document.order"/></pre></div> <div class="refdescription"><a name="d0e376"></a> <p>This template is called to process all of the children of the <tt class="literal">t:titlepage-content</tt> element. It creates the hairy select expression necessary to process each of those elements in the title page. </p> <p>Note that this template automatically handles the case where some DocBook elements, like title and subtitle, can occur both inside the *info elements where metadata is usually stored and outside. </p> <p>It also automatically calculates the name for the *info container and handles elements that have historically had containers with different names. </p> </div> </div> <div class="refentry" lang="en"> <div class="refentry.separator"> <hr> </div><a name="d0e390"></a><div class="titlepage"> <div></div> <div></div> </div> <div class="refnamediv"> <h2>Name</h2> <p>* (in document.order mode) — Create rules to process titlepage elements in stylesheet order</p> </div> <div class="refsynopsisdiv"> <h2>Synopsis</h2><pre class="synopsis"><xsl:template match="*" mode="document.order"/></pre></div> <div class="refdescription"><a name="d0e399"></a> <p>This template is called to process all of the children of the <tt class="literal">t:titlepage-content</tt> element. It creates the set of <tt class="literal">xsl:apply-templates</tt> elements necessary process each of those elements in the title page. </p> <p>Note that this template automatically handles the case where some DocBook elements, like title and subtitle, can occur both inside the *info elements where metadata is usually stored and outside. </p> <p>It also automatically calculates the name for the *info container and handles elements that have historically had containers with different names. </p> </div> </div> <div class="refentry" lang="en"> <div class="refentry.separator"> <hr> </div><a name="d0e416"></a><div class="titlepage"> <div></div> <div></div> </div> <div class="refnamediv"> <h2>Name</h2> <p>* (in titlepage.specialrules mode) — Create templates for special rules</p> </div> <div class="refsynopsisdiv"> <h2>Synopsis</h2><pre class="synopsis"><xsl:template match="*" mode="titlepage.specialrules"/></pre></div> <div class="refdescription"><a name="d0e425"></a> <p>This template is called to process all of the descendants of the <tt class="literal">t:titlepage-content</tt> element that require special processing. At present, that's just <tt class="literal">t:or</tt> elements. </p> </div> </div> <div class="refentry" lang="en"> <div class="refentry.separator"> <hr> </div><a name="d0e436"></a><div class="titlepage"> <div></div> <div></div> </div> <div class="refnamediv"> <h2>Name</h2> <p>* (in titlepage.subrules mode) — Create template for individual special rules</p> </div> <div class="refsynopsisdiv"> <h2>Synopsis</h2><pre class="synopsis"><xsl:template match="*" mode="titlepage.subrules"/></pre></div> <div class="refdescription"><a name="d0e445"></a> <p>This template is called to process the children of special template elements. </p> </div> </div> <div class="refentry" lang="en"> <div class="refentry.separator"> <hr> </div><a name="d0e450"></a><div class="titlepage"> <div></div> <div></div> </div> <div class="refnamediv"> <h2>Name</h2> <p>t:or — Process the t:or special rule</p> </div> <div class="refsynopsisdiv"> <h2>Synopsis</h2><pre class="synopsis"><xsl:template match="t:or"/><xsl:template match="t:or" mode="titlepage.subrules"/></pre></div> <div class="refdescription"><a name="d0e459"></a> <p>This template processes t:or.</p> </div> </div> <div class="refentry" lang="en"> <div class="refentry.separator"> <hr> </div><a name="d0e464"></a><div class="titlepage"> <div></div> <div></div> </div> <div class="refnamediv"> <h2>Name</h2> <p>t:or (in titlepage.subrules mode) — Process the t:or special rule in titlepage.subrules mode </p> </div> <div class="refsynopsisdiv"> <h2>Synopsis</h2><pre class="synopsis"><xsl:template match="t:or" mode="titlepage.subrules"/></pre></div> <div class="refdescription"><a name="d0e473"></a> <p>The titlepage.subrules mode doesn't apply to t:or, so just reprocess this node in the normal mode. </p> </div> </div> <div class="refentry" lang="en"> <div class="refentry.separator"> <hr> </div><a name="template.element-or-list"></a><div class="titlepage"> <div></div> <div></div> </div> <div class="refnamediv"> <h2>Name</h2> <p>element-or-list — Construct the "or-list" used in the select attribute for special rules. </p> </div> <div class="refsynopsisdiv"> <h2>Synopsis</h2><pre class="synopsis"><xsl:template name="element-or-list"> <xsl:param name="elements" select="*"/> <xsl:param name="element.count" select="count($elements)"/> <xsl:param name="count" select="1"/> <xsl:param name="orlist"/> ... </xsl:template></pre></div> <div class="refdescription"><a name="d0e487"></a> <p>Walk through each of the children of t:or, producing the text of the select attribute. </p> </div> </div> </div> </body> </html> --- NEW FILE: ChangeLog --- 2002-03-09 Jirka Kosek <ko...@us...> * Makefile: Removed hardcoded reference for XSLT processor as it is already set in Makefile.incl. Fixed typo in DocBook DTD URI. 2001-09-09 Norman Walsh <nw...@us...> * .cvsignore, Makefile: New file. |
From: Frederic D. <de...@us...> - 2004-06-01 11:14:19
|
Update of /cvsroot/fudaa/fudaa_devel/aide/xml/xsl/extensions/xsltproc/python In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20425/xml/xsl/extensions/xsltproc/python Added Files: cwtest.xsl xslt.py cwtest.xml README docbook.py docbook.pyc ChangeLog Log Message: xml pour l'aide en docbook --- NEW FILE: xslt.py --- #!/usr/bin/python -u # THIS IS ALPHA CODE AND MAY NOT WORK CORRECTLY! import sys import string import libxml2 import libxslt from docbook import adjustColumnWidths # Check the arguments usage = "Usage: %s xmlfile.xml xslfile.xsl [outputfile] [param1=val [param2=val]...]" % sys.argv[0] xmlfile = None xslfile = None outfile = "-" params = {} try: xmlfile = sys.argv[1] xslfile = sys.argv[2] except IndexError: print usage; sys.exit(1) try: outfile = sys.argv[3] if string.find(outfile, "=") > 0: name, value = string.split(outfile, "=", 2); params[name] = value count = 4; while (sys.argv[count]): try: name, value = string.split(sys.argv[count], "=", 2); if params.has_key(name): print "Warning: '%s' re-specified; replacing value" % name params[name] = value except ValueError: print "Invalid parameter specification: '" + sys.argv[count] + "'" print usage sys.exit(1); count = count+1; except IndexError: pass # ====================================================================== # Memory debug specific # libxml2.debugMemory(1) # Setup environment libxml2.lineNumbersDefault(1) libxml2.substituteEntitiesDefault(1) libxslt.registerExtModuleFunction("adjustColumnWidths", "http://nwalsh.com/xslt/ext/xsltproc/python/Table", adjustColumnWidths) # Initialize and run styledoc = libxml2.parseFile(xslfile) style = libxslt.parseStylesheetDoc(styledoc) doc = libxml2.parseFile(xmlfile) result = style.applyStylesheet(doc, params) # Save the result style.saveResultToFilename(outfile, result, 0) # Free things up style.freeStylesheet() doc.freeDoc() result.freeDoc() # Memory debug specific #libxslt.cleanup() #if libxml2.debugMemory(1) != 0: # print "Memory leak %d bytes" % (libxml2.debugMemory(1)) # libxml2.dumpMemory() --- NEW FILE: cwtest.xml --- <table id="width-test-1" frame="all"> <title>Width Test 1</title> <tgroup cols="4" align="left"> <!-- <colspec colnum="1" colname="c1" colwidth="1in"/> <colspec colnum="2" colname="c2" colwidth="1*"/> <colspec colnum="3" colname="c3" colwidth="5*"/> <colspec colnum="4" colname="c4" colwidth="1*+0.5in"/> --> <!-- <colspec colnum="1" colname="c1" colwidth="1in"/> <colspec colnum="2" colname="c2" colwidth="1in"/> <colspec colnum="3" colname="c3" colwidth="3cm"/> <colspec colnum="4" colname="c4" colwidth="1.5in"/> --> <colspec colnum="1" colname="c1" colwidth="1*"/> <colspec colnum="2" colname="c2" colwidth="1*"/> <colspec colnum="3" colname="c3" colwidth="3*"/> <colspec colnum="4" colname="c4" colwidth="1.5*"/> <tbody> <row> <entry>1in</entry> <entry>1/7</entry> <entry>5/7</entry> <entry>1/7+0.5in</entry> </row> <row> <entry>some words to make the thing wrap around to test the width</entry> <entry>some words to make the thing wrap around to test the width</entry> <entry>some words to make the thing wrap around to test the width</entry> <entry>some words to make the thing wrap around to test the width</entry> </row> </tbody> </tgroup> </table> --- NEW FILE: docbook.py --- #!/usr/bin/python -u # THIS IS ALPHA CODE AND IS NOT COMPLETE! import sys import string import libxml2 import libxslt import re import math # Some globals pixelsPerInch = 96.0 unitHash = { 'in': pixelsPerInch, 'cm': pixelsPerInch / 2.54, 'mm': pixelsPerInch / 25.4, 'pc': (pixelsPerInch / 72.0) * 12, 'pt': pixelsPerInch / 72.0, 'px': 1 } # ====================================================================== def adjustColumnWidths(ctx, nodeset): # # Small check to verify the context is correcly accessed # try: pctxt = libxslt.xpathParserContext(_obj=ctx) ctxt = pctxt.context() tctxt = ctxt.transformContext() except: pass # Get the nominal table width varString = lookupVariable(tctxt, "nominal.table.width", None); if varString == None: nominalWidth = 6 * pixelsPerInch; else: nominalWidth = convertLength(varString); # Get the requested table width tableWidth = lookupVariable(tctxt, "table.width", "100%") foStylesheet = (tctxt.variableLookup("stylesheet.result.type", None) == "fo"); relTotal = 0 relParts = [] absTotal = 0 absParts = [] colgroup = libxml2.xmlNode(_obj = nodeset[0]) # If this is an foStylesheet, we've been passed a list of fo:table-columns. # Otherwise we've been passed a colgroup that contains a list of cols. if foStylesheet: colChildren = colgroup else: colChildren = colgroup.children col = colChildren while col != None: if foStylesheet: width = col.prop("column-width") else: width = col.prop("width") if width == None: width = "1*" relPart = 0.0; absPart = 0.0; starPos = string.find(width, "*"); if starPos >= 0: relPart, absPart = string.split(width, "*", 2) relPart = float(relPart); relTotal = relTotal + float(relPart) else: absPart = width pixels = convertLength(absPart); absTotal = absTotal + pixels; relParts.append(relPart); absParts.append(pixels); col = col.next # Ok, now we have the relative widths and absolute widths in # two parallel arrays. # # - If there are no relative widths, output the absolute widths # - If there are no absolute widths, output the relative widths # - If there are a mixture of relative and absolute widths, # - If the table width is absolute, turn these all into absolute # widths. # - If the table width is relative, turn these all into absolute # widths in the nominalWidth and then turn them back into # percentages. widths = []; if relTotal == 0: for absPart in absParts: if foStylesheet: inches = absPart / pixelsPerInch widths.append("%4.2fin" % inches) else: widths.append("%d" % absPart) elif absTotal == 0: for relPart in relParts: rel = relPart / relTotal * 100; widths.append(rel); widths = correctRoundingError(widths) else: pixelWidth = nominalWidth; if string.find(tableWidth, "%") < 0: pixelWidth = convertLength(tableWidth); if pixelWidth <= absTotal: print "Table is wider than table width" else: pixelWidth = pixelWidth - absTotal; absTotal = 0 for count in range(len(relParts)): rel = relParts[count] / relTotal * pixelWidth relParts[count] = rel + absParts[count] absTotal = absTotal + rel + absParts[count] if string.find(tableWidth, "%") < 0: for count in range(len(relParts)): if foStylesheet: pixels = relParts[count] inches = pixels / pixelsPerInch widths.append("%4.2fin" % inches) else: widths.append(relParts[count]) else: for count in range(len(relParts)): rel = relParts[count] / absTotal * 100 widths.append(rel) widths = correctRoundingError(widths) # Danger, Will Robinson! In-place modification of the result tree! # Side-effect free? We don' need no steenkin' side-effect free! count = 0 col = colChildren while col != None: if foStylesheet: col.setProp("column-width", widths[count]) else: col.setProp("width", widths[count]) count = count+1 col = col.next return nodeset def convertLength(length): # Given "3.4in" return the width in pixels global pixelsPerInch global unitHash m = re.search('([+-]?[\d\.]+)(\S+)', length) if m != None and m.lastindex > 1: unit = pixelsPerInch; if unitHash.has_key(m.group(2)): unit = unitHash[m.group(2)]; else: print "Unrecognized length: " + m.group(2) pixels = unit * float(m.group(1)) else: pixels = 0 return pixels def correctRoundingError(floatWidths): # The widths are currently floating point numbers, we have to truncate # them back to integers and then distribute the error so that they sum # to exactly 100%. totalWidth = 0 widths = []; for width in floatWidths: width = math.floor(width) widths.append(width) totalWidth = totalWidth + math.floor(width) totalError = 100 - totalWidth columnError = totalError / len(widths) error = 0 for count in range(len(widths)): width = widths[count] error = error + columnError if error >= 1.0: adj = math.floor(error); error = error - adj; widths[count] = "%d%%" % (width + adj) else: widths[count] = "%d%%" % width return widths def lookupVariable(tctxt, varName, default): varString = tctxt.variableLookup(varName, None); if varString == None: return default # If it's a list, get the first element if type(varString) == type([]): varString = varString[0] # If it's not a string, it must be a node, get its content if type(varString) != type(""): varString = varString.content return varString # ====================================================================== # Random notes... #once you have a node which is a libxml2 python xmlNode wrapper all common #operations are possible: # .children .last .parent .next .prev .doc for navigation # .content .type for introspection # .prop("attribute_name") to lookup attribute values # # Now make a nodeset to return # # Danger, Will Robinson! This creates a memory leak! # newDoc = libxml2.newDoc("1.0"); # newColGroup = newDoc.newDocNode(None, "colgroup", None); # newDoc.addChild(newColGroup); # col = colgroup.children # while col != None: # newCol = newDoc.newDocNode(None, "col", None); # newCol.copyPropList(col); # newCol.setProp("width", "4") # newColGroup.addChild(newCol) # col = col.next --- NEW FILE: ChangeLog --- 2002-11-15 Norman Walsh <nw...@us...> * .cvsignore: Ignore .pyc files * docbook.py: New file. * docbook.py: Handle FO result trees * xslt.py: Updated driver to use docbook.py 2002-11-14 Norman Walsh <nw...@us...> * xslt.py: Still experimenting 2002-07-07 Norman Walsh <nw...@us...> * .cvsignore, README, xslt.py: Snapshot 2002-06-26 Norman Walsh <nw...@us...> * xslt.py: New file. --- NEW FILE: README --- THIS IS A WORK IN PROGRESS IN PARTICULAR: IT DOES NOT WORK NOW! --- NEW FILE: cwtest.xsl --- <?xml version='1.0'?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ptbl="http://nwalsh.com/xslt/ext/xsltproc/python/Table" exclude-result-prefixes="ptbl" version='1.0'> <xsl:output method="html"/> <xsl:param name="stylesheet.result.type" select="'html'"/> <xsl:param name="use.extensions" select="1"/> <xsl:param name="tablecolumns.extension" select="1"/> <xsl:template match="tgroup"> <table> <xsl:variable name="colgroup"> <colgroup> <xsl:call-template name="generate.colgroup"> <xsl:with-param name="cols" select="@cols"/> </xsl:call-template> </colgroup> </xsl:variable> <xsl:if test="function-available('ptbl:adjustColumnWidths')"> <xsl:copy-of select="ptbl:adjustColumnWidths($colgroup)"/> </xsl:if> <xsl:apply-templates select="tbody"/> </table> </xsl:template> <xsl:template name="generate.colgroup"> <xsl:param name="cols" select="1"/> <xsl:param name="count" select="1"/> <xsl:choose> <xsl:when test="$count > $cols"></xsl:when> <xsl:otherwise> <xsl:call-template name="generate.col"> <xsl:with-param name="countcol" select="$count"/> </xsl:call-template> <xsl:call-template name="generate.colgroup"> <xsl:with-param name="cols" select="$cols"/> <xsl:with-param name="count" select="$count+1"/> </xsl:call-template> </xsl:otherwise> </xsl:choose> </xsl:template> <xsl:template name="generate.col"> <xsl:param name="countcol">1</xsl:param> <xsl:param name="colspecs" select="./colspec"/> <xsl:param name="count">1</xsl:param> <xsl:param name="colnum">1</xsl:param> <!-- <xsl:message>generate.col: <xsl:value-of select="$count"/></xsl:message> --> <xsl:choose> <xsl:when test="$count>count($colspecs)"> <col/> </xsl:when> <xsl:otherwise> <xsl:variable name="colspec" select="$colspecs[$count=position()]"/> <xsl:variable name="colspec.colnum"> <xsl:choose> <xsl:when test="$colspec/@colnum"> <xsl:value-of select="$colspec/@colnum"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="$colnum"/> </xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:choose> <xsl:when test="$colspec.colnum=$countcol"> <col> <xsl:if test="$colspec/@colwidth and $use.extensions != 0 and $tablecolumns.extension != 0"> <xsl:attribute name="width"> <xsl:value-of select="$colspec/@colwidth"/> </xsl:attribute> </xsl:if> <xsl:choose> <xsl:when test="$colspec/@align"> <xsl:attribute name="align"> <xsl:value-of select="$colspec/@align"/> </xsl:attribute> </xsl:when> <!-- Suggested by Pavel ZAMPACH <za...@ne...> --> <xsl:when test="$colspecs/ancestor::tgroup/@align"> <xsl:attribute name="align"> <xsl:value-of select="$colspecs/ancestor::tgroup/@align"/> </xsl:attribute> </xsl:when> </xsl:choose> <xsl:if test="$colspec/@char"> <xsl:attribute name="char"> <xsl:value-of select="$colspec/@char"/> </xsl:attribute> </xsl:if> <xsl:if test="$colspec/@charoff"> <xsl:attribute name="charoff"> <xsl:value-of select="$colspec/@charoff"/> </xsl:attribute> </xsl:if> </col> </xsl:when> <xsl:otherwise> <xsl:call-template name="generate.col"> <xsl:with-param name="countcol" select="$countcol"/> <xsl:with-param name="colspecs" select="$colspecs"/> <xsl:with-param name="count" select="$count+1"/> <xsl:with-param name="colnum"> <xsl:choose> <xsl:when test="$colspec/@colnum"> <xsl:value-of select="$colspec/@colnum + 1"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="$colnum + 1"/> </xsl:otherwise> </xsl:choose> </xsl:with-param> </xsl:call-template> </xsl:otherwise> </xsl:choose> </xsl:otherwise> </xsl:choose> </xsl:template> <xsl:template match="table"> <xsl:apply-templates/> </xsl:template> <xsl:template match="title"> <!-- nop --> </xsl:template> <xsl:template match="colspec"> <!-- nop --> </xsl:template> <xsl:template match="tbody"> <xsl:apply-templates/> </xsl:template> <xsl:template match="row"> <tr> <xsl:apply-templates/> </tr> </xsl:template> <xsl:template match="entry"> <td> <xsl:apply-templates/> </td> </xsl:template> </xsl:stylesheet> --- NEW FILE: docbook.pyc --- (This appears to be a binary file; contents omitted.) |
From: Frederic D. <de...@us...> - 2004-06-01 11:14:19
|
Update of /cvsroot/fudaa/fudaa_devel/aide/xml/xsl/tools/profile In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20425/xml/xsl/tools/profile Added Files: ChangeLog profile.xsl Log Message: xml pour l'aide en docbook --- NEW FILE: ChangeLog --- 2002-03-03 Jirka Kosek <ko...@us...> * profile.xsl: Old profiling stylesheet moved to new location. Old stylesheet issues warning when invoked. We should remove it completely after some time. 2001-12-07 Jirka Kosek <ko...@us...> * profile.xsl: Added support for multiple targets in one parameter 2001-08-01 Norman Walsh <nw...@us...> * profile.xsl: New file. --- NEW FILE: profile.xsl --- <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:template match="/"> <xsl:message terminate="yes">WARNING: Profiling stylesheet has moved to new location profiling/profile.xsl. This new version uses different names of parameters. Please use e.g. "profile.os" instead of simply "os". You can now also perform profiling in a single step as an integral part of transformation. Check new stylesheets profile-docbook.xsl and profile-chunk.xsl. </xsl:message> </xsl:template> </xsl:stylesheet> |
From: Frederic D. <de...@us...> - 2004-06-01 11:14:19
|
Update of /cvsroot/fudaa/fudaa_devel/aide/xml/xsl/profiling In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20425/xml/xsl/profiling Added Files: profile-mode.xsl ChangeLog xsl2profile.xsl profile.xsl strip-attributes.xsl Log Message: xml pour l'aide en docbook --- NEW FILE: ChangeLog --- 2003-09-28 Norman Walsh <nw...@us...> * xsl2profile.xsl: Fixed tool name in comment 2003-04-01 Jirka Kosek <ko...@us...> * profile.xsl: Generated <!DOCTYPE> now refers to version 4.2 of DTD 2002-08-02 Jirka Kosek <ko...@us...> * xsl2profile.xsl: Fixed bug #590074. Profiling should work with FO again. 2002-05-15 Jirka Kosek <ko...@us...> * xsl2profile.xsl: Hopefully fixed bug #549736. Single-pass profiling should also work in FO stylesheet from now. 2002-03-18 Norman Walsh <nw...@us...> * strip-attributes.xsl: New file. 2002-03-03 Jirka Kosek <ko...@us...> * profile-mode.xsl: Added new stylesheet parameters for profiling. * profile.xsl: New file. 2002-03-01 Jirka Kosek <ko...@us...> * profile-mode.xsl, xsl2profile.xsl: New file. --- NEW FILE: profile.xsl --- <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <!-- Include common profiling stylesheet --> <xsl:include href="profile-mode.xsl"/> <!-- Generate DocBook instance with correct DOCTYPE --> <xsl:output method="xml" doctype-public="-//OASIS//DTD DocBook XML V4.2//EN" doctype-system="http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"/> <!-- Profiling parameters --> <xsl:param name="profile.arch" select="''"/> <xsl:param name="profile.condition" select="''"/> <xsl:param name="profile.conformance" select="''"/> <xsl:param name="profile.lang" select="''"/> <xsl:param name="profile.os" select="''"/> <xsl:param name="profile.revision" select="''"/> <xsl:param name="profile.revisionflag" select="''"/> <xsl:param name="profile.role" select="''"/> <xsl:param name="profile.security" select="''"/> <xsl:param name="profile.userlevel" select="''"/> <xsl:param name="profile.vendor" select="''"/> <xsl:param name="profile.attribute" select="''"/> <xsl:param name="profile.value" select="''"/> <xsl:param name="profile.separator" select="';'"/> <!-- Call common profiling mode --> <xsl:template match="/"> <xsl:apply-templates select="." mode="profile"/> </xsl:template> </xsl:stylesheet> --- NEW FILE: xsl2profile.xsl --- <?xml version="1.0"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xslo="http://www.w3.org/1999/XSL/TransformAlias" xmlns:fo="http://www.w3.org/1999/XSL/Format" exclude-result-prefixes="fo" version="1.0"> <xsl:include href="../lib/lib.xsl"/> <xsl:output method="xml" encoding="US-ASCII"/> <xsl:namespace-alias stylesheet-prefix="xslo" result-prefix="xsl"/> <xsl:preserve-space elements="*"/> <xsl:template match="/"> <xsl:text> </xsl:text> <xsl:comment>This file was created automatically by xsl2profile</xsl:comment> <xsl:text> </xsl:text> <xsl:comment>from the DocBook XSL stylesheets. Do not edit this file.</xsl:comment> <xsl:text> </xsl:text> <xsl:apply-templates/> <xsl:text> </xsl:text> </xsl:template> <!-- Make sure we override some templates and parameters appropriately for XHTML --> <xsl:template match="xsl:stylesheet"> <xsl:copy> <xsl:attribute name="exslt:dummy" xmlns:exslt="http://exslt.org/common">dummy</xsl:attribute> <xsl:if test="not(@extension-element-prefixes)"> <xsl:attribute name="extension-element-prefixes">exslt</xsl:attribute> </xsl:if> <xsl:if test="not(@exclude-result-prefixes)"> <xsl:attribute name="exclude-result-prefixes">exslt</xsl:attribute> </xsl:if> <xsl:for-each select="@*"> <xsl:choose> <xsl:when test="local-name(.) = 'extension-element-prefixes' or local-name(.) = 'exclude-result-prefixes'"> <xsl:attribute name="{local-name(.)}"><xsl:value-of select="concat(., ' exslt')"/></xsl:attribute> </xsl:when> <xsl:otherwise> <xsl:attribute name="{local-name(.)}"><xsl:value-of select="."/></xsl:attribute> </xsl:otherwise> </xsl:choose> </xsl:for-each> <xsl:apply-templates/> </xsl:copy> </xsl:template> <xsl:template match="*"> <xsl:copy> <xsl:copy-of select="@*"/> <xsl:apply-templates/> </xsl:copy> </xsl:template> <xsl:template match="comment()|processing-instruction()|text()"> <xsl:copy/> </xsl:template> <xsl:template match="xsl:template[@match='/' or @name='hhc-main' or @name='hhp-main']"> <xsl:if test="@match='/'"> <xslo:include href="../profiling/profile-mode.xsl"/> </xsl:if> <xsl:copy> <xsl:copy-of select="@*"/> <xslo:variable name="profiled-content"> <xslo:apply-templates select="." mode="profile"/> </xslo:variable> <xslo:variable name="profiled-nodes" select="exslt:node-set($profiled-content)"/> <xsl:apply-templates mode="correct"/> </xsl:copy> </xsl:template> <xsl:template match="*[@select='/']" mode="correct"> <xsl:copy> <xsl:for-each select="@*"> <xsl:choose> <xsl:when test="local-name(.) = 'select' and string(.) = '/'"> <xsl:attribute name="{local-name(.)}">$profiled-nodes</xsl:attribute> </xsl:when> <xsl:otherwise> <xsl:attribute name="{local-name(.)}"><xsl:value-of select="."/></xsl:attribute> </xsl:otherwise> </xsl:choose> </xsl:for-each> <xsl:apply-templates mode="correct"/> </xsl:copy> </xsl:template> <xsl:template match='*[contains(@*, "key('id',$rootid)")]' mode="correct" priority="2"> <xsl:copy> <xsl:for-each select="@*"> <xsl:choose> <xsl:when test='contains(., "key('id',$rootid)")'> <xsl:attribute name="{local-name(.)}"> <xsl:call-template name="string.subst"> <xsl:with-param name="string" select="."/> <xsl:with-param name="target">key('id',$rootid)</xsl:with-param> <xsl:with-param name="replacement">$profiled-nodes//*[@id=$rootid]</xsl:with-param> </xsl:call-template> </xsl:attribute> </xsl:when> <xsl:otherwise> <xsl:attribute name="{local-name(.)}"><xsl:value-of select="."/></xsl:attribute> </xsl:otherwise> </xsl:choose> </xsl:for-each> <xsl:apply-templates mode="correct"/> </xsl:copy> </xsl:template> <!-- FO stylesheet has apply-templates without select, we must detect it by context --> <xsl:template match="fo:root//xsl:apply-templates" mode="correct"> <xsl:copy> <xsl:copy-of select="@*"/> <xsl:attribute name="select">$profiled-nodes/node()</xsl:attribute> <xsl:apply-templates mode="correct"/> </xsl:copy> </xsl:template> <xsl:template match="*" mode="correct"> <xsl:copy> <xsl:copy-of select="@*"/> <xsl:apply-templates mode="correct"/> </xsl:copy> </xsl:template> <xsl:template match="comment()|processing-instruction()|text()" mode="correct"> <xsl:copy/> </xsl:template> </xsl:stylesheet> --- NEW FILE: profile-mode.xsl --- <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <!-- Copy all non-element nodes --> <xsl:template match="@*|text()|comment()|processing-instruction()" mode="profile"> <xsl:copy/> </xsl:template> <!-- Profile elements based on input parameters --> <xsl:template match="*" mode="profile"> <xsl:variable name="arch.content"> <xsl:if test="@arch"> <xsl:call-template name="cross.compare"> <xsl:with-param name="a" select="$profile.arch"/> <xsl:with-param name="b" select="@arch"/> </xsl:call-template> </xsl:if> </xsl:variable> <xsl:variable name="arch.ok" select="not(@arch) or not($profile.arch) or $arch.content != '' or @arch = ''"/> <xsl:variable name="condition.content"> <xsl:if test="@condition"> <xsl:call-template name="cross.compare"> <xsl:with-param name="a" select="$profile.condition"/> <xsl:with-param name="b" select="@condition"/> </xsl:call-template> </xsl:if> </xsl:variable> <xsl:variable name="condition.ok" select="not(@condition) or not($profile.condition) or $condition.content != '' or @condition = ''"/> <xsl:variable name="conformance.content"> <xsl:if test="@conformance"> <xsl:call-template name="cross.compare"> <xsl:with-param name="a" select="$profile.conformance"/> <xsl:with-param name="b" select="@conformance"/> </xsl:call-template> </xsl:if> </xsl:variable> <xsl:variable name="conformance.ok" select="not(@conformance) or not($profile.conformance) or $conformance.content != '' or @conformance = ''"/> <xsl:variable name="lang.content"> <xsl:if test="@lang"> <xsl:call-template name="cross.compare"> <xsl:with-param name="a" select="$profile.lang"/> <xsl:with-param name="b" select="@lang"/> </xsl:call-template> </xsl:if> </xsl:variable> <xsl:variable name="lang.ok" select="not(@lang) or not($profile.lang) or $lang.content != '' or @lang = ''"/> <xsl:variable name="os.content"> <xsl:if test="@os"> <xsl:call-template name="cross.compare"> <xsl:with-param name="a" select="$profile.os"/> <xsl:with-param name="b" select="@os"/> </xsl:call-template> </xsl:if> </xsl:variable> <xsl:variable name="os.ok" select="not(@os) or not($profile.os) or $os.content != '' or @os = ''"/> <xsl:variable name="revision.content"> <xsl:if test="@revision"> <xsl:call-template name="cross.compare"> <xsl:with-param name="a" select="$profile.revision"/> <xsl:with-param name="b" select="@revision"/> </xsl:call-template> </xsl:if> </xsl:variable> <xsl:variable name="revision.ok" select="not(@revision) or not($profile.revision) or $revision.content != '' or @revision = ''"/> <xsl:variable name="revisionflag.content"> <xsl:if test="@revisionflag"> <xsl:call-template name="cross.compare"> <xsl:with-param name="a" select="$profile.revisionflag"/> <xsl:with-param name="b" select="@revisionflag"/> </xsl:call-template> </xsl:if> </xsl:variable> <xsl:variable name="revisionflag.ok" select="not(@revisionflag) or not($profile.revisionflag) or $revisionflag.content != '' or @revisionflag = ''"/> <xsl:variable name="role.content"> <xsl:if test="@role"> <xsl:call-template name="cross.compare"> <xsl:with-param name="a" select="$profile.role"/> <xsl:with-param name="b" select="@role"/> </xsl:call-template> </xsl:if> </xsl:variable> <xsl:variable name="role.ok" select="not(@role) or not($profile.role) or $role.content != '' or @role = ''"/> <xsl:variable name="security.content"> <xsl:if test="@security"> <xsl:call-template name="cross.compare"> <xsl:with-param name="a" select="$profile.security"/> <xsl:with-param name="b" select="@security"/> </xsl:call-template> </xsl:if> </xsl:variable> <xsl:variable name="security.ok" select="not(@security) or not($profile.security) or $security.content != '' or @security = ''"/> <xsl:variable name="userlevel.content"> <xsl:if test="@userlevel"> <xsl:call-template name="cross.compare"> <xsl:with-param name="a" select="$profile.userlevel"/> <xsl:with-param name="b" select="@userlevel"/> </xsl:call-template> </xsl:if> </xsl:variable> <xsl:variable name="userlevel.ok" select="not(@userlevel) or not($profile.userlevel) or $userlevel.content != '' or @userlevel = ''"/> <xsl:variable name="vendor.content"> <xsl:if test="@vendor"> <xsl:call-template name="cross.compare"> <xsl:with-param name="a" select="$profile.vendor"/> <xsl:with-param name="b" select="@vendor"/> </xsl:call-template> </xsl:if> </xsl:variable> <xsl:variable name="vendor.ok" select="not(@vendor) or not($profile.vendor) or $vendor.content != '' or @vendor = ''"/> <xsl:variable name="attribute.content"> <xsl:if test="@*[local-name()=$profile.attribute]"> <xsl:call-template name="cross.compare"> <xsl:with-param name="a" select="$profile.value"/> <xsl:with-param name="b" select="@*[local-name()=$profile.attribute]"/> </xsl:call-template> </xsl:if> </xsl:variable> <xsl:variable name="attribute.ok" select="not(@*[local-name()=$profile.attribute]) or not($profile.value) or $attribute.content != '' or @*[local-name()=$profile.attribute] = '' or not($profile.attribute)"/> <xsl:if test="$arch.ok and $condition.ok and $conformance.ok and $lang.ok and $os.ok and $revision.ok and $revisionflag.ok and $role.ok and $security.ok and $userlevel.ok and $vendor.ok and $attribute.ok"> <xsl:copy> <xsl:apply-templates select="@*|node()" mode="profile"/> </xsl:copy> </xsl:if> </xsl:template> <!-- Returns non-empty string if list in $b contains one ore more values from list $a --> <xsl:template name="cross.compare"> <xsl:param name="a"/> <xsl:param name="b"/> <xsl:param name="sep" select="$profile.separator"/> <xsl:variable name="head" select="substring-before(concat($a, $sep), $sep)"/> <xsl:variable name="tail" select="substring-after($a, $sep)"/> <xsl:if test="contains(concat($sep, $b, $sep), concat($sep, $head, $sep))">1</xsl:if> <xsl:if test="$tail"> <xsl:call-template name="cross.compare"> <xsl:with-param name="a" select="$tail"/> <xsl:with-param name="b" select="$b"/> </xsl:call-template> </xsl:if> </xsl:template> </xsl:stylesheet> --- NEW FILE: strip-attributes.xsl --- <?xml version="1.0"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:output method="xml"/> <xsl:param name="attributes" select="''"/> <xsl:variable name="strip-attributes" select="concat(' ', normalize-space($attributes), ' ')"/> <xsl:template match="@*|text()|comment()|processing-instruction()"> <xsl:copy/> </xsl:template> <xsl:template match="*"> <xsl:copy> <xsl:for-each select="@*"> <xsl:if test="not(contains($strip-attributes, concat(' ',name(.),' ')))"> <xsl:copy-of select="."/> </xsl:if> </xsl:for-each> <xsl:apply-templates select="node()"/> </xsl:copy> </xsl:template> </xsl:stylesheet> |
From: Frederic D. <de...@us...> - 2004-06-01 11:14:19
|
Update of /cvsroot/fudaa/fudaa_devel/aide/xml/xsl/javahelp In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20425/xml/xsl/javahelp Added Files: ChangeLog javahelp.xsl profile-javahelp.xsl Log Message: xml pour l'aide en docbook --- NEW FILE: profile-javahelp.xsl --- <?xml version="1.0" encoding="US-ASCII"?> <!--This file was created automatically by xsl2profile--> <!--from the DocBook XSL stylesheets. Do not edit this file.--> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:doc="http://nwalsh.com/xsl/documentation/1.0" xmlns:exslt="http://exslt.org/common" exslt:dummy="dummy" extension-element-prefixes="exslt" version="1.0" exclude-result-prefixes="doc exslt"> <xsl:import href="../html/chunk.xsl"/> <xsl:output method="html"/> <!-- ******************************************************************** $Id: profile-javahelp.xsl,v 1.1 2004/06/01 11:14:02 deniger Exp $ ******************************************************************** This file is part of the XSL DocBook Stylesheet distribution. See ../README or http://nwalsh.com/docbook/xsl/ for copyright and other information. ******************************************************************** --> <!-- ==================================================================== --> <xsl:param name="javahelp.encoding" select="'ISO-8859-1'"/> <doc:param name="javahelp.encoding"> <refpurpose>Character encoding to use in control files for Java Help.</refpurpose> <refdescription> <para>Java Help crashes on some characters when written as character references. In that case you can select appropriate encoding here.</para> </refdescription> </doc:param> <!-- ==================================================================== --> <xslo:include xmlns:xslo="http://www.w3.org/1999/XSL/Transform" href="../profiling/profile-mode.xsl"/><xsl:template match="/"><xslo:variable xmlns:xslo="http://www.w3.org/1999/XSL/Transform" name="profiled-content"><xslo:apply-templates select="." mode="profile"/></xslo:variable><xslo:variable xmlns:xslo="http://www.w3.org/1999/XSL/Transform" name="profiled-nodes" select="exslt:node-set($profiled-content)"/> <xsl:choose> <xsl:when test="$rootid != ''"> <xsl:choose> <xsl:when test="count($profiled-nodes//*[@id=$rootid]) = 0"> <xsl:message terminate="yes"> <xsl:text>ID '</xsl:text> <xsl:value-of select="$rootid"/> <xsl:text>' not found in document.</xsl:text> </xsl:message> </xsl:when> <xsl:otherwise> <xsl:message>Formatting from <xsl:value-of select="$rootid"/></xsl:message> <xsl:apply-templates select="$profiled-nodes//*[@id=$rootid]" mode="process.root"/> </xsl:otherwise> </xsl:choose> </xsl:when> <xsl:otherwise> <xsl:apply-templates select="$profiled-nodes" mode="process.root"/> </xsl:otherwise> </xsl:choose> <xsl:call-template name="helpset"/> <xsl:call-template name="helptoc"/> <xsl:call-template name="helpmap"/> <xsl:call-template name="helpidx"/> </xsl:template> <xsl:template name="header.navigation"> </xsl:template> <xsl:template name="footer.navigation"> </xsl:template> <!-- ==================================================================== --> <xsl:template name="helpset"> <xsl:call-template name="write.chunk.with.doctype"> <xsl:with-param name="filename" select="concat($base.dir,'jhelpset.hs')"/> <xsl:with-param name="method" select="'xml'"/> <xsl:with-param name="indent" select="'yes'"/> <xsl:with-param name="doctype-public" select="'-//Sun Microsystems Inc.//DTD JavaHelp HelpSet Version 1.0//EN'"/> <xsl:with-param name="doctype-system" select="'http://java.sun.com/products/javahelp/helpset_1_0.dtd'"/> <xsl:with-param name="content"> <xsl:call-template name="helpset.content"/> </xsl:with-param> </xsl:call-template> </xsl:template> <xsl:template name="helpset.content"> <xsl:variable name="title"> <xsl:apply-templates select="." mode="title.markup"/> </xsl:variable> <helpset version="1.0"> <title> <xsl:value-of select="$title"/> </title> <!-- maps --> <maps> <homeID>top</homeID> <mapref location="jhelpmap.jhm"/> </maps> <!-- views --> <view> <name>TOC</name> <label>Table Of Contents</label> <type>javax.help.TOCView</type> <data>jhelptoc.xml</data> </view> <view> <name>Index</name> <label>Index</label> <type>javax.help.IndexView</type> <data>jhelpidx.xml</data> </view> <view> <name>Search</name> <label>Search</label> <type>javax.help.SearchView</type> <data engine="com.sun.java.help.search.DefaultSearchEngine">JavaHelpSearch</data> </view> </helpset> </xsl:template> <!-- ==================================================================== --> <xsl:template name="helptoc"> <xsl:call-template name="write.chunk.with.doctype"> <xsl:with-param name="filename" select="concat($base.dir,'jhelptoc.xml')"/> <xsl:with-param name="method" select="'xml'"/> <xsl:with-param name="indent" select="'yes'"/> <xsl:with-param name="doctype-public" select="'-//Sun Microsystems Inc.//DTD JavaHelp TOC Version 1.0//EN'"/> <xsl:with-param name="doctype-system" select="'http://java.sun.com/products/javahelp/toc_1_0.dtd'"/> <xsl:with-param name="encoding" select="$javahelp.encoding"/> <xsl:with-param name="content"> <xsl:call-template name="helptoc.content"/> </xsl:with-param> </xsl:call-template> </xsl:template> <xsl:template name="helptoc.content"> <toc version="1.0"> <xsl:choose> <xsl:when test="$rootid != ''"> <xsl:apply-templates select="key('id',$rootid)" mode="jhtoc"/> </xsl:when> <xsl:otherwise> <xsl:apply-templates select="." mode="jhtoc"/> </xsl:otherwise> </xsl:choose> </toc> </xsl:template> <xsl:template match="set" mode="jhtoc"> <xsl:variable name="id"> <xsl:call-template name="object.id"> <xsl:with-param name="object" select="."/> </xsl:call-template> </xsl:variable> <xsl:variable name="title"> <xsl:apply-templates select="." mode="title.markup"/> </xsl:variable> <tocitem target="{$id}"> <xsl:attribute name="text"> <xsl:value-of select="$title"/> </xsl:attribute> <xsl:apply-templates select="book" mode="jhtoc"/> </tocitem> </xsl:template> <xsl:template match="book" mode="jhtoc"> <xsl:variable name="id"> <xsl:call-template name="object.id"/> </xsl:variable> <xsl:variable name="title"> <xsl:apply-templates select="." mode="title.markup"/> </xsl:variable> <tocitem target="{$id}"> <xsl:attribute name="text"> <xsl:value-of select="$title"/> </xsl:attribute> <xsl:apply-templates select="part|reference|preface|chapter|appendix|article|colophon" mode="jhtoc"/> </tocitem> </xsl:template> <xsl:template match="part|reference|preface|chapter|appendix|article" mode="jhtoc"> <xsl:variable name="id"> <xsl:call-template name="object.id"/> </xsl:variable> <xsl:variable name="title"> <xsl:apply-templates select="." mode="title.markup"/> </xsl:variable> <tocitem target="{$id}"> <xsl:attribute name="text"> <xsl:value-of select="$title"/> </xsl:attribute> <xsl:apply-templates select="preface|chapter|appendix|refentry|section|sect1" mode="jhtoc"/> </tocitem> </xsl:template> <xsl:template match="section" mode="jhtoc"> <xsl:variable name="id"> <xsl:call-template name="object.id"/> </xsl:variable> <xsl:variable name="title"> <xsl:apply-templates select="." mode="title.markup"/> </xsl:variable> <tocitem target="{$id}"> <xsl:attribute name="text"> <xsl:value-of select="$title"/> </xsl:attribute> <xsl:apply-templates select="section" mode="jhtoc"/> </tocitem> </xsl:template> <xsl:template match="sect1" mode="jhtoc"> <xsl:variable name="id"> <xsl:call-template name="object.id"/> </xsl:variable> <xsl:variable name="title"> <xsl:apply-templates select="." mode="title.markup"/> </xsl:variable> <tocitem target="{$id}"> <xsl:attribute name="text"> <xsl:value-of select="$title"/> </xsl:attribute> <xsl:apply-templates select="sect2" mode="jhtoc"/> </tocitem> </xsl:template> <xsl:template match="sect2" mode="jhtoc"> <xsl:variable name="id"> <xsl:call-template name="object.id"/> </xsl:variable> <xsl:variable name="title"> <xsl:apply-templates select="." mode="title.markup"/> </xsl:variable> <tocitem target="{$id}"> <xsl:attribute name="text"> <xsl:value-of select="$title"/> </xsl:attribute> <xsl:apply-templates select="sect3" mode="jhtoc"/> </tocitem> </xsl:template> <xsl:template match="sect3" mode="jhtoc"> <xsl:variable name="id"> <xsl:call-template name="object.id"/> </xsl:variable> <xsl:variable name="title"> <xsl:apply-templates select="." mode="title.markup"/> </xsl:variable> <tocitem target="{$id}"> <xsl:attribute name="text"> <xsl:value-of select="$title"/> </xsl:attribute> <xsl:apply-templates select="sect4" mode="jhtoc"/> </tocitem> </xsl:template> <xsl:template match="sect4" mode="jhtoc"> <xsl:variable name="id"> <xsl:call-template name="object.id"/> </xsl:variable> <xsl:variable name="title"> <xsl:apply-templates select="." mode="title.markup"/> </xsl:variable> <tocitem target="{$id}"> <xsl:attribute name="text"> <xsl:value-of select="$title"/> </xsl:attribute> <xsl:apply-templates select="sect5" mode="jhtoc"/> </tocitem> </xsl:template> <xsl:template match="sect5|colophon" mode="jhtoc"> <xsl:variable name="id"> <xsl:call-template name="object.id"/> </xsl:variable> <xsl:variable name="title"> <xsl:apply-templates select="." mode="title.markup"/> </xsl:variable> <tocitem target="{$id}"> <xsl:attribute name="text"> <xsl:value-of select="$title"/> </xsl:attribute> </tocitem> </xsl:template> <!-- ==================================================================== --> <xsl:template name="helpmap"> <xsl:call-template name="write.chunk.with.doctype"> <xsl:with-param name="filename" select="concat($base.dir, 'jhelpmap.jhm')"/> <xsl:with-param name="method" select="'xml'"/> <xsl:with-param name="indent" select="'yes'"/> <xsl:with-param name="doctype-public" select="'-//Sun Microsystems Inc.//DTD JavaHelp Map Version 1.0//EN'"/> <xsl:with-param name="doctype-system" select="'http://java.sun.com/products/javahelp/map_1_0.dtd'"/> <xsl:with-param name="encoding" select="$javahelp.encoding"/> <xsl:with-param name="content"> <xsl:call-template name="helpmap.content"/> </xsl:with-param> </xsl:call-template> </xsl:template> <xsl:template name="helpmap.content"> <map version="1.0"> <xsl:choose> <xsl:when test="$rootid != ''"> <xsl:apply-templates select="key('id',$rootid)//set | key('id',$rootid)//book | key('id',$rootid)//part | key('id',$rootid)//reference | key('id',$rootid)//preface | key('id',$rootid)//chapter | key('id',$rootid)//appendix | key('id',$rootid)//article | key('id',$rootid)//colophon | key('id',$rootid)//refentry | key('id',$rootid)//section | key('id',$rootid)//sect1 | key('id',$rootid)//sect2 | key('id',$rootid)//sect3 | key('id',$rootid)//sect4 | key('id',$rootid)//sect5 | key('id',$rootid)//indexterm" mode="map"/> </xsl:when> <xsl:otherwise> <xsl:apply-templates select="//set | //book | //part | //reference | //preface | //chapter | //appendix | //article | //colophon | //refentry | //section | //sect1 | //sect2 | //sect3 | //sect4 | //sect5 | //indexterm" mode="map"/> </xsl:otherwise> </xsl:choose> </map> </xsl:template> <xsl:template match="set" mode="map"> <xsl:variable name="id"> <xsl:call-template name="object.id"> <xsl:with-param name="object" select="."/> </xsl:call-template> </xsl:variable> <mapID target="{$id}"> <xsl:attribute name="url"> <xsl:call-template name="href.target.uri"/> </xsl:attribute> </mapID> </xsl:template> <xsl:template match="book" mode="map"> <xsl:variable name="id"> <xsl:call-template name="object.id"/> </xsl:variable> <mapID target="{$id}"> <xsl:attribute name="url"> <xsl:call-template name="href.target.uri"/> </xsl:attribute> </mapID> </xsl:template> <xsl:template match="part|reference|preface|chapter|appendix|article" mode="map"> <xsl:variable name="id"> <xsl:call-template name="object.id"/> </xsl:variable> <mapID target="{$id}"> <xsl:attribute name="url"> <xsl:call-template name="href.target.uri"/> </xsl:attribute> </mapID> </xsl:template> <xsl:template match="section|sect1|sect2|sect3|sect4|sect5|colophon" mode="map"> <xsl:variable name="id"> <xsl:call-template name="object.id"/> </xsl:variable> <mapID target="{$id}"> <xsl:attribute name="url"> <xsl:call-template name="href.target.uri"/> </xsl:attribute> </mapID> </xsl:template> <xsl:template match="indexterm" mode="map"> <xsl:variable name="id"> <xsl:call-template name="object.id"/> </xsl:variable> <mapID target="{$id}"> <xsl:attribute name="url"> <xsl:call-template name="href.target.uri"/> </xsl:attribute> </mapID> </xsl:template> <!-- ==================================================================== --> <xsl:template name="helpidx"> <xsl:call-template name="write.chunk.with.doctype"> <xsl:with-param name="filename" select="concat($base.dir, 'jhelpidx.xml')"/> <xsl:with-param name="method" select="'xml'"/> <xsl:with-param name="indent" select="'yes'"/> <xsl:with-param name="doctype-public" select="'-//Sun Microsystems Inc.//DTD JavaHelp Index Version 1.0//EN'"/> <xsl:with-param name="doctype-system" select="'http://java.sun.com/products/javahelp/index_1_0.dtd'"/> <xsl:with-param name="encoding" select="$javahelp.encoding"/> <xsl:with-param name="content"> <xsl:call-template name="helpidx.content"/> </xsl:with-param> </xsl:call-template> </xsl:template> <xsl:template name="helpidx.content"> <index version="1.0"> <xsl:choose> <xsl:when test="$rootid != ''"> <xsl:apply-templates select="key('id',$rootid)//indexterm" mode="idx"/> </xsl:when> <xsl:otherwise> <xsl:apply-templates select="//indexterm" mode="idx"/> </xsl:otherwise> </xsl:choose> </index> </xsl:template> <xsl:template match="indexterm" mode="idx"> <xsl:variable name="id"> <xsl:call-template name="object.id"/> </xsl:variable> <xsl:variable name="text"> <xsl:value-of select="primary"/> <xsl:if test="secondary"> <xsl:text>, </xsl:text> <xsl:value-of select="secondary"/> </xsl:if> <xsl:if test="tertiary"> <xsl:text>, </xsl:text> <xsl:value-of select="tertiary"/> </xsl:if> </xsl:variable> <xsl:choose> <xsl:when test="see"> <xsl:variable name="see"><xsl:value-of select="see"/></xsl:variable> <indexitem text="{$text} see '{$see}'"/> </xsl:when> <xsl:otherwise> <indexitem text="{$text}" target="{$id}"/> </xsl:otherwise> </xsl:choose> </xsl:template> <!-- ==================================================================== --> </xsl:stylesheet> --- NEW FILE: javahelp.xsl --- <?xml version="1.0"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:doc="http://nwalsh.com/xsl/documentation/1.0" version="1.0" exclude-result-prefixes="doc"> <xsl:import href="../html/chunk.xsl"/> <xsl:output method="html"/> <!-- ******************************************************************** $Id: javahelp.xsl,v 1.1 2004/06/01 11:14:02 deniger Exp $ ******************************************************************** This file is part of the XSL DocBook Stylesheet distribution. See ../README or http://nwalsh.com/docbook/xsl/ for copyright and other information. ******************************************************************** --> <!-- ==================================================================== --> <xsl:param name="javahelp.encoding" select="'ISO-8859-1'"/> <doc:param name="javahelp.encoding" xmlns=""> <refpurpose>Character encoding to use in control files for Java Help.</refpurpose> <refdescription> <para>Java Help crashes on some characters when written as character references. In that case you can select appropriate encoding here.</para> </refdescription> </doc:param> <!-- ==================================================================== --> <xsl:template match="/"> <xsl:choose> <xsl:when test="$rootid != ''"> <xsl:choose> <xsl:when test="count(key('id',$rootid)) = 0"> <xsl:message terminate="yes"> <xsl:text>ID '</xsl:text> <xsl:value-of select="$rootid"/> <xsl:text>' not found in document.</xsl:text> </xsl:message> </xsl:when> <xsl:otherwise> <xsl:message>Formatting from <xsl:value-of select="$rootid"/></xsl:message> <xsl:apply-templates select="key('id',$rootid)" mode="process.root"/> </xsl:otherwise> </xsl:choose> </xsl:when> <xsl:otherwise> <xsl:apply-templates select="/" mode="process.root"/> </xsl:otherwise> </xsl:choose> <xsl:call-template name="helpset"/> <xsl:call-template name="helptoc"/> <xsl:call-template name="helpmap"/> <xsl:call-template name="helpidx"/> </xsl:template> <xsl:template name="header.navigation"> </xsl:template> <xsl:template name="footer.navigation"> </xsl:template> <!-- ==================================================================== --> <xsl:template name="helpset"> <xsl:call-template name="write.chunk.with.doctype"> <xsl:with-param name="filename" select="concat($base.dir,'jhelpset.hs')"/> <xsl:with-param name="method" select="'xml'"/> <xsl:with-param name="indent" select="'yes'"/> <xsl:with-param name="doctype-public" select="'-//Sun Microsystems Inc.//DTD JavaHelp HelpSet Version 1.0//EN'"/> <xsl:with-param name="doctype-system" select="'http://java.sun.com/products/javahelp/helpset_1_0.dtd'"/> <xsl:with-param name="content"> <xsl:call-template name="helpset.content"/> </xsl:with-param> </xsl:call-template> </xsl:template> <xsl:template name="helpset.content"> <xsl:variable name="title"> <xsl:apply-templates select="." mode="title.markup"/> </xsl:variable> <helpset version="1.0"> <title> <xsl:value-of select="$title"/> </title> <!-- maps --> <maps> <homeID>top</homeID> <mapref location="jhelpmap.jhm"/> </maps> <!-- views --> <view> <name>TOC</name> <label>Table Of Contents</label> <type>javax.help.TOCView</type> <data>jhelptoc.xml</data> </view> <view> <name>Index</name> <label>Index</label> <type>javax.help.IndexView</type> <data>jhelpidx.xml</data> </view> <view> <name>Search</name> <label>Search</label> <type>javax.help.SearchView</type> <data engine="com.sun.java.help.search.DefaultSearchEngine">JavaHelpSearch</data> </view> </helpset> </xsl:template> <!-- ==================================================================== --> <xsl:template name="helptoc"> <xsl:call-template name="write.chunk.with.doctype"> <xsl:with-param name="filename" select="concat($base.dir,'jhelptoc.xml')"/> <xsl:with-param name="method" select="'xml'"/> <xsl:with-param name="indent" select="'yes'"/> <xsl:with-param name="doctype-public" select="'-//Sun Microsystems Inc.//DTD JavaHelp TOC Version 1.0//EN'"/> <xsl:with-param name="doctype-system" select="'http://java.sun.com/products/javahelp/toc_1_0.dtd'"/> <xsl:with-param name="encoding" select="$javahelp.encoding"/> <xsl:with-param name="content"> <xsl:call-template name="helptoc.content"/> </xsl:with-param> </xsl:call-template> </xsl:template> <xsl:template name="helptoc.content"> <toc version="1.0"> <xsl:choose> <xsl:when test="$rootid != ''"> <xsl:apply-templates select="key('id',$rootid)" mode="jhtoc"/> </xsl:when> <xsl:otherwise> <xsl:apply-templates select="." mode="jhtoc"/> </xsl:otherwise> </xsl:choose> </toc> </xsl:template> <xsl:template match="set" mode="jhtoc"> <xsl:variable name="id"> <xsl:call-template name="object.id"> <xsl:with-param name="object" select="."/> </xsl:call-template> </xsl:variable> <xsl:variable name="title"> <xsl:apply-templates select="." mode="title.markup"/> </xsl:variable> <tocitem target="{$id}"> <xsl:attribute name="text"> <xsl:value-of select="$title"/> </xsl:attribute> <xsl:apply-templates select="book" mode="jhtoc"/> </tocitem> </xsl:template> <xsl:template match="book" mode="jhtoc"> <xsl:variable name="id"> <xsl:call-template name="object.id"/> </xsl:variable> <xsl:variable name="title"> <xsl:apply-templates select="." mode="title.markup"/> </xsl:variable> <tocitem target="{$id}"> <xsl:attribute name="text"> <xsl:value-of select="$title"/> </xsl:attribute> <xsl:apply-templates select="part|reference|preface|chapter|appendix|article|colophon" mode="jhtoc"/> </tocitem> </xsl:template> <xsl:template match="part|reference|preface|chapter|appendix|article" mode="jhtoc"> <xsl:variable name="id"> <xsl:call-template name="object.id"/> </xsl:variable> <xsl:variable name="title"> <xsl:apply-templates select="." mode="title.markup"/> </xsl:variable> <tocitem target="{$id}"> <xsl:attribute name="text"> <xsl:value-of select="$title"/> </xsl:attribute> <xsl:apply-templates select="preface|chapter|appendix|refentry|section|sect1" mode="jhtoc"/> </tocitem> </xsl:template> <xsl:template match="section" mode="jhtoc"> <xsl:variable name="id"> <xsl:call-template name="object.id"/> </xsl:variable> <xsl:variable name="title"> <xsl:apply-templates select="." mode="title.markup"/> </xsl:variable> <tocitem target="{$id}"> <xsl:attribute name="text"> <xsl:value-of select="$title"/> </xsl:attribute> <xsl:apply-templates select="section" mode="jhtoc"/> </tocitem> </xsl:template> <xsl:template match="sect1" mode="jhtoc"> <xsl:variable name="id"> <xsl:call-template name="object.id"/> </xsl:variable> <xsl:variable name="title"> <xsl:apply-templates select="." mode="title.markup"/> </xsl:variable> <tocitem target="{$id}"> <xsl:attribute name="text"> <xsl:value-of select="$title"/> </xsl:attribute> <xsl:apply-templates select="sect2" mode="jhtoc"/> </tocitem> </xsl:template> <xsl:template match="sect2" mode="jhtoc"> <xsl:variable name="id"> <xsl:call-template name="object.id"/> </xsl:variable> <xsl:variable name="title"> <xsl:apply-templates select="." mode="title.markup"/> </xsl:variable> <tocitem target="{$id}"> <xsl:attribute name="text"> <xsl:value-of select="$title"/> </xsl:attribute> <xsl:apply-templates select="sect3" mode="jhtoc"/> </tocitem> </xsl:template> <xsl:template match="sect3" mode="jhtoc"> <xsl:variable name="id"> <xsl:call-template name="object.id"/> </xsl:variable> <xsl:variable name="title"> <xsl:apply-templates select="." mode="title.markup"/> </xsl:variable> <tocitem target="{$id}"> <xsl:attribute name="text"> <xsl:value-of select="$title"/> </xsl:attribute> <xsl:apply-templates select="sect4" mode="jhtoc"/> </tocitem> </xsl:template> <xsl:template match="sect4" mode="jhtoc"> <xsl:variable name="id"> <xsl:call-template name="object.id"/> </xsl:variable> <xsl:variable name="title"> <xsl:apply-templates select="." mode="title.markup"/> </xsl:variable> <tocitem target="{$id}"> <xsl:attribute name="text"> <xsl:value-of select="$title"/> </xsl:attribute> <xsl:apply-templates select="sect5" mode="jhtoc"/> </tocitem> </xsl:template> <xsl:template match="sect5|colophon" mode="jhtoc"> <xsl:variable name="id"> <xsl:call-template name="object.id"/> </xsl:variable> <xsl:variable name="title"> <xsl:apply-templates select="." mode="title.markup"/> </xsl:variable> <tocitem target="{$id}"> <xsl:attribute name="text"> <xsl:value-of select="$title"/> </xsl:attribute> </tocitem> </xsl:template> <!-- ==================================================================== --> <xsl:template name="helpmap"> <xsl:call-template name="write.chunk.with.doctype"> <xsl:with-param name="filename" select="concat($base.dir, 'jhelpmap.jhm')"/> <xsl:with-param name="method" select="'xml'"/> <xsl:with-param name="indent" select="'yes'"/> <xsl:with-param name="doctype-public" select="'-//Sun Microsystems Inc.//DTD JavaHelp Map Version 1.0//EN'"/> <xsl:with-param name="doctype-system" select="'http://java.sun.com/products/javahelp/map_1_0.dtd'"/> <xsl:with-param name="encoding" select="$javahelp.encoding"/> <xsl:with-param name="content"> <xsl:call-template name="helpmap.content"/> </xsl:with-param> </xsl:call-template> </xsl:template> <xsl:template name="helpmap.content"> <map version="1.0"> <xsl:choose> <xsl:when test="$rootid != ''"> <xsl:apply-templates select="key('id',$rootid)//set | key('id',$rootid)//book | key('id',$rootid)//part | key('id',$rootid)//reference | key('id',$rootid)//preface | key('id',$rootid)//chapter | key('id',$rootid)//appendix | key('id',$rootid)//article | key('id',$rootid)//colophon | key('id',$rootid)//refentry | key('id',$rootid)//section | key('id',$rootid)//sect1 | key('id',$rootid)//sect2 | key('id',$rootid)//sect3 | key('id',$rootid)//sect4 | key('id',$rootid)//sect5 | key('id',$rootid)//indexterm" mode="map"/> </xsl:when> <xsl:otherwise> <xsl:apply-templates select="//set | //book | //part | //reference | //preface | //chapter | //appendix | //article | //colophon | //refentry | //section | //sect1 | //sect2 | //sect3 | //sect4 | //sect5 | //indexterm" mode="map"/> </xsl:otherwise> </xsl:choose> </map> </xsl:template> <xsl:template match="set" mode="map"> <xsl:variable name="id"> <xsl:call-template name="object.id"> <xsl:with-param name="object" select="."/> </xsl:call-template> </xsl:variable> <mapID target="{$id}"> <xsl:attribute name="url"> <xsl:call-template name="href.target.uri"/> </xsl:attribute> </mapID> </xsl:template> <xsl:template match="book" mode="map"> <xsl:variable name="id"> <xsl:call-template name="object.id"/> </xsl:variable> <mapID target="{$id}"> <xsl:attribute name="url"> <xsl:call-template name="href.target.uri"/> </xsl:attribute> </mapID> </xsl:template> <xsl:template match="part|reference|preface|chapter|appendix|article" mode="map"> <xsl:variable name="id"> <xsl:call-template name="object.id"/> </xsl:variable> <mapID target="{$id}"> <xsl:attribute name="url"> <xsl:call-template name="href.target.uri"/> </xsl:attribute> </mapID> </xsl:template> <xsl:template match="section|sect1|sect2|sect3|sect4|sect5|colophon" mode="map"> <xsl:variable name="id"> <xsl:call-template name="object.id"/> </xsl:variable> <mapID target="{$id}"> <xsl:attribute name="url"> <xsl:call-template name="href.target.uri"/> </xsl:attribute> </mapID> </xsl:template> <xsl:template match="indexterm" mode="map"> <xsl:variable name="id"> <xsl:call-template name="object.id"/> </xsl:variable> <mapID target="{$id}"> <xsl:attribute name="url"> <xsl:call-template name="href.target.uri"/> </xsl:attribute> </mapID> </xsl:template> <!-- ==================================================================== --> <xsl:template name="helpidx"> <xsl:call-template name="write.chunk.with.doctype"> <xsl:with-param name="filename" select="concat($base.dir, 'jhelpidx.xml')"/> <xsl:with-param name="method" select="'xml'"/> <xsl:with-param name="indent" select="'yes'"/> <xsl:with-param name="doctype-public" select="'-//Sun Microsystems Inc.//DTD JavaHelp Index Version 1.0//EN'"/> <xsl:with-param name="doctype-system" select="'http://java.sun.com/products/javahelp/index_1_0.dtd'"/> <xsl:with-param name="encoding" select="$javahelp.encoding"/> <xsl:with-param name="content"> <xsl:call-template name="helpidx.content"/> </xsl:with-param> </xsl:call-template> </xsl:template> <xsl:template name="helpidx.content"> <index version="1.0"> <xsl:choose> <xsl:when test="$rootid != ''"> <xsl:apply-templates select="key('id',$rootid)//indexterm" mode="idx"/> </xsl:when> <xsl:otherwise> <xsl:apply-templates select="//indexterm" mode="idx"/> </xsl:otherwise> </xsl:choose> </index> </xsl:template> <xsl:template match="indexterm" mode="idx"> <xsl:variable name="id"> <xsl:call-template name="object.id"/> </xsl:variable> <xsl:variable name="text"> <xsl:value-of select="primary"/> <xsl:if test="secondary"> <xsl:text>, </xsl:text> <xsl:value-of select="secondary"/> </xsl:if> <xsl:if test="tertiary"> <xsl:text>, </xsl:text> <xsl:value-of select="tertiary"/> </xsl:if> </xsl:variable> <xsl:choose> <xsl:when test="see"> <xsl:variable name="see"><xsl:value-of select="see"/></xsl:variable> <indexitem text="{$text} see '{$see}'"/> </xsl:when> <xsl:otherwise> <indexitem text="{$text}" target="{$id}"/> </xsl:otherwise> </xsl:choose> </xsl:template> <!-- ==================================================================== --> </xsl:stylesheet> --- NEW FILE: ChangeLog --- 2003-12-21 Jirka Kosek <ko...@us...> * javahelp.xsl: Fixed bug #864018 2002-11-25 Jirka Kosek <ko...@us...> * javahelp.xsl: Fixed mode name collision problem. 2002-06-03 Jirka Kosek <ko...@us...> * Makefile: Added dependencies for profiling stylesheets 2002-05-17 Norman Walsh <nw...@us...> * javahelp.xsl: Put ancillary files in base.dir 2002-03-14 Norman Walsh <nw...@us...> * .cvsignore: New file. * javahelp.xsl: Whitespace only: change CR/LF back to LF. Norm was a total moron. * javahelp.xsl: Whitespace changes only: use PC-style CR/LF because Unix clients choke on this far less often than PC clients choke on the reverse. Grrr. 2002-03-01 Jirka Kosek <ko...@us...> * Makefile: New file. 2001-11-27 Norman Walsh <nw...@us...> * javahelp-common.xsl, javahelp.xsl, xtjavahelp.xsl: Removed obsolete XT support; added support for rootid parameter * javahelp.xsl: Fixed simple select typo 2001-05-20 Jirka Kosek <ko...@us...> * javahelp-common.xsl: Fixed bug #425149, colphons and articles inside book are now handled 2001-04-04 Norman Walsh <nw...@us...> * javahelp-common.xsl, javahelp.xsl, xtjavahelp.xsl: New file. |
From: Frederic D. <de...@us...> - 2004-06-01 11:14:19
|
Update of /cvsroot/fudaa/fudaa_devel/aide/xml/xsl/tools/olink In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20425/xml/xsl/tools/olink Added Files: olinkchunk.xsl olink.xsl olinksum.dtd olink-common.xsl ChangeLog Log Message: xml pour l'aide en docbook --- NEW FILE: olink.xsl --- <?xml version="1.0"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:import href="../html/docbook.xsl"/> <xsl:include href="olink-common.xsl"/> <xsl:output method="xml" indent="yes" doctype-public="-//Norman Walsh//DTD DocBook OLink Summary V1.2//EN" doctype-system="http://docbook.sourceforge.net/???"/> <xsl:param name="base-uri" select="''"/> <xsl:template name="olink.href.target"> <xsl:param name="nd" select="."/> <xsl:value-of select="$base-uri"/> <xsl:call-template name="href.target"> <xsl:with-param name="object" select="$nd"/> </xsl:call-template> </xsl:template> </xsl:stylesheet> --- NEW FILE: olinkchunk.xsl --- <?xml version="1.0"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:import href="http://docbook.sourceforge.net/release/xsl/current/html/chunk.xsl"/> <xsl:include href="olink-common.xsl"/> <xsl:output method="xml" indent="yes" doctype-public="-//Norman Walsh//DTD DocBook OLink Summary V1.2//EN" doctype-system="http://docbook.sourceforge.net/release/xsl/current/tools/olink/olinksum.dtd"/> <xsl:template name="olink.href.target"> <xsl:param name="nd" select="."/> <xsl:call-template name="href.target"> <xsl:with-param name="object" select="$nd"/> </xsl:call-template> </xsl:template> </xsl:stylesheet> --- NEW FILE: olink-common.xsl --- <?xml version="1.0"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:template match="/"> <xsl:apply-templates mode="olink.mode"/> </xsl:template> <xsl:template name="attrs"> <xsl:param name="nd" select="."/> <xsl:attribute name="type"> <xsl:value-of select="local-name(.)"/> </xsl:attribute> <xsl:attribute name="href"> <xsl:call-template name="olink.href.target"> <xsl:with-param name="object" select="$nd"/> </xsl:call-template> </xsl:attribute> <xsl:attribute name="label"> <xsl:apply-templates select="$nd" mode="label.markup"/> </xsl:attribute> <xsl:if test="$nd/@id"> <xsl:attribute name="id"> <xsl:value-of select="$nd/@id"/> </xsl:attribute> </xsl:if> <xsl:if test="$nd/@lang"> <xsl:attribute name="lang"> <xsl:value-of select="$nd/@lang"/> </xsl:attribute> </xsl:if> <xsl:if test="$nd/@arch"> <xsl:attribute name="arch"> <xsl:value-of select="$nd/@arch"/> </xsl:attribute> </xsl:if> <xsl:if test="$nd/@conformance"> <xsl:attribute name="conformance"> <xsl:value-of select="$nd/@conformance"/> </xsl:attribute> </xsl:if> <xsl:if test="$nd/@os"> <xsl:attribute name="os"> <xsl:value-of select="$nd/@os"/> </xsl:attribute> </xsl:if> <xsl:if test="$nd/@revision"> <xsl:attribute name="revision"> <xsl:value-of select="$nd/@revision"/> </xsl:attribute> </xsl:if> <xsl:if test="$nd/@userlevel"> <xsl:attribute name="userlevel"> <xsl:value-of select="$nd/@userlevel"/> </xsl:attribute> </xsl:if> <xsl:if test="$nd/@vendor"> <xsl:attribute name="vendor"> <xsl:value-of select="$nd/@vendor"/> </xsl:attribute> </xsl:if> <xsl:if test="$nd/@condition"> <xsl:attribute name="condition"> <xsl:value-of select="$nd/@condition"/> </xsl:attribute> </xsl:if> <xsl:if test="$nd/@security"> <xsl:attribute name="security"> <xsl:value-of select="$nd/@security"/> </xsl:attribute> </xsl:if> </xsl:template> <xsl:template name="div"> <xsl:param name="nd" select="."/> <div> <xsl:call-template name="attrs"> <xsl:with-param name="nd" select="$nd"/> </xsl:call-template> <ttl> <xsl:apply-templates select="$nd" mode="title.markup"/> </ttl> <objttl> <xsl:apply-templates select="$nd" mode="object.title.markup"/> </objttl> <xref> <xsl:choose> <xsl:when test="$nd/@xreflabel"> <xsl:call-template name="xref.xreflabel"> <xsl:with-param name="target" select="$nd"/> </xsl:call-template> </xsl:when> <xsl:otherwise> <xsl:apply-templates select="$nd" mode="xref-to"/> </xsl:otherwise> </xsl:choose> </xref> <xsl:apply-templates mode="olink.mode"/> </div> </xsl:template> <xsl:template name="obj"> <xsl:param name="nd" select="."/> <obj> <xsl:call-template name="attrs"> <xsl:with-param name="nd" select="$nd"/> </xsl:call-template> <ttl> <xsl:apply-templates select="$nd" mode="title.markup"/> </ttl> <objttl> <xsl:apply-templates select="$nd" mode="object.title.markup"/> </objttl> <xref> <xsl:choose> <xsl:when test="$nd/@xreflabel"> <xsl:call-template name="xref.xreflabel"> <xsl:with-param name="target" select="$nd"/> </xsl:call-template> </xsl:when> <xsl:otherwise> <xsl:apply-templates select="$nd" mode="xref-to"/> </xsl:otherwise> </xsl:choose> </xref> </obj> </xsl:template> <xsl:template match="text()|processing-instruction()|comment()" mode="olink.mode"> <!-- nop --> </xsl:template> <xsl:template match="*" mode="olink.mode"> <!-- nop --> </xsl:template> <xsl:template match="set" mode="olink.mode"> <xsl:call-template name="div"/> </xsl:template> <xsl:template match="book" mode="olink.mode"> <xsl:call-template name="div"/> </xsl:template> <xsl:template match="preface|chapter|appendix" mode="olink.mode"> <xsl:call-template name="div"/> </xsl:template> <xsl:template match="part|reference" mode="olink.mode"> <xsl:call-template name="div"/> </xsl:template> <xsl:template match="article" mode="olink.mode"> <xsl:call-template name="div"/> </xsl:template> <xsl:template match="refentry" mode="olink.mode"> <xsl:call-template name="div"/> </xsl:template> <xsl:template match="section|sect1|sect2|sect3|sect4|sect5" mode="olink.mode"> <xsl:call-template name="div"/> </xsl:template> <xsl:template match="refsection|refsect1|refsect2|refsect3" mode="olink.mode"> <xsl:call-template name="div"/> </xsl:template> <xsl:template match="figure|example|table" mode="olink.mode"> <xsl:call-template name="obj"/> </xsl:template> <xsl:template match="equation[title]" mode="olink.mode"> <xsl:call-template name="div"/> </xsl:template> </xsl:stylesheet> --- NEW FILE: olinksum.dtd --- <!-- $Id: olinksum.dtd,v 1.2 2001/08/11 16:59:00 bobstayton Exp $ DTD for OLINK Summary Information Common declaration: <!DOCTYPE div PUBLIC "-//Norman Walsh//DTD DocBook OLink Summary V1.2//EN"> --> <!ENTITY % commonatts " type CDATA #IMPLIED name CDATA #IMPLIED href CDATA #IMPLIED id ID #IMPLIED label CDATA #IMPLIED lang CDATA #IMPLIED arch CDATA #IMPLIED conformance CDATA #IMPLIED os CDATA #IMPLIED revision CDATA #IMPLIED userlevel CDATA #IMPLIED vendor CDATA #IMPLIED"> <!ELEMENT div (ttl, objttl, xref, obj*, div*)> <!ATTLIST div %commonatts;> <!ELEMENT obj (ttl, objttl, xref)> <!ATTLIST obj %commonatts;> <!ENTITY % inlines "tt|i|sub|sup|span"> <!ELEMENT ttl (#PCDATA|%inlines;)*> <!ELEMENT objttl (#PCDATA|%inlines;)*> <!ELEMENT xref (#PCDATA|%inlines;)*> <!ELEMENT tt (#PCDATA|%inlines;)*> <!-- typewriter (courier) --> <!ATTLIST tt class CDATA #IMPLIED > <!ELEMENT i (#PCDATA|%inlines;)*> <!-- italics --> <!ATTLIST i class CDATA #IMPLIED > <!ELEMENT sub (#PCDATA|%inlines;)*> <!-- subscript --> <!ATTLIST sub class CDATA #IMPLIED > <!ELEMENT sup (#PCDATA|%inlines;)*> <!-- superscript --> <!ATTLIST sup class CDATA #IMPLIED > <!ELEMENT span (#PCDATA|%inlines;)*> <!-- span --> <!ATTLIST span class CDATA #IMPLIED > --- NEW FILE: ChangeLog --- 2001-08-11 Robert Stayton <bob...@us...> * olink-common.xsl: Fixed the attributes that were all being saved to the same id attribute. Also added lang as a supported attribute. * olinksum.dtd: Added lang as a supported attribute. 2001-08-01 Norman Walsh <nw...@us...> * olink-common.xsl, olink.xsl, olinkchunk.xsl, olinksum.dtd: New file. |
From: Frederic D. <de...@us...> - 2004-06-01 11:14:19
|
Update of /cvsroot/fudaa/fudaa_devel/aide/xml/xsl/htmlhelp In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20425/xml/xsl/htmlhelp Added Files: profile-htmlhelp.xsl htmlhelp-common.xsl profile-htmlhelp-common.xsl ChangeLog htmlhelp.xsl Log Message: xml pour l'aide en docbook --- NEW FILE: htmlhelp-common.xsl --- <?xml version="1.0"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:doc="http://nwalsh.com/xsl/documentation/1.0" xmlns:exsl="http://exslt.org/common" xmlns:set="http://exslt.org/sets" xmlns:h="urn:x-hex" version="1.0" exclude-result-prefixes="doc exsl set h"> <!-- ******************************************************************** $Id: htmlhelp-common.xsl,v 1.1 2004/06/01 11:14:00 deniger Exp $ ******************************************************************** --> <!-- ==================================================================== --> <!-- Customizations of standard HTML stylesheet parameters --> <xsl:param name="suppress.navigation" select="1"/> <!-- ==================================================================== --> [...1163 lines suppressed...] <xsl:value-of select="$angle.escaped"/> </xsl:template> <!-- ==================================================================== --> <!-- Modification to standard HTML stylesheets --> <!-- There are links from ToC pane to bibliodivs, so there must be anchor --> <xsl:template match="bibliodiv/title"> <h3 class="{name(.)}"> <xsl:call-template name="anchor"> <xsl:with-param name="node" select=".."/> <xsl:with-param name="conditional" select="0"/> </xsl:call-template> <xsl:apply-templates/> </h3> </xsl:template> </xsl:stylesheet> --- NEW FILE: ChangeLog --- 2004-02-19 Jirka Kosek <ko...@us...> * htmlhelp-common.xsl: Added anchors to bibliodivs 2003-12-10 Jirka Kosek <ko...@us...> * htmlhelp-common.xsl: Fixed parameter name collision 2003-11-29 Jirka Kosek <ko...@us...> * htmlhelp-common.xsl: Added new HTML Help parameters from patches by W. Borgert 2003-10-27 Jirka Kosek <ko...@us...> * htmlhelp-common.xsl: Handle setindex in a proper way 2003-09-23 Jirka Kosek <ko...@us...> * htmlhelp-common.xsl: Added new parameter manifest.in.base.dir which can be used to place manifest file and also project files for HTML Help and Eclipse Help into base.dir. This improvement also fixes bug (feature) #662955. 2003-08-12 Jirka Kosek <ko...@us...> * htmlhelp-common.xsl: It seems that HH can handle fragments identifiers in context help, so I changed stylesheets back to emit filename with fragment identifier. 2003-07-22 Jirka Kosek <ko...@us...> * htmlhelp-common.xsl: Moving template to place where it can be reused 2003-05-25 Jirka Kosek <ko...@us...> * htmlhelp-common.xsl, langcodes.xml: HTML Help language codes were moved to localization files. 2003-01-31 Jirka Kosek <ko...@us...> * htmlhelp-common.xsl: Xalan workaround for HHK files. 2002-10-15 Jirka Kosek <ko...@us...> * htmlhelp-common.xsl: HTML sensitive characters are manually escaped in attribute values (we must do it, as we don't use HTML/XML output method). 2002-10-14 Jirka Kosek <ko...@us...> * htmlhelp-common.xsl: Options->Home command works also when base.dir parameter is used and home button is disabled 2002-08-22 Jirka Kosek <ko...@us...> * htmlhelp-common.xsl: Index can be alternatively created using HHK file from now. This allows see-also processing and index terms also points to their exact location. 2002-06-13 Jirka Kosek <ko...@us...> * .cvsignore: Reflect changes in HTML Help stylesheet organization. * htmlhelp-common.xsl: Added parameter for disabling HTML output when testing various HTML Help features. * htmlhelp-common.xsl: New features. A lot of new features. For HTML Help. * htmlhelp-common.xsl: Turn on more verbose messages during compilation to CHM 2002-06-12 Jirka Kosek <ko...@us...> * Makefile, htmlhelp-common.xsl, htmlhelp.xsl, profile-htmlhelp.xsl: Rearranged code so HTML Help can be easily combined with custom chunking schemes. This is needed for TDG processing. 2002-06-09 Jirka Kosek <ko...@us...> * htmlhelp.xsl: Fixed bug #438793. HTML Help stylesheet works also in Xalan from now. 2002-06-03 Jirka Kosek <ko...@us...> * Makefile: Added dependencies for profiling stylesheets 2002-05-10 Jirka Kosek <ko...@us...> * htmlhelp.xsl: Updated to use shared manifest code. 2002-04-11 Jirka Kosek <ko...@us...> * htmlhelp.xsl: Updated to support new generate.toc parameter. 2002-03-14 Norman Walsh <nw...@us...> * .cvsignore: New file. * htmlhelp.xsl: Whitespace changes only: use PC-style CR/LF because Unix clients choke on this far less often than PC clients choke on the reverse. Grrr. * htmlhelp.xsl, langcodes.xml: Whitespace only: change CR/LF back to LF. Norm was a total moron. 2002-03-01 Jirka Kosek <ko...@us...> * Makefile: New file. 2002-02-16 Jirka Kosek <ko...@us...> * htmlhelp.xsl: Added missing support for refentries inside sections and for glossaries. * htmlhelp.xsl: Fixed bug #514883. Added missing colophon. 2002-02-10 Jirka Kosek <ko...@us...> * htmlhelp.xsl: Added parameter htmlhelp.default.topic for overriding default topic to display. * htmlhelp.xsl: Entry with link to page with Table of Contents is put into HTML Help ToC when htmlhelp.hhc.show.root=0 and generate.{set|book}.toc=1 2002-02-09 Jirka Kosek <ko...@us...> * htmlhelp.xsl: Added parameter which controls appearance of root element in HTML Help ToC. 2002-02-07 Jirka Kosek <ko...@us...> * htmlhelp.xsl: Duplicate image filenames from [FILES] section are now automatically removed in EXSLT friendly processors. 2002-02-05 Jirka Kosek <ko...@us...> * htmlhelp.xsl: Removed fragment identifiers from hrefs in alias.h file. 2002-02-03 Jirka Kosek <ko...@us...> * htmlhelp.xsl: Added parameter htmlhelp.title for manual control over HTML Help title. Improved code for automatic extraction of title from document. 2002-01-24 Jirka Kosek <ko...@us...> * htmlhelp.xsl: Fixed bug in alias.h when base.dir parameter was used. 2002-01-22 Jirka Kosek <ko...@us...> * htmlhelp.xsl: Feature request #507087. Added parameter for controling appearance of icons in HTML Help ToC. 2001-12-06 Jirka Kosek <ko...@us...> * htmlhelp.xsl: Template write.text.chunk moved to common place. 2001-12-04 Jirka Kosek <ko...@us...> * htmlhelp.xsl: Make compatible with last changes in chunking code. 2001-11-28 Jirka Kosek <ko...@us...> * htmlhelp.xsl: Use common pi-attribute template * htmlhelp.xsl: Added parameter htmlhelp.hhc.section.depth for controlling depth of sections in a TOC in a left pane of HTML Help viewer. * htmlhelp.xsl: Added support for automatic generation of map and context files for HTML Help. Topic names and IDs are marked by special PI <?dbhh topicname="..." topicid="..."?>. 2001-11-27 Norman Walsh <nw...@us...> * htmlhelp-common.xsl, htmlhelp.xsl: Removed obsolete XT support; added support for rootid parameter * htmlhelp.xsl: Fixed simple select typo 2001-11-27 Jirka Kosek <ko...@us...> * htmlhelp.xsl: Added $rootid support also for title of HTML Help window 2001-11-27 Norman Walsh <nw...@us...> * xthtmlhelp.xsl: Removed obsolete XT support; added support for rootid parameter 2001-11-05 Jirka Kosek <ko...@us...> * htmlhelp-common.xsl: Parameters moved to params subdirectory. 2001-11-04 Jirka Kosek <ko...@us...> * htmlhelp-common.xsl: Added parameter htmlhelp.enumerate.images which controls inclusion of image filenames list in project file. This is necessary when images are inserted as external binary entities. 2001-08-23 Jirka Kosek <ko...@us...> * htmlhelp-common.xsl: Synchronized puncation generation in ToC with rest of stylesheets. 2001-08-21 Jirka Kosek <ko...@us...> * htmlhelp-common.xsl: Fixed presentation of secondary indexterms in index pane 2001-08-13 Jirka Kosek <ko...@us...> * htmlhelp-common.xsl: Fixed problems with new lines in titles for TOC 2001-08-08 Jirka Kosek <ko...@us...> * htmlhelp-common.xsl: Added new parameters for controling filenames of project and output files. New parameter htmlhelp.hhp.tail for specifying user content for project file. 2001-07-23 Jirka Kosek <ko...@us...> * htmlhelp-common.xsl: Fixed bug #442162 - bibliography element is included in ToC in the left pane, index is not generated because it has own dialog also in the left pane of HTML Help viewer 2001-06-25 Jirka Kosek <ko...@us...> * htmlhelp-common.xsl: Added htmlhelp.autolabel parameter to control inclusion of component and section labels into tree-like ToC. 2001-05-05 Jirka Kosek <ko...@us...> * htmlhelp-common.xsl: Colophon is now included in toc.hhc 2001-04-21 Jirka Kosek <ko...@us...> * README: Removed obsolete file 2001-04-04 Norman Walsh <nw...@us...> * README, htmlhelp-common.xsl, htmlhelp.xsl, langcodes.xml, xthtmlhelp.xsl: New file. --- NEW FILE: profile-htmlhelp-common.xsl --- <?xml version="1.0" encoding="US-ASCII"?> <!--This file was created automatically by xsl2profile--> <!--from the DocBook XSL stylesheets. Do not edit this file.--> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:doc="http://nwalsh.com/xsl/documentation/1.0" xmlns:exsl="http://exslt.org/common" xmlns:set="http://exslt.org/sets" xmlns:h="urn:x-hex" xmlns:exslt="http://exslt.org/common" exslt:dummy="dummy" extension-element-prefixes="exslt" version="1.0" exclude-result-prefixes="doc exsl set h exslt"> <!-- ******************************************************************** $Id: profile-htmlhelp-common.xsl,v 1.1 2004/06/01 11:14:00 deniger Exp $ ******************************************************************** --> <!-- ==================================================================== --> <!-- Customizations of standard HTML stylesheet parameters --> <xsl:param name="suppress.navigation" select="1"/> <!-- ==================================================================== --> <xsl:variable name="htmlhelp.generate.index" select="//indexterm[1]"/> <!-- ==================================================================== --> [...1132 lines suppressed...] <xsl:value-of select="$angle.escaped"/> </xsl:template> <!-- ==================================================================== --> <!-- Modification to standard HTML stylesheets --> <!-- There are links from ToC pane to bibliodivs, so there must be anchor --> <xsl:template match="bibliodiv/title"> <h3 class="{name(.)}"> <xsl:call-template name="anchor"> <xsl:with-param name="node" select=".."/> <xsl:with-param name="conditional" select="0"/> </xsl:call-template> <xsl:apply-templates/> </h3> </xsl:template> </xsl:stylesheet> --- NEW FILE: profile-htmlhelp.xsl --- <?xml version="1.0"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:doc="http://nwalsh.com/xsl/documentation/1.0" xmlns:exsl="http://exslt.org/common" xmlns:set="http://exslt.org/sets" version="1.0" exclude-result-prefixes="doc exsl set"> <!-- ******************************************************************** $Id: profile-htmlhelp.xsl,v 1.1 2004/06/01 11:14:00 deniger Exp $ ******************************************************************** This file is used by htmlhelp.xsl if you want to generate source files for HTML Help. It is based on the XSL DocBook Stylesheet distribution (especially on JavaHelp code) from Norman Walsh. ******************************************************************** --> <xsl:import href="../html/chunk.xsl"/> <xsl:include href="profile-htmlhelp-common.xsl"/> </xsl:stylesheet> --- NEW FILE: htmlhelp.xsl --- <?xml version="1.0"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:doc="http://nwalsh.com/xsl/documentation/1.0" xmlns:exsl="http://exslt.org/common" xmlns:set="http://exslt.org/sets" version="1.0" exclude-result-prefixes="doc exsl set"> <!-- ******************************************************************** $Id: htmlhelp.xsl,v 1.1 2004/06/01 11:14:00 deniger Exp $ ******************************************************************** This file is used by htmlhelp.xsl if you want to generate source files for HTML Help. It is based on the XSL DocBook Stylesheet distribution (especially on JavaHelp code) from Norman Walsh. ******************************************************************** --> <xsl:import href="../html/chunk.xsl"/> <xsl:include href="htmlhelp-common.xsl"/> </xsl:stylesheet> |
From: Frederic D. <de...@us...> - 2004-06-01 11:14:19
|
Update of /cvsroot/fudaa/fudaa_devel/aide/xml/xsl/doc/tools In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20425/xml/xsl/doc/tools Added Files: profiling.html ChangeLog profile-chain.png Log Message: xml pour l'aide en docbook --- NEW FILE: profiling.html --- <html><head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>Profiling DocBook documents</title><meta name="generator" content="DocBook XSL Stylesheets V1.64.1"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="article" lang="en"><div class="titlepage"><div><div><h1 class="title"><a name="d0e1"></a>Profiling DocBook documents</h1></div><div><h3 class="subtitle"><i>An easy way to personalize your content for several target audiences</i></h3></div><div><div class="author"><h3 class="author"><span class="firstname">Jirka</span> <span class="surname">Kosek</span></h3><div class="affiliation"><div class="address"><p>E-mail: <tt class="email"><<a href="mailto:ji...@ko...">ji...@ko...</a>></tt><br> <span class="otheraddr">Web: <a href="http://www.kosek.cz" target="_top">http://www.kosek.cz</a><br> </span><br> </p></div></div></div></div><div><p class="releaseinfo"> $Id: profiling.html,v 1.1 2004/06/01 11:14:00 deniger Exp $ </p></div><div><p class="copyright">Copyright © 2001 Jiří Kosek</p></div></div><div></div><hr></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><span class="section"><a href="#d0e37">Introduction</a></span></dt><dt><span class="section"><a href="#d0e44">$0 solution</a></span></dt><dt><span class="section"><a href="#d0e85">Usage</a></span></dt><dt><span class="section"><a href="#d0e251">Single pass profiling</a></span></dt><dt><span class="section"><a href="#d0e277">Conclusion</a></span></dt></dl></div><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="d0e37"></a>Introduction</h2></div></div><div></div></div><p>There are many situations when we need to generate several versions of document with slightly different content from the single source. User guide for program with both Windows and Linux port will differ only in several topics related to installation and configuration. It would be futile to create and maintain two different documents in sync. Another real world example – in addition to standard documentation we can have guide enriched with problem solutions from help-desk. It also may be better to store these information in one document in order to make them absolutely synchronized.</p><p>Several high-end editing tools have built in support for profiling. User can easily add target audiences for any part of document in a simple to use dialog box. User can select desired target audience before printing or generation of other output formats. Software will automatically filter out excess parts of document and pass rest of it to rendering engine. However, if your budget is limited you can not use commercial solutions. In the following text I will show you simple but flexible profiling solution based on freely available technologies.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="d0e44"></a>$0 solution</h2></div></div><div></div></div><p>In the document we mark parts targeted for particular platform or user group. When generating final output version of document we must do profiling i.e. personalization for particular target audience. Only some parts of document are processed. DocBook has built in support for marking document parts – on almost every element you can use attributes like <tt class="sgmltag-attribute">os</tt>, <tt class="sgmltag-attribute">userlevel</tt> and <tt class="sgmltag-attribute">arch</tt>. We can store identifier of operating system, user group or hardware architecture here. You can also store profiling information into some general use attribute like <tt class="sgmltag-attribute">role</tt>. <a href="#ex.doc" title="Example 1. Sample DocBook document with profiling information">Example 1, “Sample DocBook document with profiling information”</a> shows how document with profiling information might look like.</p><div class="example"><a name="ex.doc"></a><p class="title"><b>Example 1. Sample DocBook document with profiling information</b></p><pre class="programlisting"><?xml version='1.0' encoding='iso-8859-1'?> <!DOCTYPE chapter PUBLIC '-//OASIS//DTD DocBook XML V4.1.2//EN' 'http://www.oasis-open.org/docbook/xml/4.0/docbookx.dtd'> <chapter> <title>How to setup SGML catalogs</title> <para>Many existing SGML tools are able to map public identifiers to files on your local file system. Mapping is specified in so called catalog file. List of catalog files to use is stored in environment variable <envar>SGML_CATALOG_FILES</envar>.</para> <para os="unix">On Unix systems you can set this variable by invoking command <command>export SGML_CATALOG_FILES=/usr/lib/catalog</command> on command line. If you want maintain value of the variable between sessions, place this command into startup file, e.g. <filename>.profile</filename>.</para> <para os="win">In Windows NT/2000 you can set environment variable by issuing command <menuchoice><guimenu>Start</guimenu> <guisubmenu>Settings</guisubmenu> <guisubmenu>Control Pannel</guisubmenu> <guimenuitem>System</guimenuitem></menuchoice>. Then select <guilabel>Advanced</guilabel> card in the dialog box and click on the <guibutton>Environment Variables...</guibutton> button. Using the <guibutton>New</guibutton> button you can add new environment variable into your system.</para> </chapter></pre></div><p>DocBook documents are often processed by freely available DSSSL and XSL stylesheets. Most DocBook users who want profiling starts with creation of customization layer which filters out some parts of document. This approach has several serious disadvantages. First, you must create profiling customization for all output formats as they are using different stylesheets. This mean that you must maintain same code on several places or do some dirty tricks with importing several stylesheets into one stylesheet.</p><p>Second drawback is more serious. If you override templates to filter out documents, you can get almost correct output in a single run of stylesheet. If you will closely look on generated output, you will recognize that in the table of contents there are entries for items which should be completely removed by profiling. Similar problems are in several other places – e.g. skipped auto generated numbers for tables, pictures and so on. To correct this one should change all stylesheet code which generates ToC, cross-references and so on to ignore filtered content. This is very complicated task and will disallow you to easily upgrade to new versions of stylesheets.</p><p>Thus we must use different approach. Profiling should be totally separate step which will filter out some parts of original document and will create new correct DocBook document. When processed with any DocBook tool or stylesheet you will get always correct output from the new standalone document now. Big advantage of this method is compatibility with all DocBook tools. Filtered document is normal DocBook document and it does not require any special processing. Of course, there is also one disadvantage – formating is now two stage process – first you must filter source document and in second step you could apply normal stylesheets on result of filtering. This may be little bit inconvenient for many users, but whole task can be very easily automated by set of shell scripts or batch files or whatever else. Starting from version 1.50 of XSL stylesheets you can do profiling in one step together with normal stylesheet processing.</p><div class="figure"><a name="d0e74"></a><p class="title"><b>Figure 1. Profiling stream</b></p><div class="mediaobject"><img src="profile-chain.png" alt="Profiling stream"></div></div><p>When implementing filter, you can use many different approaches and tools. I decided to use XSLT stylesheet. Writing necessary filter is very easy in XSLT and many users have XSLT processor already installed. Profiling stylesheet is part of standard XSL stylesheets distribution and can be found in file <tt class="filename">profiling/profile.xsl</tt>.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="d0e85"></a>Usage</h2></div></div><div></div></div><p>If you want to generate Unix specific guide from our sample document (<a href="#ex.doc" title="Example 1. Sample DocBook document with profiling information">Example 1, “Sample DocBook document with profiling information”</a>) you can do it in the following way. (We assume, that command <span><b class="command">saxon</b></span> is able to run XSLT processor on your machine. You can use your preffered XSLT processor instead.)</p><pre class="screen"><span><b class="command">saxon</b></span> <tt class="option">-o</tt> unixsample.xml sample.xml profile.xsl "os=unix"</pre><p>We are processing source document <tt class="filename">sample.xml</tt> with profiling stylesheet <tt class="filename">profile.xsl</tt>. Result of transformation is stored in file <tt class="filename">unixsample.xml</tt>. By setting parameter <i class="parameter"><tt>os</tt></i> to value <tt class="literal">unix</tt>, we tell that only general and Unix specific parts of document should be copied to the result document. If you will look at generated result, you will notice that this is correct DocBook document:</p><pre class="programlisting"><?xml version="1.0" encoding="utf-8"?> <!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" "http://www.oasis-open.org/docbook/xml/4.0/docbookx.dtd"> <chapter> <title>How to setup SGML catalogs</title> <para>Many existing SGML tools are able to map public identifiers to files on your local file system. Mapping is specified in so called catalog file. List of catalog files to use is stored in environment variable <envar>SGML_CATALOG_FILES</envar>.</para> <para os="unix">On Unix systems you can set this variable by invoking command <command moreinfo="none">export SGML_CATALOG_FILES=/usr/lib/catalog</command> on command line. If you want maintain value of the variable between sessions, place this command into startup file, e.g. <filename moreinfo="none">.profile</filename>.</para> </chapter></pre><p>It is same as the input document, only Windows specific paragraph is missing. Same procedure can be used to get Windows specific version of document. The result generated by profiling stylesheet have correct document type declaration (DOCTYPE). Without it some tools would not be able to process them further. On the result of filtering you can run common tools – for example DSSSL or XSL stylesheets.</p><p>Stylesheet support several attributes for specifying profiling values. They are summarized in the following list.</p><div class="variablelist"><dl><dt><span class="term"><i class="parameter"><tt>profile.os</tt></i></span></dt><dd><p>This parameter is used for specifying operating system (<tt class="sgmltag-attribute">os</tt> attribute) for which you want get profiled version of document.</p></dd><dt><span class="term"><i class="parameter"><tt>profile.userlevel</tt></i></span></dt><dd><p>This parameter is used for specifying user level (<tt class="sgmltag-attribute">userlevel</tt> attribute) for which you want get profiled version of document.</p></dd><dt><span class="term"><i class="parameter"><tt>profile.arch</tt></i></span></dt><dd><p>This parameter is used for specifying hardware architecture (<tt class="sgmltag-attribute">arch</tt> attribute) for which you want get profiled version of document.</p></dd><dt><span class="term"><i class="parameter"><tt>profile.condition</tt></i>, </span><span class="term"><i class="parameter"><tt>profile.conformance</tt></i>, </span><span class="term"><i class="parameter"><tt>profile.revision</tt></i>, </span><span class="term"><i class="parameter"><tt>profile.revisionflag</tt></i>, </span><span class="term"><i class="parameter"><tt>profile.security</tt></i>, </span><span class="term"><i class="parameter"><tt>profile.vendor</tt></i>, </span><span class="term"><i class="parameter"><tt>profile.role</tt></i>, </span><span class="term"><i class="parameter"><tt>profile.lang</tt></i></span></dt><dd><p>These parameters can be used to specify target profile for corresponding attributes.</p></dd><dt><span class="term"><i class="parameter"><tt>profile.attribute</tt></i></span></dt><dd><p>Name of attribute on which profiling should be based. It can be used if profiling information is stored in other attributes then <tt class="sgmltag-attribute">os</tt>, <tt class="sgmltag-attribute">userlevel</tt> and <tt class="sgmltag-attribute">arch</tt>.</p></dd><dt><span class="term"><i class="parameter"><tt>profile.value</tt></i></span></dt><dd><p>This parameter is used for specifying value for attribute selected by <i class="parameter"><tt>attr</tt></i> parameter.</p><p>E.g. setting <tt class="literal">profile.attribute=os</tt> and <tt class="literal">profile.value=unix</tt> is same as setting <tt class="literal">os=unix</tt>.</p></dd><dt><span class="term"><i class="parameter"><tt>profile.separator</tt></i></span></dt><dd><p>Separator for multiple target audience identifiers. Default is <tt class="literal">;</tt>.</p></dd></dl></div><p>Current implementation is able to handle multiple profiling targets in one attribute. In that case you must separate identifiers by semicolon:</p><pre class="programlisting"><para os="unix;mac;win">...</para></pre><p>It is possible to use different separator than semicolon by setting <i class="parameter"><tt>sep</tt></i> parameter. There cann't be spaces between separator and target names.</p><p>You can also perform profiling based on several profiling attributes in a single step as stylesheet can handle all parameters simultaneously. For example to get hypothetical guide for Windows beginners, you can run profiling like this:</p><pre class="screen"><span><b class="command">saxon</b></span> <tt class="option">-o</tt> xsample.xml sample.xml profile.xsl "profile.os=win" "profile.userlevel=beginner"</pre><p>As you can see above described profiling process can be used to substitute SGML marked sections mechanism which is missing in XML.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="d0e251"></a>Single pass profiling</h2></div></div><div></div></div><p>If you are using XSL stylesheets version 1.50 and later with EXSLT enabled XSLT processor (Saxon, xsltproc, Xalan) you can do profiling and transformation to HTML or FO in a single step. To do this use stylesheet with prefix <tt class="filename">profile-</tt> instead of normal one (e.g. <tt class="filename">profile-docbook.xsl</tt>, <tt class="filename">profile-chunk.xsl</tt> or <tt class="filename">profile-htmlhelp.xsl</tt>). For example to get HTML version of profiled document use:</p><pre class="screen"><span><b class="command">saxon</b></span> <tt class="option">-o</tt> sample.html sample.xml .../html/profile-docbook.xsl "profile.os=win" "profile.userlevel=beginner"</pre><p>No additional processing is necessary. If you want to use profiling with your customized stylesheets import profiling-able stylesheet instead of normal one.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="d0e277"></a>Conclusion</h2></div></div><div></div></div><p>Profiling is necessary in many larger DocBook applications. It can be quite easily implemented by simple XSLT stylesheet which is presented here. This mechanism can also be used to simulate behavior of marked sections known from SGML.</p></div></div></body></html> --- NEW FILE: profile-chain.png --- (This appears to be a binary file; contents omitted.) --- NEW FILE: ChangeLog --- 2002-03-09 Jirka Kosek <ko...@us...> * Makefile: Removed hardcoded reference for XSLT processor as it is already set in Makefile.incl. Fixed typo in DocBook DTD URI. 2001-08-09 Norman Walsh <nw...@us...> * Makefile: Use saxon and docbook.xsl 2001-07-31 Jirka Kosek <ko...@us...> * .cvsignore, Makefile: New file. |
From: Frederic D. <de...@us...> - 2004-06-01 11:14:19
|
Update of /cvsroot/fudaa/fudaa_devel/aide/xml/xsl/docsrc/fo In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20425/xml/xsl/docsrc/fo Added Files: ChangeLog table.xml param.xml Log Message: xml pour l'aide en docbook --- NEW FILE: table.xml --- <?xml version="1.0" encoding="utf-8" standalone="no"?> <!DOCTYPE reference PUBLIC "-//Norman Walsh//DTD JRefEntry V1.1//EN" "http://docbook.sourceforge.net/release/jrefentry/1.1/jrefentry.dtd"> <reference> <referenceinfo> <releaseinfo role="meta"> $Id: table.xml,v 1.1 2004/06/01 11:14:01 deniger Exp $ </releaseinfo> <author><surname>Walsh</surname> <firstname>Norman</firstname></author> <copyright><year>1999</year><year>2000</year> <holder>Norman Walsh</holder> </copyright> </referenceinfo> <title>Formatting Object Table Reference</title> <partintro> <section><title>Introduction</title> <para>This is technical reference documentation for the DocBook XSL Stylesheets; it documents (some of) the parameters, templates, and other elements of the stylesheets.</para> <para>This is not intended to be <quote>user</quote> documentation. It is provided for developers writing customization layers for the stylesheets, and for anyone who's interested in <quote>how it works</quote>.</para> <para>Although I am trying to be thorough, this documentation is known to be incomplete. Don't forget to read the source, too :-)</para> </section> </partintro> <refentry id="template.calc.column.width"> <refnamediv> <refname>calc.column.width</refname> <refpurpose>Calculate an XSL FO table column width specification from a CALS table column width specification.</refpurpose> </refnamediv> <refsynopsisdiv> <synopsis><xsl:template name="calc.column.width"> <xsl:param name="colwidth">1*</xsl:param> ... </xsl:template></synopsis> </refsynopsisdiv> <refdescription> <para>CALS expresses table column widths in the following basic forms:</para> <itemizedlist> <listitem> <para><emphasis>99.99units</emphasis>, a fixed length specifier.</para> </listitem> <listitem> <para><emphasis>99.99</emphasis>, a fixed length specifier without any units.</para> </listitem> <listitem> <para><emphasis>99.99*</emphasis>, a relative length specifier.</para> </listitem> <listitem> <para><emphasis>99.99*+99.99units</emphasis>, a combination of both.</para> </listitem> </itemizedlist> <para>The CALS units are points (pt), picas (pi), centimeters (cm), millimeters (mm), and inches (in). These are the same units as XSL, except that XSL abbreviates picas "pc" instead of "pi". If a length specifier has no units, the CALS default unit (pt) is assumed.</para> <para>Relative length specifiers are represented in XSL with the proportional-column-width() function.</para> <para>Here are some examples:</para> <itemizedlist> <listitem> <para>"36pt" becomes "36pt"</para> </listitem> <listitem> <para>"3pi" becomes "3pc"</para> </listitem> <listitem> <para>"36" becomes "36pt"</para> </listitem> <listitem> <para>"3*" becomes "proportional-column-width(3)"</para> </listitem> <listitem> <para>"3*+2pi" becomes "proportional-column-width(3)+2pc"</para> </listitem> <listitem> <para>"1*+2" becomes "proportional-column-width(1)+2pt"</para> </listitem> </itemizedlist> </refdescription><refparameter> <variablelist> <varlistentry><term>colwidth</term> <listitem> <para>The CALS column width specification.</para> </listitem> </varlistentry> </variablelist> </refparameter><refreturn> <para>The XSL column width specification.</para> </refreturn></refentry> </reference> --- NEW FILE: param.xml --- <?xml version="1.0" encoding="utf-8"?> <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"> <book> <bookinfo> <title>FO Parameter Reference</title> <releaseinfo role="meta"> $Id: param.xml,v 1.1 2004/06/01 11:14:01 deniger Exp $ </releaseinfo> <author> <surname>Walsh</surname> <firstname>Norman</firstname> </author> <copyright> <year>1999</year> <year>2000</year> <year>2001</year> <holder>Norman Walsh</holder> </copyright> [...7525 lines suppressed...] <src:fragref linkend="use.role.as.xrefstyle.frag"></src:fragref> <src:fragref linkend="use.role.for.mediaobject.frag"></src:fragref> <src:fragref linkend="use.svg.frag"></src:fragref> <src:fragref linkend="variablelist.as.blocks.frag"></src:fragref> <src:fragref linkend="variablelist.max.termlength.frag"></src:fragref> <src:fragref linkend="verbatim.properties.frag"></src:fragref> <src:fragref linkend="xep.extensions.frag"></src:fragref> <src:fragref linkend="xep.index.item.properties.frag"></src:fragref> <src:fragref linkend="xref.label-page.separator.frag"></src:fragref> <src:fragref linkend="xref.label-title.separator.frag"></src:fragref> <src:fragref linkend="xref.properties.frag"></src:fragref> <src:fragref linkend="xref.title-page.separator.frag"></src:fragref> <src:fragref linkend="xref.with.number.and.title.frag"></src:fragref> </xsl:stylesheet> </programlisting> </appendix> </book> --- NEW FILE: ChangeLog --- 2001-10-13 Norman Walsh <nw...@us...> * Makefile: Changes to make the documentation work with the new litprog sources 2001-04-03 Norman Walsh <nw...@us...> * Makefile: Documentation fixes 2001-04-02 Norman Walsh <nw...@us...> * .cvsignore, Makefile: New file. |
From: Frederic D. <de...@us...> - 2004-06-01 11:14:18
|
Update of /cvsroot/fudaa/fudaa_devel/aide/xml/xsl/docsrc/pi In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20425/xml/xsl/docsrc/pi Added Files: pi.xml ChangeLog Log Message: xml pour l'aide en docbook --- NEW FILE: pi.xml --- <?xml version='1.0' encoding='iso-8859-1'?> <!DOCTYPE book PUBLIC '-//OASIS//DTD DocBook XML V4.2//EN' 'http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd' [ <!ENTITY html-param.xml SYSTEM "../html/param.xml" NDATA SGML> ]> <book> <bookinfo> <title>Processing Instruction Reference</title> <releaseinfo role="meta"> $Id: pi.xml,v 1.1 2004/06/01 11:14:03 deniger Exp $ </releaseinfo> <author> <surname>Kosek</surname> <firstname>Jiří</firstname> </author> <copyright> <year>2003</year> <holder>Jiří Kosek</holder> </copyright> </bookinfo> <preface> <title>Introduction</title> <para>This is technical reference documentation for the DocBook XSL Stylesheets. It documents processing instructions (PIs) recognized by the stylesheets.</para> <para>These PIs can be usually used to change behaviour of stylesheets in a particular place. If you want to change some setting globally it is better to do it via setting appropriate stylesheet parameter if there is such one.</para> </preface> <reference> <title>HTML PIs</title> <partintro> <para>Following PIs are processed only if you are generating HTML output. This means that you are using HTML, XHTML, HTML Help or JavaHelp output format.</para> <para>Name of this PI is <literal>dbhtml</literal> and its behaviour is controlled with following <quote>attributes</quote>.</para> </partintro> <refentry id="dbhtml.filename"> <refmeta> <refentrytitle><?dbhtml filename="..."?></refentrytitle> <refmiscinfo role="type">string</refmiscinfo> </refmeta> <refnamediv> <refname>filename</refname> <refpurpose>Filename for chunk</refpurpose> </refnamediv> <refsect1> <title>Description</title> <para>Sets the name for chunked file. PI must be child of element which goes into chunk (e.g. chapter, section). You can also set <link linkend="dbhtml.dir">directory</link> for chunk.</para> <para>Another way to control filename of chunk is enabling <parameter role="html">use.id.as.filename</parameter> parameter.</para> </refsect1> <refsect1> <title>Example</title> <programlisting><![CDATA[<section> <title>Configuring pencil</title> <?dbhtml filename="configuration.html"?> ... </section>]]></programlisting> </refsect1> </refentry> <refentry id="dbhtml.dir"> <refmeta> <refentrytitle><?dbhtml dir="..."?></refentrytitle> <refmiscinfo role="type">string</refmiscinfo> </refmeta> <refnamediv> <refname>dir</refname> <refpurpose>Directory for chunk</refpurpose> </refnamediv> <refsect1> <title>Description</title> <para>Sets the directory for chunked file. PI must be child of element which goes into chunk (e.g. chapter, section). Resulting directory is inherited from ancestor elements if they also contain this PI. You can also set <link linkend="dbhtml.filename">filename</link> for chunk.</para> <para>PI can specify both filename and directory at the same time.</para> </refsect1> <refsect1> <title>Example</title> <programlisting><![CDATA[<section> <title>Configuring pencil</title> <?dbhtml dir="config" filename="pencil.html"?> ... </section>]]></programlisting> </refsect1> </refentry> </reference> <reference> <title>Common PIs</title> <partintro> <para>Following PIs are recognized in all output formats.</para> </partintro> <refentry> <refnamediv> <refname></refname> <refpurpose></refpurpose> </refnamediv> </refentry> </reference> </book> --- NEW FILE: ChangeLog --- 2003-05-01 Jirka Kosek <ko...@us...> * Makefile, pi.xml: New file. |
From: Frederic D. <de...@us...> - 2004-06-01 11:14:18
|
Update of /cvsroot/fudaa/fudaa_devel/aide/xml/xsl/extensions/xalan2 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20425/xml/xsl/extensions/xalan2 Added Files: ChangeLog Log Message: xml pour l'aide en docbook --- NEW FILE: ChangeLog --- 2001-11-13 Norman Walsh <nw...@us...> * .cvsignore: Added infrastructure for building classes 2001-04-02 Norman Walsh <nw...@us...> * .cvsignore: New file. |
From: Frederic D. <de...@us...> - 2004-06-01 11:14:18
|
Update of /cvsroot/fudaa/fudaa_devel/aide/xml/xsl/extensions/doc/saxon5 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20425/xml/xsl/extensions/doc/saxon5 Added Files: serialized-form.html overview-tree.html index-all.html help-doc.html deprecated-list.html package-list index.html stylesheet.css packages.html Log Message: xml pour l'aide en docbook --- NEW FILE: deprecated-list.html --- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN""http://www.w3.org/TR/REC-html40/frameset.dtd"> <!--NewPage--> <HTML> <HEAD> <!-- Generated by javadoc on Tue Dec 05 11:41:30 EST 2000 --> <TITLE> : Deprecated List </TITLE> <LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style"> </HEAD> <BODY BGCOLOR="white"> <!-- ========== START OF NAVBAR ========== --> <A NAME="navbar_top"><!-- --></A> <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"> <TR> <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A NAME="navbar_top_firstrow"><!-- --></A> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3"> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <FONT CLASS="NavBarFont1">Package</FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <FONT CLASS="NavBarFont1">Class</FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="com/nwalsh/saxon/package-tree.html"><FONT ID="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Deprecated</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="index-all.html"><FONT ID="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="help-doc.html"><FONT ID="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR> </TABLE> </TD> <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> </EM> </TD> </TR> <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> PREV NEXT</FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="index.html" TARGET="_top"><B>FRAMES</B></A> <A HREF="deprecated-list.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD> </TR> </TABLE> <!-- =========== END OF NAVBAR =========== --> <HR> <CENTER> <H2> <B>Deprecated API</B></H2> </CENTER> <HR> <!-- ========== START OF NAVBAR ========== --> <A NAME="navbar_bottom"><!-- --></A> <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"> <TR> <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A NAME="navbar_bottom_firstrow"><!-- --></A> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3"> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <FONT CLASS="NavBarFont1">Package</FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <FONT CLASS="NavBarFont1">Class</FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="com/nwalsh/saxon/package-tree.html"><FONT ID="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Deprecated</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="index-all.html"><FONT ID="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="help-doc.html"><FONT ID="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR> </TABLE> </TD> <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> </EM> </TD> </TR> <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> PREV NEXT</FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="index.html" TARGET="_top"><B>FRAMES</B></A> <A HREF="deprecated-list.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD> </TR> </TABLE> <!-- =========== END OF NAVBAR =========== --> <HR> </BODY> </HTML> --- NEW FILE: index-all.html --- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN""http://www.w3.org/TR/REC-html40/frameset.dtd"> <!--NewPage--> <HTML> <HEAD> <!-- Generated by javadoc on Tue Dec 05 11:41:30 EST 2000 --> <TITLE> : Index </TITLE> <LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style"> </HEAD> <BODY BGCOLOR="white"> <!-- ========== START OF NAVBAR ========== --> <A NAME="navbar_top"><!-- --></A> <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"> <TR> <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A NAME="navbar_top_firstrow"><!-- --></A> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3"> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <FONT CLASS="NavBarFont1">Package</FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <FONT CLASS="NavBarFont1">Class</FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="com/nwalsh/saxon/package-tree.html"><FONT ID="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="deprecated-list.html"><FONT ID="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Index</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="help-doc.html"><FONT ID="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR> </TABLE> </TD> <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> </EM> </TD> </TR> <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> PREV NEXT</FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="index.html" TARGET="_top"><B>FRAMES</B></A> <A HREF="index-all.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD> </TR> </TABLE> <!-- =========== END OF NAVBAR =========== --> <A HREF="#_C_">C</A> <A HREF="#_G_">G</A> <A HREF="#_I_">I</A> <A HREF="#_L_">L</A> <A HREF="#_N_">N</A> <A HREF="#_P_">P</A> <A HREF="#_T_">T</A> <A HREF="#_V_">V</A> <HR> <A NAME="_C_"><!-- --></A><H2> <B>C</B></H2> <DL> <DT><A HREF="com/nwalsh/saxon/Callout.html"><B>Callout</B></A> - class com.nwalsh.saxon.<A HREF="com/nwalsh/saxon/Callout.html">Callout</A>.<DD>Utility class for the Verbatim extension (ignore this).<DT><A HREF="com/nwalsh/saxon/Callout.html#Callout(int, com.icl.saxon.om.ElementInfo, int, int)"><B>Callout(int, ElementInfo, int, int)</B></A> - Constructor for class com.nwalsh.saxon.<A HREF="com/nwalsh/saxon/Callout.html">Callout</A> <DD>The constructor; initialize the private data structures. <DT><A HREF="com/nwalsh/saxon/package-summary.html"><B>com.nwalsh.saxon</B></A> - package com.nwalsh.saxon<DD>Norman Walsh's Saxon Extensions Package for Saxon 5.*<DT><A HREF="com/nwalsh/saxon/Callout.html#compareTo(java.lang.Object)"><B>compareTo(Object)</B></A> - Method in class com.nwalsh.saxon.<A HREF="com/nwalsh/saxon/Callout.html">Callout</A> <DD>The compareTo method compares this Callout with another. <DT><A HREF="com/nwalsh/saxon/CVS.html"><B>CVS</B></A> - class com.nwalsh.saxon.<A HREF="com/nwalsh/saxon/CVS.html">CVS</A>.<DD>Saxon extension to convert CVS date strings into local time<DT><A HREF="com/nwalsh/saxon/CVS.html#CVS()"><B>CVS()</B></A> - Constructor for class com.nwalsh.saxon.<A HREF="com/nwalsh/saxon/CVS.html">CVS</A> <DD>Constructor for CVS </DL> <HR> <A NAME="_G_"><!-- --></A><H2> <B>G</B></H2> <DL> <DT><A HREF="com/nwalsh/saxon/Callout.html#getArea()"><B>getArea()</B></A> - Method in class com.nwalsh.saxon.<A HREF="com/nwalsh/saxon/Callout.html">Callout</A> <DD>Access the Callout's area. <DT><A HREF="com/nwalsh/saxon/Callout.html#getCallout()"><B>getCallout()</B></A> - Method in class com.nwalsh.saxon.<A HREF="com/nwalsh/saxon/Callout.html">Callout</A> <DD>Access the Callout's callout number. <DT><A HREF="com/nwalsh/saxon/Callout.html#getColumn()"><B>getColumn()</B></A> - Method in class com.nwalsh.saxon.<A HREF="com/nwalsh/saxon/Callout.html">Callout</A> <DD>Access the Callout's column. <DT><A HREF="com/nwalsh/saxon/TextFactory.html#getExtensionClass(java.lang.String)"><B>getExtensionClass(String)</B></A> - Method in class com.nwalsh.saxon.<A HREF="com/nwalsh/saxon/TextFactory.html">TextFactory</A> <DD>Return the class that implements a particular extension element. <DT><A HREF="com/nwalsh/saxon/Callout.html#getLine()"><B>getLine()</B></A> - Method in class com.nwalsh.saxon.<A HREF="com/nwalsh/saxon/Callout.html">Callout</A> <DD>Access the Callout's line. </DL> <HR> <A NAME="_I_"><!-- --></A><H2> <B>I</B></H2> <DL> <DT><A HREF="com/nwalsh/saxon/Verbatim.html#insertCallouts(com.icl.saxon.expr.NodeSetIntent, com.icl.saxon.expr.FragmentValue, int)"><B>insertCallouts(NodeSetIntent, FragmentValue, int)</B></A> - Static method in class com.nwalsh.saxon.<A HREF="com/nwalsh/saxon/Verbatim.html">Verbatim</A> <DD>Insert text callouts into a verbatim environment. <DT><A HREF="com/nwalsh/saxon/Verbatim.html#insertCallouts(com.icl.saxon.expr.NodeSetIntent, com.icl.saxon.expr.FragmentValue, int, java.lang.String, java.lang.String, int, boolean)"><B>insertCallouts(NodeSetIntent, FragmentValue, int, String, String, int, boolean)</B></A> - Static method in class com.nwalsh.saxon.<A HREF="com/nwalsh/saxon/Verbatim.html">Verbatim</A> <DD>Insert graphical callouts into a verbatim environment. </DL> <HR> <A NAME="_L_"><!-- --></A><H2> <B>L</B></H2> <DL> <DT><A HREF="com/nwalsh/saxon/CVS.html#localTime(java.lang.String)"><B>localTime(String)</B></A> - Static method in class com.nwalsh.saxon.<A HREF="com/nwalsh/saxon/CVS.html">CVS</A> <DD>Convert a CVS date string into local time. </DL> <HR> <A NAME="_N_"><!-- --></A><H2> <B>N</B></H2> <DL> <DT><A HREF="com/nwalsh/saxon/Verbatim.html#numberLines(com.icl.saxon.expr.FragmentValue)"><B>numberLines(FragmentValue)</B></A> - Static method in class com.nwalsh.saxon.<A HREF="com/nwalsh/saxon/Verbatim.html">Verbatim</A> <DD>Number lines in a verbatim environment using default values for modulus, width and separator. <DT><A HREF="com/nwalsh/saxon/Verbatim.html#numberLines(com.icl.saxon.expr.FragmentValue, int)"><B>numberLines(FragmentValue, int)</B></A> - Static method in class com.nwalsh.saxon.<A HREF="com/nwalsh/saxon/Verbatim.html">Verbatim</A> <DD>Number lines in a verbatim environment using default values for width and separator. <DT><A HREF="com/nwalsh/saxon/Verbatim.html#numberLines(com.icl.saxon.expr.FragmentValue, int, int)"><B>numberLines(FragmentValue, int, int)</B></A> - Static method in class com.nwalsh.saxon.<A HREF="com/nwalsh/saxon/Verbatim.html">Verbatim</A> <DD>Number lines in a verbatim environment using the default value separator. <DT><A HREF="com/nwalsh/saxon/Verbatim.html#numberLines(com.icl.saxon.expr.FragmentValue, int, int, java.lang.String)"><B>numberLines(FragmentValue, int, int, String)</B></A> - Static method in class com.nwalsh.saxon.<A HREF="com/nwalsh/saxon/Verbatim.html">Verbatim</A> <DD>Number lines in a verbatim environment. </DL> <HR> <A NAME="_P_"><!-- --></A><H2> <B>P</B></H2> <DL> <DT><A HREF="com/nwalsh/saxon/Text.html#prepareAttributes()"><B>prepareAttributes()</B></A> - Method in class com.nwalsh.saxon.<A HREF="com/nwalsh/saxon/Text.html">Text</A> <DD>Validate the arguments <DT><A HREF="com/nwalsh/saxon/Text.html#process(com.icl.saxon.Context)"><B>process(Context)</B></A> - Method in class com.nwalsh.saxon.<A HREF="com/nwalsh/saxon/Text.html">Text</A> <DD>Insert the text of the file into the result tree </DL> <HR> <A NAME="_T_"><!-- --></A><H2> <B>T</B></H2> <DL> <DT><A HREF="com/nwalsh/saxon/Text.html"><B>Text</B></A> - class com.nwalsh.saxon.<A HREF="com/nwalsh/saxon/Text.html">Text</A>.<DD>Saxon extension element for inserting text <DT><A HREF="com/nwalsh/saxon/Text.html#Text()"><B>Text()</B></A> - Constructor for class com.nwalsh.saxon.<A HREF="com/nwalsh/saxon/Text.html">Text</A> <DD>Constructor for Text <DT><A HREF="com/nwalsh/saxon/TextFactory.html"><B>TextFactory</B></A> - class com.nwalsh.saxon.<A HREF="com/nwalsh/saxon/TextFactory.html">TextFactory</A>.<DD>Saxon extension element factory <DT><A HREF="com/nwalsh/saxon/TextFactory.html#TextFactory()"><B>TextFactory()</B></A> - Constructor for class com.nwalsh.saxon.<A HREF="com/nwalsh/saxon/TextFactory.html">TextFactory</A> <DD>Constructor for TextFactory </DL> <HR> <A NAME="_V_"><!-- --></A><H2> <B>V</B></H2> <DL> <DT><A HREF="com/nwalsh/saxon/Text.html#validate()"><B>validate()</B></A> - Method in class com.nwalsh.saxon.<A HREF="com/nwalsh/saxon/Text.html">Text</A> <DD>Validate that the element occurs in a reasonable place. <DT><A HREF="com/nwalsh/saxon/Verbatim.html"><B>Verbatim</B></A> - class com.nwalsh.saxon.<A HREF="com/nwalsh/saxon/Verbatim.html">Verbatim</A>.<DD>Saxon extensions supporting DocBook verbatim environments<DT><A HREF="com/nwalsh/saxon/Verbatim.html#Verbatim()"><B>Verbatim()</B></A> - Constructor for class com.nwalsh.saxon.<A HREF="com/nwalsh/saxon/Verbatim.html">Verbatim</A> <DD>Constructor for Verbatim </DL> <HR> <A HREF="#_C_">C</A> <A HREF="#_G_">G</A> <A HREF="#_I_">I</A> <A HREF="#_L_">L</A> <A HREF="#_N_">N</A> <A HREF="#_P_">P</A> <A HREF="#_T_">T</A> <A HREF="#_V_">V</A> <!-- ========== START OF NAVBAR ========== --> <A NAME="navbar_bottom"><!-- --></A> <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"> <TR> <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A NAME="navbar_bottom_firstrow"><!-- --></A> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3"> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <FONT CLASS="NavBarFont1">Package</FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <FONT CLASS="NavBarFont1">Class</FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="com/nwalsh/saxon/package-tree.html"><FONT ID="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="deprecated-list.html"><FONT ID="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Index</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="help-doc.html"><FONT ID="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR> </TABLE> </TD> <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> </EM> </TD> </TR> <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> PREV NEXT</FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="index.html" TARGET="_top"><B>FRAMES</B></A> <A HREF="index-all.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD> </TR> </TABLE> <!-- =========== END OF NAVBAR =========== --> <HR> </BODY> </HTML> --- NEW FILE: serialized-form.html --- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN""http://www.w3.org/TR/REC-html40/frameset.dtd"> <!--NewPage--> <HTML> <HEAD> <!-- Generated by javadoc on Tue Dec 05 11:41:30 EST 2000 --> <TITLE> Serialized Form </TITLE> <LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style"> </HEAD> <BODY BGCOLOR="white"> <!-- ========== START OF NAVBAR ========== --> <A NAME="navbar_top"><!-- --></A> <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"> <TR> <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A NAME="navbar_top_firstrow"><!-- --></A> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3"> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <FONT CLASS="NavBarFont1">Package</FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <FONT CLASS="NavBarFont1">Class</FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="com/nwalsh/saxon/package-tree.html"><FONT ID="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="deprecated-list.html"><FONT ID="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="index-all.html"><FONT ID="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="help-doc.html"><FONT ID="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR> </TABLE> </TD> <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> </EM> </TD> </TR> <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> PREV NEXT</FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="index.html" TARGET="_top"><B>FRAMES</B></A> <A HREF="serialized-form.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD> </TR> </TABLE> <!-- =========== END OF NAVBAR =========== --> <HR> <CENTER> <H1> Serialized Form</H1> </CENTER> <HR> <!-- ========== START OF NAVBAR ========== --> <A NAME="navbar_bottom"><!-- --></A> <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"> <TR> <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A NAME="navbar_bottom_firstrow"><!-- --></A> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3"> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <FONT CLASS="NavBarFont1">Package</FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <FONT CLASS="NavBarFont1">Class</FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="com/nwalsh/saxon/package-tree.html"><FONT ID="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="deprecated-list.html"><FONT ID="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="index-all.html"><FONT ID="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="help-doc.html"><FONT ID="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR> </TABLE> </TD> <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> </EM> </TD> </TR> <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> PREV NEXT</FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="index.html" TARGET="_top"><B>FRAMES</B></A> <A HREF="serialized-form.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD> </TR> </TABLE> <!-- =========== END OF NAVBAR =========== --> <HR> </BODY> </HTML> --- NEW FILE: index.html --- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN""http://www.w3.org/TR/REC-html40/loose.dtd> <!--NewPage--> <HTML> <HEAD> <!-- Generated by javadoc on Tue Dec 05 11:41:30 EST 2000--> <TITLE> Generated Documentation (Untitled) </TITLE> </HEAD> <FRAMESET cols="20%,80%"> <FRAME src="allclasses-frame.html" name="packageFrame"> <FRAME src="com/nwalsh/saxon/package-summary.html" name="classFrame"> </FRAMESET> <NOFRAMES> <H2> Frame Alert</H2> <P> This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client. <BR> Link to <A HREF="com/nwalsh/saxon/package-summary.html">Non-frame version.</A></NOFRAMES> </HTML> --- NEW FILE: packages.html --- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN""http://www.w3.org/TR/REC-html40/frameset.dtd"> <!--NewPage--> <HTML> <HEAD> <!-- Generated by javadoc on Tue Dec 05 11:41:30 EST 2000 --> <TITLE> </TITLE> <LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style"> </HEAD> <BODY BGCOLOR="white"> <BR> <BR> <BR> <CENTER> The front page has been relocated.Please see: <BR> <A HREF="index.html">Frame version</A> <BR> <A HREF="com/nwalsh/saxon/package-summary.html">Non-frame version.</A></CENTER> </BODY> </HTML> --- NEW FILE: package-list --- com.nwalsh.saxon --- NEW FILE: help-doc.html --- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN""http://www.w3.org/TR/REC-html40/frameset.dtd"> <!--NewPage--> <HTML> <HEAD> <!-- Generated by javadoc on Tue Dec 05 11:41:30 EST 2000 --> <TITLE> : API Help </TITLE> <LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style"> </HEAD> <BODY BGCOLOR="white"> <!-- ========== START OF NAVBAR ========== --> <A NAME="navbar_top"><!-- --></A> <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"> <TR> <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A NAME="navbar_top_firstrow"><!-- --></A> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3"> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <FONT CLASS="NavBarFont1">Package</FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <FONT CLASS="NavBarFont1">Class</FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="com/nwalsh/saxon/package-tree.html"><FONT ID="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="deprecated-list.html"><FONT ID="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="index-all.html"><FONT ID="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Help</B></FONT> </TD> </TR> </TABLE> </TD> <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> </EM> </TD> </TR> <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> PREV NEXT</FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="index.html" TARGET="_top"><B>FRAMES</B></A> <A HREF="help-doc.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD> </TR> </TABLE> <!-- =========== END OF NAVBAR =========== --> <HR> <CENTER> <H1> How This API Document Is Organized</H1> </CENTER> This API (Application Programming Interface) document has pages corresponding to the items in the navigation bar, described as follows.<H3> Package</H3> <BLOCKQUOTE> <P> Each package has a page that contains a list of its classes and interfaces, with a summary for each. This page can contain four categories:<UL> <LI>Interfaces (italic)<LI>Classes<LI>Exceptions<LI>Errors</UL> </BLOCKQUOTE> <H3> Class/Interface</H3> <BLOCKQUOTE> <P> Each class, interface, inner class and inner interface has its own separate page. Each of these pages has three sections consisting of a class/interface description, summary tables, and detailed member descriptions:<UL> <LI>Class inheritance diagram<LI>Direct Subclasses<LI>All Known Subinterfaces<LI>All Known Implementing Classes<LI>Class/interface declaration<LI>Class/interface description <P> <LI>Inner Class Summary<LI>Field Summary<LI>Constructor Summary<LI>Method Summary <P> <LI>Field Detail<LI>Constructor Detail<LI>Method Detail</UL> Each summary entry contains the first sentence from the detailed description for that item. The summary entries are alphabetical, while the detailed descriptions are in the order they appear in the source code. This preserves the logical groupings established by the programmer.</BLOCKQUOTE> <H3> Tree (Class Hierarchy)</H3> <BLOCKQUOTE> There is a <A HREF="overview-tree.html">Class Hierarchy</A> page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. The classes are organized by inheritance structure starting with <code>java.lang.Object</code>. The interfaces do not inherit from <code>java.lang.Object</code>.<UL> <LI>When viewing the Overview page, clicking on "Tree" displays the hierarchy for all packages.<LI>When viewing a particular package, class or interface page, clicking "Tree" displays the hierarchy for only that package.</UL> </BLOCKQUOTE> <H3> Deprecated API</H3> <BLOCKQUOTE> The <A HREF="deprecated-list.html">Deprecated API</A> page lists all of the API that have been deprecated. A deprecated API is not recommended for use, generally due to improvements, and a replacement API is usually given. Deprecated APIs may be removed in future implementations.</BLOCKQUOTE> <H3> Index</H3> <BLOCKQUOTE> The <A HREF="index-all.html">Index</A> contains an alphabetic list of all classes, interfaces, constructors, methods, and fields.</BLOCKQUOTE> <H3> Prev/Next</H3> These links take you to the next or previous class, interface, package, or related page.<H3> Frames/No Frames</H3> These links show and hide the HTML frames. All pages are available with or without frames. <P> <H3> Serialized Form</H3> Each serializable or externalizable class has a description of its serialization fields and methods. This information is of interest to re-implementors, not to developers using the API. While there is no link in the navigation bar, you can get to this information by going to any serialized class and clicking "Serialized Form" in the "See also" section of the class description. <P> <FONT SIZE="-1"> <EM> This help file applies to API documentation generated using the standard doclet. </EM> </FONT> <BR> <HR> <!-- ========== START OF NAVBAR ========== --> <A NAME="navbar_bottom"><!-- --></A> <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"> <TR> <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A NAME="navbar_bottom_firstrow"><!-- --></A> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3"> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <FONT CLASS="NavBarFont1">Package</FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <FONT CLASS="NavBarFont1">Class</FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="com/nwalsh/saxon/package-tree.html"><FONT ID="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="deprecated-list.html"><FONT ID="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="index-all.html"><FONT ID="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Help</B></FONT> </TD> </TR> </TABLE> </TD> <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> </EM> </TD> </TR> <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> PREV NEXT</FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="index.html" TARGET="_top"><B>FRAMES</B></A> <A HREF="help-doc.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD> </TR> </TABLE> <!-- =========== END OF NAVBAR =========== --> <HR> </BODY> </HTML> --- NEW FILE: stylesheet.css --- /* Javadoc style sheet */ /* Define colors, fonts and other style attributes here to override the defaults */ /* Page background color */ body { background-color: #FFFFFF } /* Table colors */ .TableHeadingColor { background: #CCCCFF } /* Dark mauve */ .TableSubHeadingColor { background: #EEEEFF } /* Light mauve */ .TableRowColor { background: #FFFFFF } /* White */ /* Font used in left-hand frame lists */ .FrameTitleFont { font-size: normal; font-family: normal } .FrameHeadingFont { font-size: normal; font-family: normal } .FrameItemFont { font-size: normal; font-family: normal } /* Example of smaller, sans-serif font in frames */ /* .FrameItemFont { font-size: 10pt; font-family: Helvetica, Arial, sans-serif } */ /* Navigation bar fonts and colors */ .NavBarCell1 { background-color:#EEEEFF;}/* Light mauve */ .NavBarCell1Rev { background-color:#00008B;}/* Dark Blue */ .NavBarFont1 { font-family: Arial, Helvetica, sans-serif; color:#000000;} .NavBarFont1Rev { font-family: Arial, Helvetica, sans-serif; color:#FFFFFF;} .NavBarCell2 { font-family: Arial, Helvetica, sans-serif; background-color:#FFFFFF;} .NavBarCell3 { font-family: Arial, Helvetica, sans-serif; background-color:#FFFFFF;} --- NEW FILE: overview-tree.html --- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN""http://www.w3.org/TR/REC-html40/frameset.dtd"> <!--NewPage--> <HTML> <HEAD> <!-- Generated by javadoc on Tue Dec 05 11:41:29 EST 2000 --> <TITLE> : Class Hierarchy </TITLE> <LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style"> </HEAD> <BODY BGCOLOR="white"> <!-- ========== START OF NAVBAR ========== --> <A NAME="navbar_top"><!-- --></A> <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"> <TR> <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A NAME="navbar_top_firstrow"><!-- --></A> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3"> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <FONT CLASS="NavBarFont1">Package</FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <FONT CLASS="NavBarFont1">Class</FONT> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Tree</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="deprecated-list.html"><FONT ID="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="index-all.html"><FONT ID="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="help-doc.html"><FONT ID="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR> </TABLE> </TD> <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> </EM> </TD> </TR> <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> PREV NEXT</FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="index.html" TARGET="_top"><B>FRAMES</B></A> <A HREF="overview-tree.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD> </TR> </TABLE> <!-- =========== END OF NAVBAR =========== --> <HR> <CENTER> <H2> Hierarchy For All Packages</H2> </CENTER> <DL> <DT><B>Package Hierarchies: </B><DD><A HREF="com/nwalsh/saxon/package-tree.html">com.nwalsh.saxon</A></DL> <HR> <H2> Class Hierarchy </H2> <UL> <LI TYPE="circle">class java.lang.Object<UL> <LI TYPE="circle">class com.nwalsh.saxon.<A HREF="com/nwalsh/saxon/Callout.html"><B>Callout</B></A> (implements java.lang.Comparable) <LI TYPE="circle">class com.nwalsh.saxon.<A HREF="com/nwalsh/saxon/CVS.html"><B>CVS</B></A><LI TYPE="circle">class com.icl.saxon.tree.NodeImpl (implements com.icl.saxon.om.NodeInfo) <UL> <LI TYPE="circle">class com.icl.saxon.tree.ParentNodeImpl<UL> <LI TYPE="circle">class com.icl.saxon.tree.ElementImpl (implements org.w3c.dom.Element, com.icl.saxon.om.ElementInfo, org.w3c.dom.NamedNodeMap) <UL> <LI TYPE="circle">class com.icl.saxon.tree.ElementWithAttributes (implements org.w3c.dom.Element, com.icl.saxon.om.ElementInfo, org.w3c.dom.NamedNodeMap) <UL> <LI TYPE="circle">class com.icl.saxon.style.StyleElement (implements org.xml.sax.Locator, com.icl.saxon.expr.StaticContext) <UL> <LI TYPE="circle">class com.nwalsh.saxon.<A HREF="com/nwalsh/saxon/Text.html"><B>Text</B></A></UL> </UL> </UL> </UL> </UL> <LI TYPE="circle">class com.nwalsh.saxon.<A HREF="com/nwalsh/saxon/TextFactory.html"><B>TextFactory</B></A> (implements com.icl.saxon.style.ExtensionElementFactory) <LI TYPE="circle">class com.nwalsh.saxon.<A HREF="com/nwalsh/saxon/Verbatim.html"><B>Verbatim</B></A></UL> </UL> <HR> <!-- ========== START OF NAVBAR ========== --> <A NAME="navbar_bottom"><!-- --></A> <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"> <TR> <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A NAME="navbar_bottom_firstrow"><!-- --></A> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3"> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <FONT CLASS="NavBarFont1">Package</FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <FONT CLASS="NavBarFont1">Class</FONT> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Tree</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="deprecated-list.html"><FONT ID="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="index-all.html"><FONT ID="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="help-doc.html"><FONT ID="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR> </TABLE> </TD> <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> </EM> </TD> </TR> <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> PREV NEXT</FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="index.html" TARGET="_top"><B>FRAMES</B></A> <A HREF="overview-tree.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD> </TR> </TABLE> <!-- =========== END OF NAVBAR =========== --> <HR> </BODY> </HTML> |
From: Frederic D. <de...@us...> - 2004-06-01 11:14:18
|
Update of /cvsroot/fudaa/fudaa_devel/aide/xml/xsl/tools In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20425/xml/xsl/tools Added Files: ChangeLog Log Message: xml pour l'aide en docbook --- NEW FILE: ChangeLog --- 2001-08-01 Norman Walsh <nw...@us...> * profile.xsl: Moved profile.xsl to profile subdirectory 2001-07-31 Jirka Kosek <ko...@us...> * profile.xsl: New file. |
From: Frederic D. <de...@us...> - 2004-06-01 11:14:18
|
Update of /cvsroot/fudaa/fudaa_devel/aide/xml/xsl/eclipse In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20425/xml/xsl/eclipse Added Files: ChangeLog eclipse.xsl Log Message: xml pour l'aide en docbook --- NEW FILE: eclipse.xsl --- <?xml version="1.0"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:import href="../html/chunk.xsl"/> <!-- ******************************************************************** $Id: eclipse.xsl,v 1.1 2004/06/01 11:14:02 deniger Exp $ ******************************************************************** This file is part of the XSL DocBook Stylesheet distribution. See ../README or http://nwalsh.com/docbook/xsl/ for copyright and other information. ******************************************************************** --> <xsl:template match="/"> <xsl:choose> <xsl:when test="$rootid != ''"> <xsl:choose> <xsl:when test="count(key('id',$rootid)) = 0"> <xsl:message terminate="yes"> <xsl:text>ID '</xsl:text> <xsl:value-of select="$rootid"/> <xsl:text>' not found in document.</xsl:text> </xsl:message> </xsl:when> <xsl:otherwise> <xsl:message>Formatting from <xsl:value-of select="$rootid"/></xsl:message> <xsl:apply-templates select="key('id',$rootid)" mode="process.root"/> </xsl:otherwise> </xsl:choose> </xsl:when> <xsl:otherwise> <xsl:apply-templates select="/" mode="process.root"/> </xsl:otherwise> </xsl:choose> <xsl:call-template name="etoc"/> <xsl:call-template name="plugin.xml"/> </xsl:template> <xsl:template name="etoc"> <xsl:call-template name="write.chunk"> <xsl:with-param name="filename"> <xsl:if test="$manifest.in.base.dir != 0"> <xsl:value-of select="$base.dir"/> </xsl:if> <xsl:value-of select="'toc.xml'"/> </xsl:with-param> <xsl:with-param name="method" select="'xml'"/> <xsl:with-param name="encoding" select="'utf-8'"/> <xsl:with-param name="indent" select="'yes'"/> <xsl:with-param name="content"> <xsl:choose> <xsl:when test="$rootid != ''"> <xsl:variable name="title"> <xsl:if test="$eclipse.autolabel=1"> <xsl:variable name="label.markup"> <xsl:apply-templates select="key('id',$rootid)" mode="label.markup"/> </xsl:variable> <xsl:if test="normalize-space($label.markup)"> <xsl:value-of select="concat($label.markup,$autotoc.label.separator)"/> </xsl:if> </xsl:if> <xsl:apply-templates select="key('id',$rootid)" mode="title.markup"/> </xsl:variable> <xsl:variable name="href"> <xsl:call-template name="href.target.with.base.dir"> <xsl:with-param name="object" select="key('id',$rootid)"/> </xsl:call-template> </xsl:variable> <toc label="{$title}" topic="{$href}"> <xsl:apply-templates select="key('id',$rootid)/*" mode="etoc"/> </toc> </xsl:when> <xsl:otherwise> <xsl:variable name="title"> <xsl:if test="$eclipse.autolabel=1"> <xsl:variable name="label.markup"> <xsl:apply-templates select="/*" mode="label.markup"/> </xsl:variable> <xsl:if test="normalize-space($label.markup)"> <xsl:value-of select="concat($label.markup,$autotoc.label.separator)"/> </xsl:if> </xsl:if> <xsl:apply-templates select="/*" mode="title.markup"/> </xsl:variable> <xsl:variable name="href"> <xsl:call-template name="href.target.with.base.dir"> <xsl:with-param name="object" select="/"/> </xsl:call-template> </xsl:variable> <toc label="{$title}" topic="{$href}"> <xsl:apply-templates select="/*/*" mode="etoc"/> </toc> </xsl:otherwise> </xsl:choose> </xsl:with-param> </xsl:call-template> </xsl:template> <xsl:template match="book|part|reference|preface|chapter|bibliography|appendix|article|glossary|section|sect1|sect2|sect3|sect4|sect5|refentry|colophon|bibliodiv|index" mode="etoc"> <xsl:variable name="title"> <xsl:if test="$eclipse.autolabel=1"> <xsl:variable name="label.markup"> <xsl:apply-templates select="." mode="label.markup"/> </xsl:variable> <xsl:if test="normalize-space($label.markup)"> <xsl:value-of select="concat($label.markup,$autotoc.label.separator)"/> </xsl:if> </xsl:if> <xsl:apply-templates select="." mode="title.markup"/> </xsl:variable> <xsl:variable name="href"> <xsl:call-template name="href.target.with.base.dir"/> </xsl:variable> <topic label="{$title}" href="{$href}"> <xsl:apply-templates select="part|reference|preface|chapter|bibliography|appendix|article|glossary|section|sect1|sect2|sect3|sect4|sect5|refentry|colophon|bibliodiv|index" mode="etoc"/> </topic> </xsl:template> <xsl:template match="text()" mode="etoc"/> <xsl:template name="plugin.xml"> <xsl:call-template name="write.chunk"> <xsl:with-param name="filename"> <xsl:if test="$manifest.in.base.dir != 0"> <xsl:value-of select="$base.dir"/> </xsl:if> <xsl:value-of select="'plugin.xml'"/> </xsl:with-param> <xsl:with-param name="method" select="'xml'"/> <xsl:with-param name="encoding" select="'utf-8'"/> <xsl:with-param name="indent" select="'yes'"/> <xsl:with-param name="content"> <plugin name="{$eclipse.plugin.name}" id="{$eclipse.plugin.id}" version="1.0" provider-name="{$eclipse.plugin.provider}"> <extension point="org.eclipse.help.toc"> <toc file="toc.xml" primary="true"/> </extension> </plugin> </xsl:with-param> </xsl:call-template> </xsl:template> </xsl:stylesheet> --- NEW FILE: ChangeLog --- 2003-09-23 Jirka Kosek <ko...@us...> * eclipse.xsl: Added new parameter manifest.in.base.dir which can be used to place manifest file and also project files for HTML Help and Eclipse Help into base.dir. This improvement also fixes bug (feature) #662955. 2003-07-22 Jirka Kosek <ko...@us...> * eclipse.xsl: New file. |
From: Frederic D. <de...@us...> - 2004-06-01 11:14:17
|
Update of /cvsroot/fudaa/fudaa_devel/aide/xml/xsl/docsrc/template In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20425/xml/xsl/docsrc/template Added Files: ChangeLog titlepage.xml Log Message: xml pour l'aide en docbook --- NEW FILE: titlepage.xml --- <?xml version="1.0" encoding="utf-8" standalone="no"?> <!DOCTYPE reference PUBLIC "-//Norman Walsh//DTD JRefEntry V1.1//EN" "http://docbook.sourceforge.net/release/jrefentry/1.1/jrefentry.dtd"> <reference> <referenceinfo> <releaseinfo role="meta"> $Id: titlepage.xml,v 1.1 2004/06/01 11:13:57 deniger Exp $ </releaseinfo> <author><surname>Walsh</surname> <firstname>Norman</firstname></author> <copyright><year>1999</year><year>2000</year> <holder>Norman Walsh</holder> </copyright> </referenceinfo> <title>Template Stylesheet Reference</title> <partintro> <section><title>Introduction</title> <para>This is technical reference documentation for the DocBook XSL Stylesheets; it documents (some of) the parameters, templates, and other elements of the stylesheets.</para> <para>This is not intended to be <quote>user</quote> documentation. It is provided for developers writing customization layers for the stylesheets, and for anyone who's interested in <quote>how it works</quote>.</para> <para>Although I am trying to be thorough, this documentation is known to be incomplete. Don't forget to read the source, too :-)</para> </section> </partintro> <refentry> <refnamediv> <refname>t:templates</refname> <refpurpose>Construct a stylesheet for the templates provided</refpurpose> </refnamediv> <refsynopsisdiv> <synopsis><xsl:template match="t:templates"/></synopsis> </refsynopsisdiv> <refdescription> <para>The <literal>t:templates</literal> element is the root of a set of templates. This template creates an appropriate <literal>xsl:stylesheet</literal> for the templates.</para> <para>If the <literal>t:templates</literal> element has a <literal>base-stylesheet</literal> attribute, an <literal>xsl:import</literal> statement is constructed for it.</para> </refdescription></refentry> <refentry> <refnamediv> <refname>xsl:*</refname> <refpurpose>Copy xsl: elements straight through</refpurpose> </refnamediv> <refsynopsisdiv> <synopsis><xsl:template match="xsl:*"/></synopsis> </refsynopsisdiv> <refdescription> <para>This template simply copies the xsl: elements straight through into the result tree.</para> </refdescription></refentry> <refentry> <refnamediv> <refname>t:titlepage</refname> <refpurpose>Create the templates necessary to construct a title page</refpurpose> </refnamediv> <refsynopsisdiv> <synopsis><xsl:template match="t:titlepage"/></synopsis> </refsynopsisdiv> <refdescription> <para>The <literal>t:titlepage</literal> element creates a set of templates for processing the titlepage for an element. The <quote>root</quote> of this template set is the template named <quote><literal>wrapper.titlepage</literal></quote>. That is the template that should be called to generate the title page. </para> <para>The <literal>t:titlepage</literal> element has three attributes: <variablelist> <varlistentry><term>element</term> <listitem> <para>The name of the source document element for which these templates apply. In other words, to make a title page for the <sgmltag>article</sgmltag> element, set the <sgmltag class="attribute">element</sgmltag> attribute to <quote><literal>article</literal></quote>. This attribute is required. </para> </listitem> </varlistentry> <varlistentry><term>wrapper</term> <listitem> <para>The entire title page can be wrapped with an element. This attribute identifies that element. </para> </listitem> </varlistentry> <varlistentry><term>class</term> <listitem> <para>If the <sgmltag class="attribute">class</sgmltag> attribute is set, a <sgmltag class="attribute">class</sgmltag> attribute with this value will be added to the wrapper element that surrounds the entire title page. </para> </listitem> </varlistentry> </variablelist> </para> <para>Any other attributes are copied through literally to the wrapper element.</para> <para>The content of a <literal>t:titlepage</literal> is one or more <literal>t:titlepage-content</literal>, <literal>t:titlepage-separator</literal>, and <literal>t:titlepage-before</literal> elements.</para> <para>Each of these elements may be provided for the <quote>recto</quote> and <quote>verso</quote> sides of the title page.</para> </refdescription></refentry> <refentry> <refnamediv> <refname>@* (in copy.literal.atts mode)</refname> <refpurpose>Copy t:titlepage attributes</refpurpose> </refnamediv> <refsynopsisdiv> <synopsis><xsl:template match="@*" mode="copy.literal.atts"/></synopsis> </refsynopsisdiv> <refdescription> <para>This template copies all of the <quote>other</quote> attributes from a <literal>t:titlepage</literal> element onto the specified wrapper.</para> </refdescription></refentry> <refentry> <refnamediv> <refname>t:titlepage-content</refname> <refpurpose>Create templates for the content of one side of a title page</refpurpose> </refnamediv> <refsynopsisdiv> <synopsis><xsl:template match="t:titlepage-content"/></synopsis> </refsynopsisdiv> <refdescription> <para>The title page content, that is, the elements from the source document that are rendered on the title page, can be controlled independently for the recto and verso sides of the title page.</para> <para>The <literal>t:titlepage-content</literal> element has two attributes: <variablelist> <varlistentry><term>side</term> <listitem> <para>Identifies the side of the page to which this title page content applies. The <sgmltag class="attribute">side</sgmltag> attribute is required and must be set to either <quote><literal>recto</literal></quote> or <quote><literal>verso</literal></quote>. In addition, you must specify exactly one <literal>t:titlepage-content</literal> for each side within each <literal>t:titlepage</literal>.</para> </listitem> </varlistentry> <varlistentry><term>order</term> <listitem> <para>Indicates how the order of the elements presented on the title page is determined. If the <sgmltag class="attribute">order</sgmltag> is <quote><literal>document</literal></quote>, the elements are presented in document order. Otherwise (if the <sgmltag class="attribute">order</sgmltag> is <quote><literal>stylesheet</literal></quote>), the elements are presented in the order that they appear in the template (and consequently in the stylesheet).</para> </listitem> </varlistentry> </variablelist> </para> <para>The content of a <literal>t:titlepage-content</literal> element is a list of element names. These names should be unqualified. They identify the elements in the source document that should appear on the title page. </para> <para>Each element may have a single attribute: <sgmltag class="attribute">predicate</sgmltag>. The value of this attribute is used as a predicate for the expression that matches the element on which it occurs.</para> <para>In other words, to put only the first three authors on the recto-side of a title page, you could specify: <screen> <t:titlepage-contents side="recto"> <!-- other titlepage elements --> <author predicate="[count(previous-sibling::author)<2]"/> <!-- other titlepage elements --> </t:titlepage-contents> </screen> </para> <para>Usually, the elements so named are empty. But it is possible to make one level of selection within them. Suppose that you want to process <literal>authorgroup</literal> elements on the title page, but you want to select only proper authors, editors, or corporate authors, not collaborators or other credited authors.</para> <para>In that case, you can put a <literal>t:or</literal> group inside the <literal>authorgroup</literal> element: <screen> <t:titlepage-contents side="recto"> <!-- other titlepage elements --> <authorgroup> <t:or> <author/> <editor/> <corpauthor/> </t:or> </authorgroup> <!-- other titlepage elements --> </t:titlepage-contents> </screen> </para> <para>This will have the effect of automatically generating a template for processing <literal>authorgroup</literal>s in the title page mode, selecting only the specified children. If you need more complex processing, you'll have to construct the templates by hand.</para> </refdescription></refentry> <refentry> <refnamediv> <refname>t:titlepage-separator</refname> <refpurpose>Create templates for the separator</refpurpose> </refnamediv> <refsynopsisdiv> <synopsis><xsl:template match="t:titlepage-separator"/></synopsis> </refsynopsisdiv> <refdescription> <para>The title page is separated from the content which follows it by the markup specified in the <literal>t:titlepage-separator</literal> element.</para> </refdescription></refentry> <refentry> <refnamediv> <refname>t:titlepage-before</refname> <refpurpose>Create templates for what precedes a title page</refpurpose> </refnamediv> <refsynopsisdiv> <synopsis><xsl:template match="t:titlepage-before"/></synopsis> </refsynopsisdiv> <refdescription> <para>Each side of the title page is preceded by the markup specified in the <literal>t:titlepage-before</literal> element for that side.</para> </refdescription></refentry> <refentry> <refnamediv> <refname>* (in copy mode)</refname> <refpurpose>Copy elements</refpurpose> </refnamediv> <refsynopsisdiv> <synopsis><xsl:template match="*" mode="copy"/></synopsis> </refsynopsisdiv> <refdescription> <para>This template simply copies the elements that it applies to straight through into the result tree.</para> </refdescription></refentry> <refentry> <refnamediv> <refname>@* (in copy mode)</refname> <refpurpose>Copy attributes</refpurpose> </refnamediv> <refsynopsisdiv> <synopsis><xsl:template match="@*" mode="copy"/></synopsis> </refsynopsisdiv> <refdescription> <para>This template simply copies the attributes that it applies to straight through into the result tree.</para> </refdescription></refentry> <refentry> <refnamediv> <refname>* (in document.order mode)</refname> <refpurpose>Create rules to process titlepage elements in document order</refpurpose> </refnamediv> <refsynopsisdiv> <synopsis><xsl:template match="*" mode="document.order"/></synopsis> </refsynopsisdiv> <refdescription> <para>This template is called to process all of the children of the <literal>t:titlepage-content</literal> element. It creates the hairy select expression necessary to process each of those elements in the title page.</para> <para>Note that this template automatically handles the case where some DocBook elements, like title and subtitle, can occur both inside the *info elements where metadata is usually stored and outside. </para> <para>It also automatically calculates the name for the *info container and handles elements that have historically had containers with different names.</para> </refdescription></refentry> <refentry> <refnamediv> <refname>* (in document.order mode)</refname> <refpurpose>Create rules to process titlepage elements in stylesheet order</refpurpose> </refnamediv> <refsynopsisdiv> <synopsis><xsl:template match="*" mode="document.order"/></synopsis> </refsynopsisdiv> <refdescription> <para>This template is called to process all of the children of the <literal>t:titlepage-content</literal> element. It creates the set of <literal>xsl:apply-templates</literal> elements necessary process each of those elements in the title page.</para> <para>Note that this template automatically handles the case where some DocBook elements, like title and subtitle, can occur both inside the *info elements where metadata is usually stored and outside. </para> <para>It also automatically calculates the name for the *info container and handles elements that have historically had containers with different names.</para> </refdescription></refentry> <refentry> <refnamediv> <refname>* (in titlepage.specialrules mode)</refname> <refpurpose>Create templates for special rules</refpurpose> </refnamediv> <refsynopsisdiv> <synopsis><xsl:template match="*" mode="titlepage.specialrules"/></synopsis> </refsynopsisdiv> <refdescription> <para>This template is called to process all of the descendants of the <literal>t:titlepage-content</literal> element that require special processing. At present, that's just <literal>t:or</literal> elements. </para> </refdescription></refentry> <refentry> <refnamediv> <refname>* (in titlepage.subrules mode)</refname> <refpurpose>Create template for individual special rules</refpurpose> </refnamediv> <refsynopsisdiv> <synopsis><xsl:template match="*" mode="titlepage.subrules"/></synopsis> </refsynopsisdiv> <refdescription> <para>This template is called to process the children of special template elements. </para> </refdescription></refentry> <refentry> <refnamediv> <refname>t:or</refname> <refpurpose>Process the t:or special rule</refpurpose> </refnamediv> <refsynopsisdiv> <synopsis><xsl:template match="t:or"/><xsl:template match="t:or" mode="titlepage.subrules"/></synopsis> </refsynopsisdiv> <refdescription> <para>This template processes t:or.</para> </refdescription></refentry> <refentry> <refnamediv> <refname>t:or (in titlepage.subrules mode)</refname> <refpurpose>Process the t:or special rule in titlepage.subrules mode</refpurpose> </refnamediv> <refsynopsisdiv> <synopsis><xsl:template match="t:or" mode="titlepage.subrules"/></synopsis> </refsynopsisdiv> <refdescription> <para>The titlepage.subrules mode doesn't apply to t:or, so just reprocess this node in the normal mode.</para> </refdescription></refentry> <refentry id="template.element-or-list"> <refnamediv> <refname>element-or-list</refname> <refpurpose>Construct the "or-list" used in the select attribute for special rules.</refpurpose> </refnamediv> <refsynopsisdiv> <synopsis><xsl:template name="element-or-list"> <xsl:param name="elements" select="*"/> <xsl:param name="element.count" select="count($elements)"/> <xsl:param name="count" select="1"/> <xsl:param name="orlist"/> ... </xsl:template></synopsis> </refsynopsisdiv> <refdescription> <para>Walk through each of the children of t:or, producing the text of the select attribute.</para> </refdescription></refentry> </reference> --- NEW FILE: ChangeLog --- 2001-04-03 Norman Walsh <nw...@us...> * Makefile: Documentation fixes 2001-04-02 Norman Walsh <nw...@us...> * .cvsignore, Makefile: New file. |
From: Frederic D. <de...@us...> - 2004-06-01 11:14:17
|
Update of /cvsroot/fudaa/fudaa_devel/aide/xml/xsl/doc/common In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20425/xml/xsl/doc/common Added Files: common.html ChangeLog Log Message: xml pour l'aide en docbook --- NEW FILE: common.html --- <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title></title> <link rel="stylesheet" href="../reference.css" type="text/css"> <meta name="generator" content="DocBook XSL Stylesheets V1.62.4"> </head> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <div class="reference" lang="en"><a name="d0e1"></a><div class="titlepage"> <div> <div> <h1 class="title"><a name="d0e1"></a>Common Template Reference </h1> </div> <div> <div class="author"> <h3 class="author"><span class="firstname">Norman</span> <span class="surname">Walsh</span></h3> </div> </div> <div> <p class="releaseinfo"> $Id: common.html,v 1.1 2004/06/01 11:14:00 deniger Exp $ </p> </div> <div> <p class="copyright"><a href="../copyright.html"></a> © 19992000 Norman Walsh. <a href="../warranty.html">No Warranty</a>. </p> </div> </div> <div></div> <hr> </div> <div class="partintro" lang="en"> <div> <div></div> <div></div> </div> <div class="section" lang="en"> <div class="titlepage"> <div> <div> <h2 class="title" style="clear: both"><a name="d0e24"></a></h2> </div> </div> <div></div> </div> <p>This is technical reference documentation for the DocBook XSL Stylesheets; it documents (some of) the parameters, templates, and other elements of the stylesheets. </p> <p>This is not intended to be <span class="quote">user</span> documentation. It is provided for developers writing customization layers for the stylesheets, and for anyone who's interested in <span class="quote">how it works</span>. </p> <p>Although I am trying to be thorough, this documentation is known to be incomplete. Don't forget to read the source, too :-) </p> </div> <div class="toc"> <p><b></b></p> <dl> <dt><a href="#template.is.component">is.component</a> - Tests if a given node is a component-level element </dt> <dt><a href="#template.is.section">is.section</a> - Tests if a given node is a section-level element </dt> <dt><a href="#template.section.level">section.level</a> - Returns the hierarchical level of a section. </dt> <dt><a href="#template.qanda.section.level">qanda.section.level</a> - Returns the hierarchical level of a QandASet. </dt> <dt><a href="#template.select.mediaobject">select.mediaobject</a> - Selects and processes an appropriate media object from a list </dt> <dt><a href="#template.select.mediaobject.index">select.mediaobject.index</a> - Selects the position of the appropriate media object from a list </dt> <dt><a href="#template.is.acceptable.mediaobject">is.acceptable.mediaobject</a> - Returns '1' if the specified media object is recognized. </dt> <dt><a href="#template.check.id.unique">check.id.unique</a> - Warn users about references to non-unique IDs </dt> <dt><a href="#template.check.idref.targets">check.idref.targets</a> - Warn users about incorrectly typed references </dt> <dt><a href="#template.copyright.years">copyright.years</a> - Print a set of years with collapsed ranges </dt> <dt><a href="#template.find.path.params">find.path.params</a> - Search in a table for the "best" match for the node </dt> </dl> </div> </div> <div class="refentry" lang="en"><a name="template.is.component"></a><div class="titlepage"> <div></div> <div></div> </div> <div class="refnamediv"> <h2></h2> <p>is.component — Tests if a given node is a component-level element</p> </div> <div class="refsynopsisdiv"> <h2></h2><pre class="synopsis"><xsl:template name="is.component"> <xsl:param name="node" select="."/> ... </xsl:template></pre></div> <div class="refdescription"><a name="d0e48"></a> <p>This template returns '1' if the specified node is a component (Chapter, Appendix, etc.), and '0' otherwise. </p> </div> <div class="refparameter"><b><a name="d0e53"></a>Parameters</b> <div class="variablelist"> <dl> <dt><span class="term">node</span></dt> <dd> <p>The node which is to be tested.</p> </dd> </dl> </div> </div> <div class="refreturn"><b><a name="d0e63"></a>Returns</b> <p>This template returns '1' if the specified node is a component (Chapter, Appendix, etc.), and '0' otherwise. </p> </div> </div> <div class="refentry" lang="en"> <div class="refentry.separator"> <hr> </div><a name="template.is.section"></a><div class="titlepage"> <div></div> <div></div> </div> <div class="refnamediv"> <h2></h2> <p>is.section — Tests if a given node is a section-level element</p> </div> <div class="refsynopsisdiv"> <h2></h2><pre class="synopsis"><xsl:template name="is.section"> <xsl:param name="node" select="."/> ... </xsl:template></pre></div> <div class="refdescription"><a name="d0e77"></a> <p>This template returns '1' if the specified node is a section (Section, Sect1, Sect2, etc.), and '0' otherwise. </p> </div> <div class="refparameter"><b><a name="d0e82"></a>Parameters</b> <div class="variablelist"> <dl> <dt><span class="term">node</span></dt> <dd> <p>The node which is to be tested.</p> </dd> </dl> </div> </div> <div class="refreturn"><b><a name="d0e92"></a>Returns</b> <p>This template returns '1' if the specified node is a section (Section, Sect1, Sect2, etc.), and '0' otherwise. </p> </div> </div> <div class="refentry" lang="en"> <div class="refentry.separator"> <hr> </div><a name="template.section.level"></a><div class="titlepage"> <div></div> <div></div> </div> <div class="refnamediv"> <h2></h2> <p>section.level — Returns the hierarchical level of a section.</p> </div> <div class="refsynopsisdiv"> <h2></h2><pre class="synopsis"><xsl:template name="section.level"> <xsl:param name="node" select="."/> ... </xsl:template></pre></div> <div class="refdescription"><a name="d0e106"></a> <p>This template calculates the hierarchical level of a section. The element <tt class="sgmltag-element">sect1</tt> is at level 1, <tt class="sgmltag-element">sect2</tt> is at level 2, etc. </p> <p>Recursive sections are calculated down to the fifth level.</p> </div> <div class="refparameter"><b><a name="d0e120"></a>Parameters</b> <div class="variablelist"> <dl> <dt><span class="term">node</span></dt> <dd> <p>The section node for which the level should be calculated. Defaults to the context node. </p> </dd> </dl> </div> </div> <div class="refreturn"><b><a name="d0e130"></a>Returns</b> <p>The section level, <span class="quote">1</span>, <span class="quote">2</span>, etc. </p> </div> </div> <div class="refentry" lang="en"> <div class="refentry.separator"> <hr> </div><a name="template.qanda.section.level"></a><div class="titlepage"> <div></div> <div></div> </div> <div class="refnamediv"> <h2></h2> <p>qanda.section.level — Returns the hierarchical level of a QandASet.</p> </div> <div class="refsynopsisdiv"> <h2></h2><pre class="synopsis"><xsl:template name="qanda.section.level"/></pre></div> <div class="refdescription"><a name="d0e150"></a> <p>This template calculates the hierarchical level of a QandASet. </p> </div> <div class="refreturn"><b><a name="d0e155"></a>Returns</b> <p>The level, <span class="quote">1</span>, <span class="quote">2</span>, etc. </p> </div> </div> <div class="refentry" lang="en"> <div class="refentry.separator"> <hr> </div><a name="template.select.mediaobject"></a><div class="titlepage"> <div></div> <div></div> </div> <div class="refnamediv"> <h2></h2> <p>select.mediaobject — Selects and processes an appropriate media object from a list</p> </div> <div class="refsynopsisdiv"> <h2></h2><pre class="synopsis"><xsl:template name="select.mediaobject"> <xsl:param name="olist" select="imageobject|imageobjectco |videoobject|audioobject|textobject"/> ... </xsl:template></pre></div> <div class="refdescription"><a name="d0e175"></a> <p>This template takes a list of media objects (usually the children of a mediaobject or inlinemediaobject) and processes the "right" object. </p> <p>This template relies on a template named "select.mediaobject.index" to determine which object in the list is appropriate. </p> <p>If no acceptable object is located, nothing happens.</p> </div> <div class="refparameter"><b><a name="d0e186"></a>Parameters</b> <div class="variablelist"> <dl> <dt><span class="term">olist</span></dt> <dd> <p>The node list of potential objects to examine.</p> </dd> </dl> </div> </div> <div class="refreturn"><b><a name="d0e196"></a>Returns</b> <p>Calls <xsl:apply-templates> on the selected object.</p> </div> </div> <div class="refentry" lang="en"> <div class="refentry.separator"> <hr> </div><a name="template.select.mediaobject.index"></a><div class="titlepage"> <div></div> <div></div> </div> <div class="refnamediv"> <h2></h2> <p>select.mediaobject.index — Selects the position of the appropriate media object from a list</p> </div> <div class="refsynopsisdiv"> <h2></h2><pre class="synopsis"><xsl:template name="select.mediaobject.index"> <xsl:param name="olist" select="imageobject|imageobjectco |videoobject|audioobject|textobject"/> <xsl:param name="count">1</xsl:param> ... </xsl:template></pre></div> <div class="refdescription"><a name="d0e210"></a> <p>This template takes a list of media objects (usually the children of a mediaobject or inlinemediaobject) and determines the "right" object. It returns the position of that object to be used by the calling template. </p> <p>If the parameter <i class="parameter"><tt>use.role.for.mediaobject</tt></i> is nonzero, then it first checks for an object with a role attribute of the appropriate value. It takes the first of those. Otherwise, it takes the first acceptable object through a recursive pass through the list. </p> <p>This template relies on a template named "is.acceptable.mediaobject" to determine if a given object is an acceptable graphic. The semantics of media objects is that the first acceptable graphic should be used. </p> <p>If no acceptable object is located, no index is returned.</p> </div> <div class="refparameter"><b><a name="d0e227"></a>Parameters</b> <div class="variablelist"> <dl> <dt><span class="term">olist</span></dt> <dd> <p>The node list of potential objects to examine.</p> </dd> <dt><span class="term">count</span></dt> <dd> <p>The position in the list currently being considered by the recursive process. </p> </dd> </dl> </div> </div> <div class="refreturn"><b><a name="d0e243"></a>Returns</b> <p>Returns the position in the original list of the selected object.</p> </div> </div> <div class="refentry" lang="en"> <div class="refentry.separator"> <hr> </div><a name="template.is.acceptable.mediaobject"></a><div class="titlepage"> <div></div> <div></div> </div> <div class="refnamediv"> <h2></h2> <p>is.acceptable.mediaobject — Returns '1' if the specified media object is recognized.</p> </div> <div class="refsynopsisdiv"> <h2></h2><pre class="synopsis"><xsl:template name="is.acceptable.mediaobject"> <xsl:param name="object"/> ... </xsl:template></pre></div> <div class="refdescription"><a name="d0e257"></a> <p>This template examines a media object and returns '1' if the object is recognized as a graphic. </p> </div> <div class="refparameter"><b><a name="d0e262"></a>Parameters</b> <div class="variablelist"> <dl> <dt><span class="term">object</span></dt> <dd> <p>The media object to consider.</p> </dd> </dl> </div> </div> <div class="refreturn"><b><a name="d0e272"></a>Returns</b> <p>0 or 1</p> </div> </div> <div class="refentry" lang="en"> <div class="refentry.separator"> <hr> </div><a name="template.check.id.unique"></a><div class="titlepage"> <div></div> <div></div> </div> <div class="refnamediv"> <h2></h2> <p>check.id.unique — Warn users about references to non-unique IDs</p> </div> <div class="refsynopsisdiv"> <h2></h2><pre class="synopsis"><xsl:template name="check.id.unique"> <xsl:param name="linkend"/> ... </xsl:template></pre></div> <div class="refdescription"><a name="d0e286"></a> <p>If passed an ID in <tt class="varname">linkend</tt>, <tt class="function">check.id.unique</tt> prints a warning message to the user if either the ID does not exist or the ID is not unique. </p> </div> </div> <div class="refentry" lang="en"> <div class="refentry.separator"> <hr> </div><a name="template.check.idref.targets"></a><div class="titlepage"> <div></div> <div></div> </div> <div class="refnamediv"> <h2></h2> <p>check.idref.targets — Warn users about incorrectly typed references</p> </div> <div class="refsynopsisdiv"> <h2></h2><pre class="synopsis"><xsl:template name="check.idref.targets"> <xsl:param name="linkend"/> <xsl:param name="element-list"/> ... </xsl:template></pre></div> <div class="refdescription"><a name="d0e306"></a> <p>If passed an ID in <tt class="varname">linkend</tt>, <tt class="function">check.idref.targets</tt> makes sure that the element pointed to by the link is one of the elements listed in <tt class="varname">element-list</tt> and warns the user otherwise. </p> </div> </div> <div class="refentry" lang="en"> <div class="refentry.separator"> <hr> </div><a name="template.copyright.years"></a><div class="titlepage"> <div></div> <div></div> </div> <div class="refnamediv"> <h2></h2> <p>copyright.years — Print a set of years with collapsed ranges</p> </div> <div class="refsynopsisdiv"> <h2></h2><pre class="synopsis"><xsl:template name="copyright.years"> <xsl:param name="years"/> <xsl:param name="print.ranges" select="1"/> <xsl:param name="single.year.ranges" select="0"/> <xsl:param name="firstyear" select="0"/> <xsl:param name="nextyear" select="0"/> ... </xsl:template></pre></div> <div class="refdescription"><a name="d0e329"></a> <p>This template prints a list of year elements with consecutive years printed as a range. In other words: </p> <pre class="screen"><year>1992</year> <year>1993</year> <year>1994</year></pre> <p>is printed <span class="quote">1992-1994</span>, whereas: </p> <pre class="screen"><year>1992</year> <year>1994</year></pre> <p>is printed <span class="quote">1992, 1994</span>. </p> <p>This template assumes that all the year elements contain only decimal year numbers, that the elements are sorted in increasing numerical order, that there are no duplicates, and that all the years are expressed in full <span class="quote">century+year</span> (<span class="quote">1999</span> not <span class="quote">99</span>) notation. </p> </div> <div class="refparameter"><b><a name="d0e364"></a>Parameters</b> <div class="variablelist"> <dl> <dt><span class="term">years</span></dt> <dd> <p>The initial set of year elements.</p> </dd> <dt><span class="term">print.ranges</span></dt> <dd> <p>If non-zero, multi-year ranges are collapsed. If zero, all years are printed discretely. </p> </dd> <dt><span class="term">single.year.ranges</span></dt> <dd> <p>If non-zero, two consecutive years will be printed as a range, otherwise, they will be printed discretely. In other words, a single year range is <span class="quote">1991-1992</span> but discretely it's <span class="quote">1991, 1992</span>. </p> </dd> </dl> </div> </div> <div class="refreturn"><b><a name="d0e392"></a>Returns</b> <p>This template returns the formatted list of years.</p> </div> </div> <div class="refentry" lang="en"> <div class="refentry.separator"> <hr> </div><a name="template.find.path.params"></a><div class="titlepage"> <div></div> <div></div> </div> <div class="refnamediv"> <h2></h2> <p>find.path.params — Search in a table for the "best" match for the node</p> </div> <div class="refsynopsisdiv"> <h2></h2><pre class="synopsis"><xsl:template name="find.path.params"> <xsl:param name="node" select="."/> <xsl:param name="table" select="''"/> <xsl:param name="location"> <xsl:call-template name="xpath.location"> <xsl:with-param name="node" select="$node"/> </xsl:call-template> </xsl:param> ... </xsl:template></pre></div> <div class="refdescription"><a name="d0e406"></a> <p>This template searches in a table for the value that most-closely (in the typical best-match sense of XSLT) matches the current (element) node location. </p> </div> </div> </div> </body> </html> --- NEW FILE: ChangeLog --- 2002-03-09 Jirka Kosek <ko...@us...> * Makefile: Removed hardcoded reference for XSLT processor as it is already set in Makefile.incl. Fixed typo in DocBook DTD URI. 2001-08-06 Norman Walsh <nw...@us...> * Makefile: Documentation and documentation generation tweaks 2001-06-20 Norman Walsh <nw...@us...> * Makefile: Use XT again (neither Saxon nor Xalan work) 2001-04-03 Norman Walsh <nw...@us...> * .cvsignore, Makefile: New file. |
From: Frederic D. <de...@us...> - 2004-06-01 11:14:16
|
Update of /cvsroot/fudaa/fudaa_devel/aide/xml/xsl/docsrc/tools In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20425/xml/xsl/docsrc/tools Added Files: profile-chain.png ChangeLog profiling.xml Log Message: xml pour l'aide en docbook --- NEW FILE: profile-chain.png --- (This appears to be a binary file; contents omitted.) --- NEW FILE: profiling.xml --- <?xml version='1.0' encoding='iso-8859-1'?> <!DOCTYPE article PUBLIC '-//OASIS//DTD DocBook XML V4.1.2//EN' 'http://www.oasis-open.org/docbook/xml/4.0/docbookx.dtd'> <article> <articleinfo> <title>Profiling DocBook documents</title> <subtitle>An easy way to personalize your content for several target audiences</subtitle> <author> <firstname>Jirka</firstname> <surname>Kosek</surname> <affiliation> <address>E-mail: <email>ji...@ko...</email> <otheraddr>Web: <ulink url="http://www.kosek.cz">http://www.kosek.cz</ulink> </otheraddr> </address> </affiliation> </author> <copyright> <year>2001</year> <holder>Jiří Kosek</holder> </copyright> <releaseinfo role="meta"> $Id: profiling.xml,v 1.1 2004/06/01 11:13:56 deniger Exp $ </releaseinfo> </articleinfo> <section> <title>Introduction</title> <para>There are many situations when we need to generate several versions of document with slightly different content from the single source. User guide for program with both Windows and Linux port will differ only in several topics related to installation and configuration. It would be futile to create and maintain two different documents in sync. Another real world example – in addition to standard documentation we can have guide enriched with problem solutions from help-desk. It also may be better to store these information in one document in order to make them absolutely synchronized.</para> <para>Several high-end editing tools have built in support for profiling. User can easily add target audiences for any part of document in a simple to use dialog box. User can select desired target audience before printing or generation of other output formats. Software will automatically filter out excess parts of document and pass rest of it to rendering engine. However, if your budget is limited you can not use commercial solutions. In the following text I will show you simple but flexible profiling solution based on freely available technologies.</para> </section> <section> <title>$0 solution</title> <para>In the document we mark parts targeted for particular platform or user group. When generating final output version of document we must do profiling i.e. personalization for particular target audience. Only some parts of document are processed. DocBook has built in support for marking document parts – on almost every element you can use attributes like <sgmltag class="attribute">os</sgmltag>, <sgmltag class="attribute">userlevel</sgmltag> and <sgmltag class="attribute">arch</sgmltag>. We can store identifier of operating system, user group or hardware architecture here. You can also store profiling information into some general use attribute like <sgmltag class="attribute">role</sgmltag>. <xref linkend="ex.doc"/> shows how document with profiling information might look like.</para> <example id="ex.doc"> <title>Sample DocBook document with profiling information</title> <programlisting><![CDATA[<?xml version='1.0' encoding='iso-8859-1'?> <!DOCTYPE chapter PUBLIC '-//OASIS//DTD DocBook XML V4.1.2//EN' 'http://www.oasis-open.org/docbook/xml/4.0/docbookx.dtd'> <chapter> <title>How to setup SGML catalogs</title> <para>Many existing SGML tools are able to map public identifiers to files on your local file system. Mapping is specified in so called catalog file. List of catalog files to use is stored in environment variable <envar>SGML_CATALOG_FILES</envar>.</para> <para os="unix">On Unix systems you can set this variable by invoking command <command>export SGML_CATALOG_FILES=/usr/lib/catalog</command> on command line. If you want maintain value of the variable between sessions, place this command into startup file, e.g. <filename>.profile</filename>.</para> <para os="win">In Windows NT/2000 you can set environment variable by issuing command <menuchoice><guimenu>Start</guimenu> <guisubmenu>Settings</guisubmenu> <guisubmenu>Control Pannel</guisubmenu> <guimenuitem>System</guimenuitem></menuchoice>. Then select <guilabel>Advanced</guilabel> card in the dialog box and click on the <guibutton>Environment Variables...</guibutton> button. Using the <guibutton>New</guibutton> button you can add new environment variable into your system.</para> </chapter>]]></programlisting> </example> <para>DocBook documents are often processed by freely available DSSSL and XSL stylesheets. Most DocBook users who want profiling starts with creation of customization layer which filters out some parts of document. This approach has several serious disadvantages. First, you must create profiling customization for all output formats as they are using different stylesheets. This mean that you must maintain same code on several places or do some dirty tricks with importing several stylesheets into one stylesheet.</para> <para>Second drawback is more serious. If you override templates to filter out documents, you can get almost correct output in a single run of stylesheet. If you will closely look on generated output, you will recognize that in the table of contents there are entries for items which should be completely removed by profiling. Similar problems are in several other places – e.g. skipped auto generated numbers for tables, pictures and so on. To correct this one should change all stylesheet code which generates ToC, cross-references and so on to ignore filtered content. This is very complicated task and will disallow you to easily upgrade to new versions of stylesheets.</para> <para>Thus we must use different approach. Profiling should be totally separate step which will filter out some parts of original document and will create new correct DocBook document. When processed with any DocBook tool or stylesheet you will get always correct output from the new standalone document now. Big advantage of this method is compatibility with all DocBook tools. Filtered document is normal DocBook document and it does not require any special processing. Of course, there is also one disadvantage – formating is now two stage process – first you must filter source document and in second step you could apply normal stylesheets on result of filtering. This may be little bit inconvenient for many users, but whole task can be very easily automated by set of shell scripts or batch files or whatever else. Starting from version 1.50 of XSL stylesheets you can do profiling in one step together with normal stylesheet processing.</para> <figure> <title>Profiling stream</title> <mediaobject> <imageobject> <imagedata fileref="profile-chain.png" format="PNG"/> </imageobject> </mediaobject> </figure> <para>When implementing filter, you can use many different approaches and tools. I decided to use XSLT stylesheet. Writing necessary filter is very easy in XSLT and many users have XSLT processor already installed. Profiling stylesheet is part of standard XSL stylesheets distribution and can be found in file <filename>profiling/profile.xsl</filename>.</para> </section> <section> <title>Usage</title> <para>If you want to generate Unix specific guide from our sample document (<xref linkend="ex.doc"/>) you can do it in the following way. (We assume, that command <command>saxon</command> is able to run XSLT processor on your machine. You can use your preffered XSLT processor instead.)</para> <screen><command>saxon</command> <option>-o</option> unixsample.xml sample.xml profile.xsl "os=unix"</screen> <para>We are processing source document <filename>sample.xml</filename> with profiling stylesheet <filename>profile.xsl</filename>. Result of transformation is stored in file <filename>unixsample.xml</filename>. By setting parameter <parameter>os</parameter> to value <literal>unix</literal>, we tell that only general and Unix specific parts of document should be copied to the result document. If you will look at generated result, you will notice that this is correct DocBook document:</para> <programlisting><![CDATA[<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" "http://www.oasis-open.org/docbook/xml/4.0/docbookx.dtd"> <chapter> <title>How to setup SGML catalogs</title> <para>Many existing SGML tools are able to map public identifiers to files on your local file system. Mapping is specified in so called catalog file. List of catalog files to use is stored in environment variable <envar>SGML_CATALOG_FILES</envar>.</para> <para os="unix">On Unix systems you can set this variable by invoking command <command moreinfo="none">export SGML_CATALOG_FILES=/usr/lib/catalog</command> on command line. If you want maintain value of the variable between sessions, place this command into startup file, e.g. <filename moreinfo="none">.profile</filename>.</para> </chapter>]]></programlisting> <para>It is same as the input document, only Windows specific paragraph is missing. Same procedure can be used to get Windows specific version of document. The result generated by profiling stylesheet have correct document type declaration (DOCTYPE). Without it some tools would not be able to process them further. On the result of filtering you can run common tools – for example DSSSL or XSL stylesheets.</para> <para>Stylesheet support several attributes for specifying profiling values. They are summarized in the following list.</para> <variablelist> <varlistentry> <term><parameter>profile.os</parameter></term> <listitem> <para>This parameter is used for specifying operating system (<sgmltag class="attribute">os</sgmltag> attribute) for which you want get profiled version of document.</para> </listitem> </varlistentry> <varlistentry> <term><parameter>profile.userlevel</parameter></term> <listitem> <para>This parameter is used for specifying user level (<sgmltag class="attribute">userlevel</sgmltag> attribute) for which you want get profiled version of document.</para> </listitem> </varlistentry> <varlistentry> <term><parameter>profile.arch</parameter></term> <listitem> <para>This parameter is used for specifying hardware architecture (<sgmltag class="attribute">arch</sgmltag> attribute) for which you want get profiled version of document.</para> </listitem> </varlistentry> <varlistentry> <term><parameter>profile.condition</parameter></term> <term><parameter>profile.conformance</parameter></term> <term><parameter>profile.revision</parameter></term> <term><parameter>profile.revisionflag</parameter></term> <term><parameter>profile.security</parameter></term> <term><parameter>profile.vendor</parameter></term> <term><parameter>profile.role</parameter></term> <term><parameter>profile.lang</parameter></term> <listitem> <para>These parameters can be used to specify target profile for corresponding attributes.</para> </listitem> </varlistentry> <varlistentry> <term><parameter>profile.attribute</parameter></term> <listitem> <para>Name of attribute on which profiling should be based. It can be used if profiling information is stored in other attributes then <sgmltag class="attribute">os</sgmltag>, <sgmltag class="attribute">userlevel</sgmltag> and <sgmltag class="attribute">arch</sgmltag>.</para> </listitem> </varlistentry> <varlistentry> <term><parameter>profile.value</parameter></term> <listitem> <para>This parameter is used for specifying value for attribute selected by <parameter>attr</parameter> parameter.</para> <para>E.g. setting <literal>profile.attribute=os</literal> and <literal>profile.value=unix</literal> is same as setting <literal>os=unix</literal>.</para> </listitem> </varlistentry> <varlistentry> <term><parameter>profile.separator</parameter></term> <listitem> <para>Separator for multiple target audience identifiers. Default is <literal>;</literal>.</para> </listitem> </varlistentry> </variablelist> <para>Current implementation is able to handle multiple profiling targets in one attribute. In that case you must separate identifiers by semicolon:</para> <programlisting><![CDATA[<para os="unix;mac;win">...</para>]]></programlisting> <para>It is possible to use different separator than semicolon by setting <parameter>sep</parameter> parameter. There cann't be spaces between separator and target names.</para> <para>You can also perform profiling based on several profiling attributes in a single step as stylesheet can handle all parameters simultaneously. For example to get hypothetical guide for Windows beginners, you can run profiling like this:</para> <screen><command>saxon</command> <option>-o</option> xsample.xml sample.xml profile.xsl "profile.os=win" "profile.userlevel=beginner"</screen> <para>As you can see above described profiling process can be used to substitute SGML marked sections mechanism which is missing in XML.</para> </section> <section> <title>Single pass profiling</title> <para>If you are using XSL stylesheets version 1.50 and later with EXSLT enabled XSLT processor (Saxon, xsltproc, Xalan) you can do profiling and transformation to HTML or FO in a single step. To do this use stylesheet with prefix <filename>profile-</filename> instead of normal one (e.g. <filename>profile-docbook.xsl</filename>, <filename>profile-chunk.xsl</filename> or <filename>profile-htmlhelp.xsl</filename>). For example to get HTML version of profiled document use:</para> <screen><command>saxon</command> <option>-o</option> sample.html sample.xml .../html/profile-docbook.xsl "profile.os=win" "profile.userlevel=beginner"</screen> <para>No additional processing is necessary. If you want to use profiling with your customized stylesheets import profiling-able stylesheet instead of normal one.</para> </section> <section> <title>Conclusion</title> <para>Profiling is necessary in many larger DocBook applications. It can be quite easily implemented by simple XSLT stylesheet which is presented here. This mechanism can also be used to simulate behavior of marked sections known from SGML.</para> </section> </article> <!-- Keep this comment at the end of the file Local variables: mode: xml sgml-shorttag:t End: --> --- NEW FILE: ChangeLog --- 2002-03-14 Norman Walsh <nw...@us...> * profiling.xml: Fix linkend typo 2002-03-03 Jirka Kosek <ko...@us...> * profiling.xml: Put documentation in sync with new profiling stylesheets. 2001-10-13 Norman Walsh <nw...@us...> * Makefile: Changes to make the documentation work with the new litprog sources 2001-08-13 Norman Walsh <nw...@us...> * Makefile: New file. 2001-07-31 Jirka Kosek <ko...@us...> * profile-chain.png, profiling.xml: New file. |