Skip to content

Commit b3bc4b0

Browse files
JessicaJHeeangelozerr
authored andcommitted
Update documentation for generating RELAX NG from XML
Signed-off-by: Jessica He <jhe@redhat.com>
1 parent c65a047 commit b3bc4b0

File tree

3 files changed

+16
-2
lines changed

3 files changed

+16
-2
lines changed

docs/BindingWithGrammar.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,4 +137,12 @@ When an unbound XML file is open, a Document Type Definition/DTD file can be gen
137137

138138
With the cursor on the first opening tag, use `Ctrl + .` or `Quick Fix...` or the lightbulb that appears and select "Generate foo.dtd and bind with *" to create the file in the the same directory.
139139

140-
![GenerateDTDFromXML](./images/BindingWithGrammar/GenerateDTDFromXML.gif)
140+
![GenerateDTDFromXML](./images/BindingWithGrammar/GenerateDTDFromXML.gif)
141+
142+
#### Generate RELAX NG from XML
143+
144+
When an unbound XML file is open, a RELAX NG schema can be generated from the opening tag in the XML file.
145+
146+
With the cursor on the first opening tag, use `Ctrl + .` or `Quick Fix...` or the lightbulb that appears and select "Generate foo.rng and bind with RelaxNG" to create the file in the the same directory.
147+
148+
![GenerateRelaxNGFromXML](./images/BindingWithGrammar/GenerateRelaxNGFromXML.gif)

docs/Features/RelaxNGFeatures.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,4 +141,10 @@ The following file, `addressBook.xml`, references `addressBook.rng` using the `x
141141
<email></email>
142142
</card>
143143
</addressBook>
144-
```
144+
```
145+
146+
# Generate RELAX NG from XML
147+
148+
When an unbound XML file is open, a RELAX NG schema can be generated from the opening tag in the XML file.
149+
150+
See: [Generate RELAX NG from XML](../BindingWithGrammar.md#generate-relax-ng-from-xml).
183 KB
Loading

0 commit comments

Comments
 (0)