On furrther thought I realize that xpath expressions are evaluated in no particular order. This is because the table used to look up semantic actions is hashed. In general, you don't have to worry about order. There are a few exceptions such as "newentries no", which should be at the beginning of a semantic-action file. I'm looking forward to seeing something by Heba on the list. John On Mon, Mar 24, 2014 at 02:24:10PM +0000, Keith Creasy wrote: > Michael. > > I was planning to have Heba fix this as she needs the experience. Maybe John > Boyer can check me on this but I believe the first math in the Semantic > action file is used so you could just arrange them from more specific to more > general to make it simpler. Otherwise then, yes, you'd have to be sure the > patterns were not redundant. > > > > -----Original Message----- > From: liblouis-liblouisxml-bounce@xxxxxxxxxxxxx > [mailto:liblouis-liblouisxml-bounce@xxxxxxxxxxxxx] On Behalf Of Michael > Whapples > Sent: Monday, March 24, 2014 9:55 AM > To: liblouis-liblouisxml@xxxxxxxxxxxxx > Subject: [liblouis-liblouisxml] One small question on XPATH > > Hello, > One use for XPATH semantic actions is to treat paragraphs inside lists and > tables differently to other paragraphs. > > I have the xpath expressions for detecting those working fine, but I have a > small question relating to it. > > The xpath expression is something like: > //xhtml:li/xhtml:p > However the normal semantic action for paragraphs is also defined: > para p > > My question is, should I change the paragraph semantic action file to exclude > p elements inside lists? > > Potentially at the moment these sets could overlap, can I rely on xpath > expressions being applied before normal semantic actions? > > Michael Whapples > For a description of the software, to download it and links to project pages > go to http://www.abilitiessoft.com > For a description of the software, to download it and links to > project pages go to http://www.abilitiessoft.com -- John J. Boyer; President, Chief Software Developer Abilitiessoft, Inc. http://www.abilitiessoft.com Madison, Wisconsin USA Developing software for people with disabilities For a description of the software, to download it and links to project pages go to http://www.abilitiessoft.com