xsl-list
[Top] [All Lists]

Re: [xsl] HTML5 and MathML and namespaces, oh my

2020-11-05 21:18:19
On Fri, 2020-11-06 at 01:13 +0000, Chris Papademetrious
christopher(_dot_)papademetrious(_at_)synopsys(_dot_)com wrote:

  <xsl:template xmlns="http://www.w3.org/1998/Math/MathML";
match="mi">

i think you want,
<xsl:template xmlns:m="http://www.w3.org/1998/Math/MathML";
match="m:mi">

as the defaultnamespace for XPath expresions isn't the same as  the
default namespace for elements in the XSLT stylesheet.

Liam

-- 
Liam Quin, https://www.delightfulcomputing.com/
Available for XML/Document/Information Architecture/XSLT/
XSL/XQuery/Web/Text Processing/A11Y training, work & consulting.
Barefoot Web-slave, antique illustrations:  http://www.fromoldbooks.org
--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/1167547
or by email: xsl-list-unsub(_at_)lists(_dot_)mulberrytech(_dot_)com
--~--

<Prev in Thread] Current Thread [Next in Thread>