< Day Day Up > |
In most cases, you want a translator to change the markup so that Dreamweaver can display it, but you want to save the original markup, not the changes. For such cases, Dreamweaver provides special XML tags in which to wrap translated content and to refer to the original code. When you use these XML tags, the contents of the original attributes are duplicated in Code view. If the file is saved, the original, untranslated markup is written to the file. The untranslated content is what Dreamweaver displays in Code view. The syntax of the XML tags is shown in the following example: <MM:BeginLock translatordocEmphasis">translatorClass" type="tagNameOrType" depFiles="dependentFilesList" orig="encodedOrignalMarkup"> Translated content <MM:EndLock> The italicized values in this example have the following significance:
The following example shows the locked portion of code that might be generated from the translation of the server-side include <!--#include virtual="/footer.html" -->: <MM:BeginLock translator type="ssi" depFiles="C:\sites\webdev\footer.html" orig="%3C!--#include virtual=%22/footer.html%22%20--%3E"> <!-- begin footer --> <CENTER> <HR SIZE=1 NOSHADE WIDTH=100%> <BR> [<A TARGET="_top" HREF="/">home</A>] [<A TARGET="_top" HREF="/products/">products</A>] [<A TARGET="_top" HREF="/services/">services</A>] [<A TARGET="_top" HREF="/support/">support</A>] [<A TARGET="_top" HREF="/company/">about us</A>] [<A TARGET="_top" HREF="/help/">help</A>] </CENTER> <!-- end footer --> <MM:EndLock> |
< Day Day Up > |