You import an XML file of phrases using the Import Phrases dialog box in Developer Studio.
The import phrases XML file must conform to
phrase_import.dtd
, found in the Oracle Commerce
MDEX Engine
conf/dtd
directory. Here is a simple example of a
phrase file that conforms to
phrase_import.dtd
:
<?xml version="1.0" encoding="UTF-8" standalone="no" ?> <!DOCTYPE PHRASE_IMPORT SYSTEM "phrase_import.dtd"> <PHRASE_IMPORT> <PHRASE>Napa Valley</PHRASE> <PHRASE>low tannin</PHRASE> </PHRASE_IMPORT>
To import phrases from an XML file:
Create the phrases XML file, using the format in the example above. You can create the file in any way you like. For example, you can type phrases into the file using an XML editor, or you can perform an XSLT transform on a phrase file in another format, and so on.
To maintain naming consistency with other Oracle Commerce project files and their corresponding DTD files, you may choose to name your file
phrase_import.xml
.Double-click Automatic Phrasing to display the Automatic Phrasing editor.
In the Import Phrases dialog box, either type the path to your phrases file or click the Browse button to locate the file.
Click OK on the Import Phrases dialog box.
The Messages pane displays the number of phrases read in from the XML file.
The project's
phrases.xml
configuration file is updated with the
new phrases.
Keep in mind that if you import a newer version of an
import_phrases.xml
file, the most recent import
overwrites phrases from any previous import. All phrases you want to import
should be contained in a single XML file.