- From: Jonathan Borden <jonathan@openhealth.org>
- Date: Mon, 22 Sep 2003 09:27:05 -0400
- To: Jeremy Carroll <jjc@hpl.hp.com>
- Cc: www-webont-wg@w3.org
Jeremy Carroll wrote: >What does: > ><?xml-stylesheet href="http://www.w3.org/2002/06/rdfs2html.xsl" >type="application/xml"?> > >do? > > The xml-stylesheet PI is specified in <http://www.w3.org/TR/xml-stylesheet/>. This is a way give a browser (or other user-agent) a link to a stylesheet with which to perform a transform (e.g.. on the client and e.g. to display the XML document in a format suitable for the user). I've seen the type="text/xsl" used to associate an XSLT with the XML document. I presume "application/xml" is also used here to specify that the stylesheet is in fact an XSLT. By inspecting the href, one gets the idea that the RDFS is intended to be transformed into HTML for human readability. I'd note that XML PIs are generally not intended to affect the "semantics" (quotes intended) of the XML document, rather are intended to transmit application specific information such as for rendering, tidbits for server software etc. In specific PIs do not affect the validity of a document i.e. are not constrainable by DTDs or XSDs or RELAXNGs. Jonathan
Received on Monday, 22 September 2003 09:27:19 UTC