This is a followup to this question.
I have several tags in a document with several semicolon separated style attributes. Right now I have
EDIT: Just in case real problem gets hide, I have simplified the stylesheet:
Output:
some text
Note: Simpler parsing with space normalization to match properties in an existencial comparison. Generating content without optimization (selecting no match, selecting match). "Stateful" or "stackful" named template for output nested elements. Either way there are two rules (identity and span
with @style
overwriting it) and two names templates (parser/tokenizer and generator of nested content)
Original stylesheet:
Note: Recursion paradise. Nested tokenizer for parsing style properties. "Stateful" template for nested content (and performance matching properties, by the way)