, Issue 6; 04 Feb 2026

A quick hack to make exploring the QT4CG grammars a little easier.

[This is a bonus markup post to make up for the fact that I missed #MarkupMonday last week. (I’m not sure that’s really true, but I’m claiming it anyway.)]

What happened was, I was trying to work out how a particular XPath expression was being parsed. It wasn’t raising an error, but it also wasn’t giving me an answer that I understood. I went to the XPath specification and started trying to explore the grammar. It’s perfectly possible, but it seemed awkward.

The XPath grammar (and the XQuery, and XSLT Pattern grammars) are stored in XML. That means it’s easy to process them with XSLT. So I spent 20 minutes building a web of HTML pages from the productions. Then I realized it would…

Similar Posts

Loading similar posts...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help