Translating more than one attribute at a time
The mmTranslatedValue attribute can contain more than one valid attribute/value pair. Consider the following untranslated code:
<img <? if (dayType==weekday) then src="open.jpg" width="320" ¬
height="100" elsesrc="closed.jpg" width="100" height="320" ?> alt="We're open 24 ¬hours a day from12:01am Monday until 11:59pm Friday">
The following example shows how the translated markup might appear:
<img <? if (dayType==weekday) then src="open.jpg" width="320" ¬height="100" elsesrc="closed.jpg" width="100" height="320" ?>mmTranslatedValue="src=%22open.jpg%22 width=%22320%22 ¬
height=%22100%22" alt="We're open 24 hours a day from 12:01am Monday until 11:59pm ¬Friday">
The spaces between the attribute/value pairs in the mmTranslatedValue attribute are not encoded. Because Adobe Dreamweaver looks for these spaces when it attempts to render the translated value, each attribute/value pair in the mmTranslatedValue attribute must be encoded separately and then pieced back together to form the full mmTranslatedValue attribute. For an example of this process, see A simple attribute translator example.