Re: The interpretation of script

David Carlisle scripsit:

> the other way of course to get consistent parsing would be to have an  
> element that parsed the inline script in "foreign-content" xml-like  
> mode, but I'm not sure if it would be possible to get this enough like  
> xml to be worth it (you'd need at least a way of setting the initial  
> default namespace cf math and svg setting their respective namespaces)
> but namespace processing is so deeply ingrained into xslt, I'm not sure  
> an xslt with restricted namespace processing wouldn't just be confusing  
> (and I don't suggest adding unrestricted namespace processing to 
> text/html)

So if you want XSLT, put it in a script element and let the JavaScript shim
parse it.

-- 
John Cowan      cowan@ccil.org
        "Not to know The Smiths is not to know K.X.U."  --K.X.U.

Received on Monday, 17 January 2011 23:12:51 UTC