Class Part9DisplayListReader
Reads an S-100 Part 9 drawing-instruction display list from XML produced by an XSLT portrayal rule (used by S-124, S-129, S-421, etc.) and returns the unified DrawingInstruction model.
public static class Part9DisplayListReader
- Inheritance
-
Part9DisplayListReader
- Inherited Members
Remarks
The expected XML shape is the lower-camel-case form emitted by S-100 Part 9 portrayal stylesheets:
<displayList>
<pointInstruction>
<featureReference>...</featureReference>
<viewingGroup>...</viewingGroup>
<drawingPriority>...</drawingPriority>
<symbol reference="...">
<scaleFactor>1</scaleFactor>
<rotation>0</rotation>
</symbol>
</pointInstruction>
<lineInstruction> ... </lineInstruction>
<areaInstruction> ... </areaInstruction>
<textInstruction> ... </textInstruction>
</displayList>
Methods
Read(XDocument)
Parses the given XSLT-output document into drawing instructions. Unknown element names are skipped silently so the reader is tolerant of stylesheets that emit additional metadata.
public static IReadOnlyList<DrawingInstruction> Read(XDocument doc)
Parameters
docXDocument