- From: David Carlisle <davidc@nag.co.uk>
- Date: Fri, 26 Jun 2020 15:58:25 +0100
- To: Neil Soiffer <soiffer@alum.mit.edu>, "public-mathml4@w3.org" <public-mathml4@w3.org>
Received on Friday, 26 June 2020 14:58:45 UTC
On 26/06/2020 00:47, Neil Soiffer wrote: > Could you send to the group the xpath that replaces "@arg1" in the > first 'notation' in: > > <mrow notation="binomial(@arg1, @arg1)"> > <mo>(</mo> > <mfrac thickness="0pt"> > <msup notation="power(@arg1,@arg2)" arg='arg1'> > <mi arg="arg1">n</mi> > <mn arg="arg2">2</mn> > </msup> > <mi arg="arg2">m</mi> > </mfrac> > <mo>)</mo> > </mrow> > > basically find [arg='arg1'] but stopping when an 'arg' attr or > 'notation' attr has been found. > > Thanks, > > Neil > various ways for example .//@arg[.='arg1'] except .//*[@notation]/*//@arg It would need to be a bit longer with error checking (eg if there were no arg1 or more than 1 at the top level) but I think we can assume valid input in this context) David Disclaimer The Numerical Algorithms Group Ltd is a company registered in England and Wales with company number 1249803. The registered office is: Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom. This e-mail has been scanned for all viruses and malware, and may have been automatically archived by Mimecast Ltd, an innovator in Software as a Service (SaaS) for business.
Received on Friday, 26 June 2020 14:58:45 UTC