Programmatic access to author styles
Posted: Thu Jul 23, 2009 12:02 pm
Hi,
I have a number of requirements that relate to highlighting in author mode. Some of these have been succesfully implemented using alternative CSS styles sheets, however I see no obvious way of using this mechanism to implement the remaining requirements. An example of such a requiremenst is: 'Citation elements that have been automatically marked-up must be colour coded to indicate the level of certainty of the automatic match'. A brief explanation, a user opens a document and highlights some text and invokes one of my custom Operations which surrounds the selected text with an XML element, the operation then searches through the remainder of the document and identifies other pieces of text as needing the same XML, in each case there is an associated certainty that the new text is a correct match. The user needs to be informed, using text highlighting colours, of the various levels of certainty for each of the automatic matches. We, as far as possible, must avoid neccesitating changes to the document schema.
Have you any recommendations or inform ation that may assist? The ideal solution would be the ability to interact directly with Oxygens styling engine to enable me to create and (re)assign vitual style rules to arbitary elements without modifying the actual CSS or document file themselves; I don't suppose this is possible is it?
Many thanks for any assistance,
Simon.
I have a number of requirements that relate to highlighting in author mode. Some of these have been succesfully implemented using alternative CSS styles sheets, however I see no obvious way of using this mechanism to implement the remaining requirements. An example of such a requiremenst is: 'Citation elements that have been automatically marked-up must be colour coded to indicate the level of certainty of the automatic match'. A brief explanation, a user opens a document and highlights some text and invokes one of my custom Operations which surrounds the selected text with an XML element, the operation then searches through the remainder of the document and identifies other pieces of text as needing the same XML, in each case there is an associated certainty that the new text is a correct match. The user needs to be informed, using text highlighting colours, of the various levels of certainty for each of the automatic matches. We, as far as possible, must avoid neccesitating changes to the document schema.
Have you any recommendations or inform ation that may assist? The ideal solution would be the ability to interact directly with Oxygens styling engine to enable me to create and (re)assign vitual style rules to arbitary elements without modifying the actual CSS or document file themselves; I don't suppose this is possible is it?
Many thanks for any assistance,
Simon.