lmandel | 528034a | 2005-12-07 07:43:11 +0000 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <?NLS type="org.eclipse.help.contexts"?> |
| 3 | <!-- /******************************************************************************* |
| 4 | * Copyright (c) 2000, 2005 IBM Corporation and others. |
| 5 | * All rights reserved. This program and the accompanying materials |
| 6 | * are made available under the terms of the Eclipse Public License v1.0 |
| 7 | * which accompanies this distribution, and is available at |
| 8 | * http://www.eclipse.org/legal/epl-v10.html |
| 9 | * |
| 10 | * Contributors: |
| 11 | * IBM Corporation - initial API and implementation |
| 12 | *******************************************************************************/ --> |
| 13 | |
| 14 | <contexts> |
lmandel | b5e1ef5 | 2006-01-23 08:17:13 +0000 | [diff] [blame] | 15 | <context id="csh_outer_container"> |
| 16 | <description/> |
| 17 | </context> |
| 18 | <context id="xmlc0101"> |
| 19 | <description>Select the <b>Create XML file from a DTD file</b> radio button to create an XML file from a DTD file. The file will contain the selected root element, populated with any required elements and attributes.</description> |
| 20 | <topic href="../org.eclipse.wst.xmleditor.doc.user/topics/tcrexdtd.html" label="Generating XML files from DTDs"/> |
| 21 | </context> |
| 22 | <context id="xmlc0102"> |
| 23 | <description>Select the <b>Create XML file from an XML schema file</b> radio button to create an XML file from an XML schema. The file will contain the selected root element of the XML schema and any elements or attributes it contains.</description> |
| 24 | <topic href="../org.eclipse.wst.xmleditor.doc.user/topics/tcrexxsd.html" label="Generating XML files from XML schemas"/> |
| 25 | </context> |
| 26 | <context id="xmlc0103"> |
| 27 | <description>Select the <b>Create XML file from scratch</b> radio button if you want to create an XML file not associated with any XML schema or DTD file.</description> |
| 28 | <topic href="../org.eclipse.wst.xmleditor.doc.user/topics/tcretxml.html" label="Creating empty XML files"/> |
| 29 | </context> |
| 30 | <context id="xmlc0500"> |
| 31 | <description>Select the <b>Select file from workbench</b> radio button if you want to create your XML file from a DTD or XML schema that is in the workbench. |
lmandel | 528034a | 2005-12-07 07:43:11 +0000 | [diff] [blame] | 32 | |
lmandel | b5e1ef5 | 2006-01-23 08:17:13 +0000 | [diff] [blame] | 33 | Select the <b>Select XML Catalog entry</b> radio button if you want to use a file listed in the XML Catalog to create your XML file.</description> |
| 34 | </context> |
| 35 | <context id="xmlc0410"> |
| 36 | <description>The root element of an XML file is the element that contains all other elements in that file. All elements defined in the DTD or all global elements defined in the XML schema are included in this list. |
lmandel | 528034a | 2005-12-07 07:43:11 +0000 | [diff] [blame] | 37 | |
lmandel | b5e1ef5 | 2006-01-23 08:17:13 +0000 | [diff] [blame] | 38 | <b>Note</b>: If you do not have any elements in your DTD or any global elements in your XML schema, you cannot create an XML file from it.</description> |
| 39 | <topic href="../org.eclipse.wst.xmleditor.doc.user/topics/tcrexdtd.html" label="Generating XML files from DTDs"/> |
| 40 | <topic href="../org.eclipse.wst.xmleditor.doc.user/topics/tcrexxsd.html" label="Generating XML files from XML schemas"/> |
| 41 | </context> |
| 42 | <context id="xmlc0441"> |
| 43 | <description>If you select this check box, both mandatory and optional attributes will be generated. If you do not select it, only mandatory attributes will be generated.</description> |
| 44 | <topic href="../org.eclipse.wst.xmleditor.doc.user/topics/tcrexdtd.html" label="Generating XML files from DTDs"/> |
| 45 | <topic href="../org.eclipse.wst.xmleditor.doc.user/topics/tcrexxsd.html" label="Generating XML files from XML schemas"/> |
| 46 | </context> |
| 47 | <context id="xmlc0442"> |
| 48 | <description>If you select this check box, both the mandatory and optional elements will be generated. If you do not select it, only mandatory elements will be generated.</description> |
| 49 | <topic href="../org.eclipse.wst.xmleditor.doc.user/topics/tcrexdtd.html" label="Generating XML files from DTDs"/> |
| 50 | <topic href="../org.eclipse.wst.xmleditor.doc.user/topics/tcrexxsd.html" label="Generating XML files from XML schemas"/> |
| 51 | </context> |
| 52 | <context id="xmlc0443"> |
| 53 | <description>If you select this check box, the first choice of a required choice will be generated in your XML file. |
lmandel | 528034a | 2005-12-07 07:43:11 +0000 | [diff] [blame] | 54 | |
lmandel | b5e1ef5 | 2006-01-23 08:17:13 +0000 | [diff] [blame] | 55 | For example, if you have the following code in your source file: |
lmandel | 528034a | 2005-12-07 07:43:11 +0000 | [diff] [blame] | 56 | |
lmandel | b5e1ef5 | 2006-01-23 08:17:13 +0000 | [diff] [blame] | 57 | <b><choice> <element name="a" type="string> <element name="b" type="integer> </choice></b> |
lmandel | 528034a | 2005-12-07 07:43:11 +0000 | [diff] [blame] | 58 | |
lmandel | b5e1ef5 | 2006-01-23 08:17:13 +0000 | [diff] [blame] | 59 | and you select this check box, an element such as the following will be created in your XML file: |
lmandel | 528034a | 2005-12-07 07:43:11 +0000 | [diff] [blame] | 60 | |
lmandel | b5e1ef5 | 2006-01-23 08:17:13 +0000 | [diff] [blame] | 61 | <b><a>hello</a></b> </description> |
| 62 | <topic href="../org.eclipse.wst.xmleditor.doc.user/topics/tcrexdtd.html" label="Generating XML files from DTDs"/> |
| 63 | <topic href="../org.eclipse.wst.xmleditor.doc.user/topics/tcrexxsd.html" label="Generating XML files from XML schemas"/> |
| 64 | </context> |
| 65 | <context id="xmlc0444"> |
| 66 | <description>If you select this check box, any elements and attributes generated will be filled with sample data, such as <b><text>EmptyText</text>.</b> Otherwise, they will be empty - that is, <b><text></text>.</b> </description> |
| 67 | <topic href="../org.eclipse.wst.xmleditor.doc.user/topics/tcrexdtd.html" label="Generating XML files from DTDs"/> |
| 68 | <topic href="../org.eclipse.wst.xmleditor.doc.user/topics/tcrexxsd.html" label="Generating XML files from XML schemas"/> |
| 69 | </context> |
| 70 | <context id="xmlc0210"> |
| 71 | <description>The System ID value corresponds to the URI (physical location) of the DTD file. The Public ID value can refer to a DTD entry in an XML Catalog.</description> |
| 72 | <topic href="../org.eclipse.wst.xmleditor.doc.user/topics/tcrexdtd.html" label="Generating XML files from DTDs"/> |
| 73 | </context> |
| 74 | <context id="xmlc0220"> |
| 75 | <description>The System ID value corresponds to the URI (physical location) of the DTD file. The Public ID value can refer to a DTD entry in an XML Catalog.</description> |
| 76 | <topic href="../org.eclipse.wst.xmleditor.doc.user/topics/tcrexdtd.html" label="Generating XML files from DTDs"/> |
| 77 | </context> |
lmandel | 528034a | 2005-12-07 07:43:11 +0000 | [diff] [blame] | 78 | </contexts> |