How to automatically generate ID
Posted: Wed Mar 28, 2018 8:00 pm
Hello,
Fair warning, I am a beginner and not very knowledgeable. I only use Oxygen for research purposes.
I have an XML file defined by an XML schema. The XML file is just a text. I use elements to tag linguistic parameters that interest me. To give a simplified illustration:
<file>
<paragraph id="1">
<sentence id="1-1">This <verb id="1-1-1">is</verb> a sentence.</sentence>
<sentence id="1-2">This is a sentence.</sentence>
<sentence id="1-3">This is a sentence.</sentence>
</paragraph>
<paragraph id="2">
<sentence id="2-1">This is a sentence.</sentence>
<sentence id="2-2">This is a sentence.</sentence>
<sentence id="2-3">This is a sentence.</sentence>
</paragraph>
</file>
The 'id' attribute is defined as xs:ID. Since it is a very long text, I would like to automatically generate IDs based on this pattern.
I've read this page, but I don't see the "Generate IDs" when I right-click on an element in Author view. I can't find the ID Options dialog box either. I see the pages makes reference to DITA and DocBook specific menus, but I don't really understand what DITA or DocBook is and I can't find these menus.
I apologize if this is a very basic question.
Thank you for any help.
Fair warning, I am a beginner and not very knowledgeable. I only use Oxygen for research purposes.
I have an XML file defined by an XML schema. The XML file is just a text. I use elements to tag linguistic parameters that interest me. To give a simplified illustration:
<file>
<paragraph id="1">
<sentence id="1-1">This <verb id="1-1-1">is</verb> a sentence.</sentence>
<sentence id="1-2">This is a sentence.</sentence>
<sentence id="1-3">This is a sentence.</sentence>
</paragraph>
<paragraph id="2">
<sentence id="2-1">This is a sentence.</sentence>
<sentence id="2-2">This is a sentence.</sentence>
<sentence id="2-3">This is a sentence.</sentence>
</paragraph>
</file>
The 'id' attribute is defined as xs:ID. Since it is a very long text, I would like to automatically generate IDs based on this pattern.
I've read this page, but I don't see the "Generate IDs" when I right-click on an element in Author view. I can't find the ID Options dialog box either. I see the pages makes reference to DITA and DocBook specific menus, but I don't really understand what DITA or DocBook is and I can't find these menus.
I apologize if this is a very basic question.
Thank you for any help.