Another mark up language? Why? What was wrong with HTML here?
I really would have liked that XHTML had won.
51–60 of 74 posts
Another mark up language? Why? What was wrong with HTML here?
I really would have liked that XHTML had won.
I believe this XML+JS thing was the only way to write apps for the old Apple TV. Various postings on the internet seem to suggest this from way back; the old SDK was probably only ever available to a select few handpicked appletv channel partners. What's new in the new tvOS SDK is that you can also write native apps in Objective-C/Swift, with a main() function that starts up UIKit, and with access to most of the norm…
So it's just HTML? Is there a reason (legal or otherwise) that they can't just use HTML?
Curious on why they chose an XML-like syntax rather than something like JSON
XML is a markup language that can describe formatted document structure well, json is best suited for things like data. For instance, this would be pretty painful to describe in json: Hello, dave Conversely, this is pretty painful to describe in XML: name dave
I believe this XML+JS thing was the only way to write apps for the old Apple TV. Various postings on the internet seem to suggest this from way back; the old SDK was probably only ever available to a select few handpicked appletv channel partners. What's new in the new tvOS SDK is that you can also write native apps in Objective-C/Swift, with a main() function that starts up UIKit, and with access to most of the norm…
Correct. You could actually modify the HTTP proxy settings and trusted certificates on the device and run your own applications using a man in the middle attack. Plex had a version that supported this: https://github.com/iBaa/PlexConnect
So it's just HTML? Is there a reason (legal or otherwise) that they can't just use HTML?
Just imagine all of the garish designs that would pop up.
It's better to restrict what is allowed in a custom markup language so that apple has better control over how it is rendered.
Another mark up language? Why? What was wrong with HTML here?
Earlier quoted context omitted.
It's not like HTML except for being XML which looks a lot like SGML. It's significantly more limited and more specific to the task than HTML. HTML comes with a lot of baggage that makes it unsuitable for a really specific use case.
It's not like HTML except for being XML which looks a lot like SGML. XML does not only look a lot like SGML, it is a proper subset of SGML: XML is an application profile or restricted form of SGML, the Standard Generalized Markup Language [ISO 8879]. By construction, XML documents are conforming SGML documents. http://www.w3.org/TR/xml11/
If any of the authors are reading, you really ought to consider putting this into an XML namespace. It can just be a mysterious invocation to most users today, but if you need to extend this in the future (inline SVG? inline XHTML?), it'll save your bacon to have done it in the first version.
Why would anyone add complexity to the syntax when you can make it simpler by removing the XML namespace? If you need to add namespaces, then you have already failed.
xmlns="http://apple.com/TVML/1.0"
(or similar) to the top-level tag.And absolutely nothing else has to change.
For that matter, even ignoring the issues of being able to embed foreign content later, just sheer versioning is a good enough reason to add that. And once you agree versioning is a good idea, why not do it via namespace? It's not like
version="1.0"
is materially different or shorter.If you're expressing a certain crabbiness about this being in XML in the first place, you'd have to take that up with Apple. But once you're using XML, you ought to take advantage of what comes with it.
Earlier quoted context omitted.
Implementing this with WebKit would be massive overkill; I'd say it's quite unlikely it's implemented with it.
If you implemented a web-like runtime from the ground up, you're saying you would write it from scratch? The runtime has JavaScript support, it does not have a brand new interpreter. The runtime has CSS support, it does not have a brand new interpreter. The runtime has HTML/XML syntax. Why would they write a brand new interpreter?
Mappping XML to a small subset of UI objects is so simple you don't really need to pull in an entire browser runtime for it.