> Being new to XML / XSL, I'm wondering if there's a way to invalidate an
> xml document based on how many times a specific element is parsed?
Interesting idea. **IN**validate? You mean make it spit blood on the
xth pass over the yth <PARA> in the zth <CHAPTER>? Not with existing
parsers, but it would be trivial with a processing language like
element PARA when parent is CHAPTER
do when occurrence of element is equal Y
and occurrence of parent of element is equal Z
reset N to file "bar"
open foo as "bar"
put foo "%d(N)"
do when counter N is greater-equal X
put #console "Get stuffed%n"
put #suppress "%c"
It's probably just as easy in Perl etc but Omnimark's syntax is simpler.