Skip to main content
1-Visitor
June 30, 2014
Question

Adding an LEP element to a DTD

  • June 30, 2014
  • 3 replies
  • 6070 views

Hi!

This might be a simple question, but I can't seem to find the answer. I need to add an LEP element to my DTD. I have tried several time to add it into the DTD, but after I re-complie the DTD nothing is in the element list. I am looking to add it within the para tag

I would really appreciate some help on this question. I

Thanks

Jay

3 replies

16-Pearl
July 2, 2014

Firstly, only SGML DTDs need compiling (you don't specify if you are using SGML or XML).

Secondly, you need to make sure the context is correct for your new LEP element. You can test that by editing a sample document file "by hand" in a text editor. Insert the <lep> or whatever where you think it belongs, then load the file into Arbortext. If it passes a completeness check then you know the DTD update worked.

if you have a good DTD but the new element is not appearing in the Enter key element list then it is possible that some sort of customisation might have "hijacked" the element list.

1-Visitor
July 2, 2014

Hi Jay!

For recompile the DTD properly, you have to delete the .ptd file in your project folder. After you delete this file, the new DTD will works.

12-Amethyst
July 5, 2014

Have you resolved your issue?

Did the posts assist you?

Do you see any errors in the log files found in the directory with the dtd?

Do you have a snippet of how the LEP was defined in the dtd and where the LEP is allowed in the structure?

1-Visitor
August 27, 2014

hi Timothy,

As Jay asks about asking LEP element into DTD, I need to add new elements and attributes related to them into Arbortext techinfo documents. Is it possible to explain me how can I do this.

I am not familiar about this subject so that I need step by step instruction about adding elements and attributes.

thanks in advanced,

Erol

12-Amethyst
August 27, 2014

First of all, is your DTD standardized or proprietary?

If it is a standardized DTD, you are not allowed to change it. The LEP must be automatically generated by the stylesheet.

If you are using a proprietary DTD, change is possible, but it must be acceptable to others involved in the SGML/XML project. You want to avoid any DTD change that causes existing documents to be out of context and existing scripting and configuration files to be incorrect.

There are online tutorials on DTD development, including www.w3schools.com/dtd/. Also, books on SGML and XML cover the subject.