Skip to main content

xeStylesheet

xeStylesheet = 7

Example

function IsStylesheetInstruction(Node: TXMLNode): Boolean;
begin
Result := (Node <> nil) and (Node.ElementType = xeStylesheet);
end;

Usage

xeStylesheet identifies an xml-stylesheet processing instruction that Velox XML stores as declaration-like attributes without applying a stylesheet.

Additional Technical Info

xeStylesheet identifies an <?xml-stylesheet ...?> processing instruction. NativeXML gives this target a specialised declaration-like node rather than the general xeInstruction representation.

The node has the fixed name xml-stylesheet and parses pseudo-attributes such as type and href into its attribute list. It preserves and serializes the instruction; it does not fetch, trust, execute or apply the referenced stylesheet. An href is input data and must not by itself authorize network or file access.

The node is excluded from element-only accessors but can appear in raw document traversal. Generic Name and Value access does not provide a validated stylesheet-instruction editor, and the script wrapper exposes no dedicated stylesheet API. Inspect its raw attributes carefully if integration behavior depends on them.

As with other parsed nodes, the reference is document-owned and becomes invalid after clear, reload or destruction.

External references

Created 2026-07-15