Re: What does Firefox do with schemaLocation?
Axel Hecht <[email protected]> Tue, 23 Jan 2007 13:35:34 +0100
| Newsgroups | gmane.comp.mozilla.devel.layout.xslt |
|---|---|
| Message-ID | <[email protected]> |
We do nothing with schema. Axel C.W.Holeman II wrote: > http://www.stylusstudio.com/w3c/schema0/NS.htm#NS states: > >> Note that the schemaLocation is only a hint and some processors and >> applications will have reasons to not use it. > > I am using: > > Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.1) Gecko/20061204 > Firefox/2.0.0.1 > > What does Firefox do with schemaLocation? > > http://emle.sourceforge.net/emle020000/testa_lab_001.xml > > <?xml version="1.0"?> > <?xml-stylesheet type="text/xsl" > href="http://emle.sourceforge.net/emle020000/testa_lab.xsl"?> > <testa:lab xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="testa > http://emle.sourceforge.net/emle020000/testa.xsd" > xmlns:testa="http://emle.sourceforge.net/testa"> > <testa:shape>TEST_RECTANGLE</testa:shape> > <testa:shape>TEST_bad</testa:shape> > <testa:shape>TEST_PIE</testa:shape> > </testa:lab> > > > http://emle.sourceforge.net/emle020000/testa_lab.xsl > > <?xml version="1.0"?> > <xsl:stylesheet version="1.0" > xmlns:xsl="http://www.w3.org/1999/XSL/Transform" > xmlns:testa="http://emle.sourceforge.net/testa"> > <xsl:output method="html" encoding="iso-8859-1" /> > <xsl:template match="/testa:lab"> > <HTML> > <HEAD> > <TITLE>Test A</TITLE> > </HEAD> > <BODY> > <H1>Test A</H1> > <xsl:apply-templates select="testa:shape" /> > </BODY> > </HTML> > </xsl:template> > <xsl:template match="testa:shape"> > <H2>Lab [<xsl:value-of select="." />]</H2> > <P /> > </xsl:template> > </xsl:stylesheet> > > > http://emle.sourceforge.net/emle020000/testa.xsd > > <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" > xmlns:testa="http://emle.sourceforge.net/testa" > targetNamespace="http://emle.sourceforge.net/testa"> > <xs:element name="testa:lab" type="testa:LabType"/> > <xs:complexType name="testa:LabType"> > <xs:sequence> > <xs:element name="testa:shape" type="testa:ShapeType"/> > </xs:sequence> > </xs:complexType> > <xs:simpleType name="testa:ShapeType"> > <xs:restriction base="xs:string"> > <xs:enumeration value="TEST_RECTANGLE"/> > <xs:enumeration value="TEST_PIE"/> > </xs:restriction> > </xs:simpleType> > </xs:schema> >