sylvain 02/03/03 13:10:28 Modified: src/documentation/xdocs index.xml overview.xml src/documentation/xdocs/installing index.xml Added: src/documentation/xdocs/css document.css Log: New CSS2 for wysiwyg edition of documents. Revision Changes Path 1.7 +1 -0 xml-cocoon2/src/documentation/xdocs/index.xml Index: index.xml =================================================================== RCS file: /home/cvs/xml-cocoon2/src/documentation/xdocs/index.xml,v retrieving revision 1.6 retrieving revision 1.7 diff -u -r1.6 -r1.7 --- index.xml 23 Feb 2002 23:28:15 -0000 1.6 +++ index.xml 3 Mar 2002 21:10:27 -0000 1.7 @@ -1,4 +1,5 @@ <?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet type="text/css" href="css/document.css"?> <!DOCTYPE document PUBLIC "-//APACHE//DTD Documentation V1.0//EN" "dtd/document-v10.dtd"> <document> <header> 1.2 +1 -0 xml-cocoon2/src/documentation/xdocs/overview.xml Index: overview.xml =================================================================== RCS file: /home/cvs/xml-cocoon2/src/documentation/xdocs/overview.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- overview.xml 3 Jan 2002 12:31:01 -0000 1.1 +++ overview.xml 3 Mar 2002 21:10:27 -0000 1.2 @@ -1,4 +1,5 @@ <?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet type="text/css" href="css/document.css"?> <!DOCTYPE document PUBLIC "-//APACHE//DTD Documentation V1.0//EN" "dtd/document-v10.dtd"> <document> 1.1 xml-cocoon2/src/documentation/xdocs/css/document.css Index: document.css =================================================================== /*=============================================================== A CSS stylesheet for the document DTD, version 1.0 $Id: document.css,v 1.1 2002/03/03 21:10:27 sylvain Exp $ PURPOSE: This CSS allows wysiwyg edition of xdocs with a CSS2-enabled XML editor. TYPICAL INVOCATION: <?xml-stylesheet type="text/css" href="css/document.css"?> AUTHORS: Sylvain Wallez <[EMAIL PROTECTED]> ===============================================================*/ /*=============================================================== General definitions ===============================================================*/ /* A person is a general human entity */ person { content: paragraph(attr(name) ' (' attr(email) ')'); } /*=============================================================== General definitions ===============================================================*/ /*==================================================== Phrase Markup ====================================================*/ /* Code (typically monospaced) */ code { font-family: monospace; } /* Strong (typically bold) */ strong { font-weight: bold; } /* Emphasis (typically italic) */ em { font-style: italic; } /* Superscript (typically smaller and higher) */ sup { font-size: .83em; vertical-align: super; } /* Subscript (typically smaller and lower) */ sub { font-size: .83em; vertical-align: sub; } /*==================================================== Hypertextual Links ====================================================*/ /* Hard replacing link (equivalent of <a ...>) */ link { color: #0086b2; text-decoration: underline; } link:after { font-style: italic; content: ' [' attr(href) '] ' } /* Hard window replacing link (equivalent of <a ... target="_top">) */ jump { color: #0086b2; text-decoration: underline; } jump:after { font-style: italic; content: ' [jump:' attr(href) '] ' } /* Hard window forking link (equivalent of <a ... target="_new">) */ fork { color: #0086b2; text-decoration: underline; } fork:after { font-style: italic; content: ' [fork:' attr(href) '] ' } /* Anchor point (equivalent of <a name="...">) */ anchor:after { content: icon(right-target); color: olive; vertical-align: text-top; } /* Soft link between processed pages (no equivalent in HTML) */ connect { color: #0086b2; text-decoration: underline; } connect:after { font-style: italic; content: ' [connect:' attr(href) '] ' } /*==================================================== Specials ====================================================*/ /* Breakline Object (typically forces line break) */ br:before { content: "\A"; color: olive; } /* Image Object (typically an inlined image) */ img { content: image(attr(src), attr(width), attr(height)) ' [' attr(src) ' - ' attr(alt) ']'; } /* Image Icon (typically an inlined image placed as graphical item) */ icon { content: image(attr(src), attr(width), attr(height)); } /*=============================================================== Blocks definitions ===============================================================*/ /*==================================================== Paragraphs ====================================================*/ /* Text Paragraph (normally vertically space delimited) */ p { display: block; margin-top: 1.33ex; margin-bottom: 1.33ex; } /* Source Paragraph (normally space is preserved) */ source { display: block; white-space: pre; background-color: #E0E0E0; border: thin solid gray; font-family: monospace; } /* Note Paragraph (normally shown encapsulated) */ note { display: block; font-style: italic; } note:before { content: 'Note : '; } /* Fixme Paragraph (normally not shown) */ fixme { display: block; font-style: italic; color: green; } fixme:before { font-style: italic; color: green; content: 'FIXME [' attr(author) ']'; } /*==================================================== Tables ====================================================*/ /* Table element */ table { display: table; border: 1 outset gray; margin-top: 1.33ex; margin-bottom: 1.33ex; } /* The table title */ caption { display: table-caption; font-style: italic; text-align: center; margin-left: 2ex; margin-right: 2ex; margin-top: 2; margin-bottom: 2; } /* The table row element */ tr { display: table-row; /*text-align: eval(attr(align));*/ } /* The table row header element */ /* The table row description element */ th, td { display: table-cell; text-align: eval(attr(align)); vertical-align: eval(attr(valign)); row-span: eval(attr(rowspan)); column-span: eval(attr(colspan)); border: 1 inset gray; padding: 2; } th { font-weight: bold; } /*==================================================== Lists ====================================================*/ /* Unordered list (typically bulleted) */ /* Ordered list (typically numbered) */ /* Simple list (typically with no mark) */ ul, ol, sl { display: block; margin-top: 1.33ex; margin-bottom: 1.33ex; } /* List item */ li { display: block; } ul > li { margin-left: 2.5ex; } ul > li:before { display: marker; content: disc; } ol > li { margin-left: 6ex; } ol > li:before { display: marker; content: counter(n, decimal); font-weight: bold; } /* Nested lists */ ul ul, ul ol, ul sl, ol ul, ol ol, ol sl, sl ul, sl ol, sl sl { margin-top: 0; margin-bottom: 0; } /* Definition list (typically two-column) */ dl { display: block; margin-left: 2ex; margin-top: 1.33ex; margin-bottom: 1.33ex; } /* Definition term */ dt { display: block; font-weight: bold; } /* Definition description */ dd { display: block; margin-left: 4ex; } /*==================================================== Special Blocks ====================================================*/ /* Image Block (typically a separated and centered image) */ figure { display: block; text-align: center; /* XXE can display images, but unfortunaltely not concatenate strings to handle the organisation of images in the documentation directory content: url('../'attr(src), attr(width), attr(height)) '\A[' attr(alt) ']'; */ content: '[' attr(alt) ' - ' attr(src) ']'; } /*=============================================================== Document ===============================================================*/ document { display: block; } /*==================================================== Header ====================================================*/ header { display: block; background-color: #EEF; border: thin solid blue; padding: .6ex; } title { display: block; text-align: center; font-weight: bold; font-size: 2em; color: maroon; margin-top: .67ex; margin-bottom: .67ex; } subtitle { display: block; text-align: center; font-weight: bold; font-size: 1.5em; color: maroon; margin-bottom: .67ex; } version { display: block; } version:before { content: 'Version : '; } type { display: block; } type:before { content: 'Type : '; } authors { display: block; } authors:before { text-align: center; content: paragraph('Authors : '); } /* 'person' in 'authors' */ authors > person { display: block; text-align: center; } notice { display: block; } notice:before { content: 'Notice :'; } abstract { display: block; } abstract:before { content: 'Abstract :'; } /*==================================================== Body ====================================================*/ body { display: block; } s1, s2, s3, s4 { display:block; } s2, s3, s4 { margin-left:10pt; } s1:before, s2:before, s3:before, s4:before { margin-top:0.5em; display: block; text-align: left; font-weight: bold; color: #0086b2; content: paragraph(attr(title)); } s2:before, s3:before, s4:before { margin-left:10pt; } s1:before { font-size:2em; } s2:before { font-size:1.6em; } s3:before { font-size:1.2em; } /*==================================================== Footer ====================================================*/ footer { } legal { } 1.10 +1 -0 xml-cocoon2/src/documentation/xdocs/installing/index.xml Index: index.xml =================================================================== RCS file: /home/cvs/xml-cocoon2/src/documentation/xdocs/installing/index.xml,v retrieving revision 1.9 retrieving revision 1.10 diff -u -r1.9 -r1.10 --- index.xml 2 Mar 2002 04:56:42 -0000 1.9 +++ index.xml 3 Mar 2002 21:10:28 -0000 1.10 @@ -1,4 +1,5 @@ <?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet type="text/css" href="../css/document.css"?> <!DOCTYPE document PUBLIC "-//APACHE//DTD Documentation V1.0//EN" "../dtd/document-v10.dtd"> <document>
---------------------------------------------------------------------- In case of troubles, e-mail: [EMAIL PROTECTED] To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]