Game Development Reference
In-Depth Information
Figure 9.14. Result of XSL (HTML) view XML Notepad.
Let's use XML Notepad, load duck.dae, and then on the XSL Output tab load
theaboveXSLTandexecuteit(see Figure9.14 ) .Youhavebuiltyourselfquitea
powerful tool to build HTML pages that can be modified to provide any information
extracted from a COLLADA document.
It is also possible to add the reference to the XLST directly in the COLLADA
document, which will have no impact on the content and how it is loaded by ap-
plications, but it will be used by web browsers to display the processed document
rather than the raw XML data when opening a COLLADA document with a web
browser. Simply add the line <?xml-stylesheet type="text/xsl" href="list-
images.xslt"?> right after the {<?xml version="1.0"?>verb line in a COL-
LADA document, and it will show the XSL output in Mozilla 1 , just like an HTML
pagewillbereformattedbyCSSinawebbrowser(see Figure9.15 ) .
Figure 9.15. Associate XSL to .dae to allow automatic processing when opened in a web
browser.
1 Some browsers such as Internet Explorer may not accept the .dae extension and will require
the file to be renamed .xml.
 
Search WWH ::




Custom Search