[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: HTML5 and MathML and namespaces, oh my

Subject: Re: HTML5 and MathML and namespaces, oh my
From: "David Carlisle d.p.carlisle@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 6 Nov 2020 12:59:04 -0000
Re:  HTML5 and MathML and namespaces
On Fri, 6 Nov 2020 at 12:56, David Carlisle d.p.carlisle@xxxxxxxxx <
xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote:

>
> > <p> fires, but the template for MathML <mi> does not. What am I doing
> wrong?
>
> The template for mi does match,
>

Actually not, as Liam explained, you want m:mi , but having fixed that it
still wouldn't be used so the following text would then apply:

but you never applied templates to the mi, so the template isn't used.
> Your template on the parent p is using copy-of select=. so copies the
> source and doesn't apply templates to the children of the p.
>
> This is unrelated to namespaces, you would see the same if p and mi were
> in no-namespace and you removed the namespaces from the stylesheet.
>
> David
>

Incidentally I note that you are using a no-namespace p not an xhtml
namespace one, you can simply use a no-namespace mathml in the source (and
if you are generating html, also in the result) which simplifies things.



> XSL-List info and archive <http://www.mulberrytech.com/xsl/xsl-list>
> EasyUnsubscribe <http://lists.mulberrytech.com/unsub/xsl-list/2739265> (by
> email <>)

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.