MarkupElement Class
Definition
- Assembly
- Sandcastle.Core.dll
This handles the markup element, a parent element that does not itself have any rendered
representation. It just clones the child nodes, removes any XML namespaces, and passes them through
as-is.
public class MarkupElement : Element
- Inheritance
-
MarkupElement
Remarks
This will allow build components and topic authors to add HTML or other elements such as
include elements for localized shared content to a pre-transformed document. This prevents it
from being removed as unrecognized content by the transformations.
An optional contentType attribute is supported that defines the type of content (Html,
OpenXml, or Markdown). This allows rendering of content based on the content type supported by the
presentation style.
When specified, presentation styles that only support Open XML will only render markup element content with a content type of "OpenXml". Presentation styles that only support Markdown will only render markup element content with a content type of "Html" or "Markdown". All others will only render the content if the type is "Html". If the attribute is omitted, the content will be rendered regardless of the presentation style's formats whether or not they actually support it.
Constructors
| MarkupElement() |
Fields
| Ddue |
The root MAML namespace (Inherited from Element) |
| NonBreakingSpace |
A non-breaking space (Inherited from Element) |
| Xlink |
The XML linking language namespace (Inherited from Element) |
| XmlSpace |
The xml:space name (Inherited from Element) |
Properties
| Name |
This read-only property returns the element name (Inherited from Element) |
Methods
| Render(TopicTransformationCore, XElement) |
Render the element to the topic |