On Aug 30, 2005, at 1:10 PM, David Fedoruk wrote:
I See.. so the Tsunami warning center doesn't' understand XML schema
either
No, it does understand XML schema.
Here is the line defining this document as XML
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
Here is the namespace definition (xmlns) which defines "cap" as a
namespace and the schema can be found at the url provided (have a look).
<cap:alert xmlns:cap="http://www.incident.com/cap/1.0">
Here is the first item under the document's root (which is alert)
according to the defined schema
<cap:identifier>NOAA-NWS-WCATWC-2005-08-30T04:31:00Z</cap:identifier
and have missed the style sheet they need to produce for
browsers to be able to read it.
Right. They did not provide a style sheet. Even if they did, a
stylesheet does not have to convert to HTML. What you want is a
stylesheet that converts that XML into HTML so the browser can render
it.
I've encountered XML schema before but never used xsl....
So I could produce a style sheet that would render that document if I
chose to do it.... then a browser could use that as it uses a standard
external css.
Yea, write your own stylesheet -- http://www.w3schools.com/xsl/
default.asp
I would not equate how a browser uses CSS to how it uses XSLT. In the
case of Safari, the browser reads the xml, finds the referenced xsl,
and applies the transformation using the included xsl library http://
xmlsoft.org/XSLT/. Safari then displays the result. If you're running
Tiger, you can do this using the tool xsltproc.
I'm in the middle of doing this right now. Camino and Safari both
transform my xml according to the stylesheet I defined. Make is much
easier just refreshing the browser.
Marc
_______________________________________________
Camino mailing list
[email protected]
http://mozdev.org/mailman/listinfo/camino