General XMetaL Discussion
scotth June 27, 2013 at 1:30 pm
How To Style A Text NodeJune 27, 2013 at 1:30 pmParticipants 0Replies 1Last Activity 9 years, 7 months ago
Is there a way to style an individual text node (not its containing element) in XMetaL/XMAX 6.0? My customer is wanting me to support some processing instructions that indicate a font style. Below is an example of what they are doing. Unfortunately, they are unwilling to convert these to elements in hopes of making things easier.
Here is some red text.Derek Read June 27, 2013 at 5:13 pm
Reply to: How To Style A Text NodeJune 27, 2013 at 5:13 pm
There are ways to style arbitrary portions of text with newer versions of XMetaL Author but that requires the use of some as of yet undocumented APIs and the script required to implement it can be fairly complicated (we have also only been sharing this information with partners to date). I believe 7.0 is required, 8.0 is preferred, and I have not yet tried these APIs with XMAX, just Author.
In this case, assuming your XML will be exactly as shown, it would be easiest to style the PI itself as XMetaL (both XMAX and Author) supports PI styling (our own extension to CSS). See the following post http://forums.xmetal.com/index.php/topic,24.0.html
- You must be logged in to reply to this topic.