Skip to main content

default_priority

Function default_priority 

Source
pub fn default_priority(pattern: &Expr) -> f64
Expand description

Compute the default priority for a pattern AST node. The XSLT spec defines four buckets:

Pattern shapePriority
prefix:local, @prefix:local0
NCName:*, @NCName:*-0.25
*, @*, node(), text(), comment(), pi()-0.5
anything more specific (paths, predicates, etc.)0.5