Quote:
Originally Posted by theducks
Code:
//*[name()='h1' or name()='h2']
|
So I would have to manually change 1.1, 2.1, 3.1, ... to h2? I don't object, but I am not sure whether or not it's possible for an ODT document in LibreOffice. (at least I couldn't find how)
Is there a way to to a exclude something from an XPath match?
In Regex I would match
Code:
Chapter \d*(?!.)|Chapter \d*\.(?!1)\d*
and thus exclude the subchapters I don't want to have a page break on.
From what I can see XPath is too limited in features to do that though.