Posted 11 years ago by Andrey Zenchenko
Version: 12.1.0304
Avatar

Hi,
I wonder can I hide DOCTYPE instruction in an xhtml document?

More details:
We have our own temporary DTD that includes HTML entities.
If we duplicate DTD rules in XSD schema it works fine for intelli sence and validation.
But we cannot include HTML entity definitions into the XSD (it's impossible as I know, but I can be wrong).
The main goal is to hide our own temporary DTD from user's eyes.
If we just remove the DOCTYPE instruction from a document HTML the entities become invalid for validator.

The question is:
Can we hide DOCTYPE instruction from a document and remain HTML entities valid for the XML validator?

Thank you.

Comments (2)

Answer - Posted 11 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Andrey,

SyntaxEditor supports "code fragments", meaning for parsing purposes you can designate header and footer text that are pre- and post-pended to the document's text, but don't actually render in the document.  Perhaps that feature would help you out?  Check out the sample on code fragments.


Actipro Software Support

Posted 11 years ago by Andrey Zenchenko
Avatar

Thank you very much, it works!

The latest build of this product (v24.1.0) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.