I am attempting to undo the mess that the MicroSoft and its newsreader
created
in the posting.
"Martin Honnen" <ma*******@yaho o.dewrote in message
news:45******** **************@ newsspool3.arco r-online.net...
>C.W.Holeman II wrote:
>><emle xmlns:xsi="http ://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocat ion="noNamespac eSchemaLocation
http://emle.sourceforg e.net/emle020000/emle.xsd">
This either needs to be
xsi:schemaLocat ion="http://emle.sourceforg e.net
http://emle.sourceforg e.net/emle020000/emle.xsd"
or
xsi:noNamespac eSchemaLocation ="http://emle.sourceforg e.net/emle020000/emle.xsd"
In your schema you need to decide what you want to do,
if you want to define elements in the namespace
http://emle.sourceforge.net/emle020000/emle.xsd, then you need to add
elementFormDefa ult="qualified"
as an attribute on xsd:schema.
If you want to define elements in no namespace then remove the
targetNamespac e attribute.
I want to specify what elements are allowed and to constrain them as
defined in .xsd file. Also, I want to not use namespace prefixes at this
time. So, this is what I am trying:
In
http://emle.sourceforge.net/emle0200..._003_testb.xml :
xsi:noNamespace SchemaLocation= http://emle.sourceforg e.net/emle020000/emle_testb.xsd
In
http://emle.sourceforge.net/emle020000/emle_testb.xsd :
<xsd:schema xmlns:xsd="http ://www.w3.org/2001/XMLSchema"
xmlns="http://emle.sourceforg e.net">
I get the same clean results as before.
Then I again change the main element name from "emle" to "emelxxx" in the
.xsd file to force whatever kind of error will happen when the elements in
my
.xml do not match the ones defined in the .xsd file. I expect there to be
some difference but see no change in behavior.
http://emle.sourceforge.net/emle0200...03_testxxx.xml http://emle.sourceforge.net/emle020000/emle_testxxx.xsd
Below the .xml and .xsd file contents have been added:
http://emle.sourceforge.net/emle0200...003_testb.xml:
<?xml version="1.0" ?>
<?xml-stylesheet type="text/xsl"
href="http://emle.sourceforg e.net/emle020000/emle_lab.xsl"?>
<emle xmlns:xsi="http ://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespace SchemaLocation= "http://emle.sourceforg e.net/emle020000/emle_testb.xsd" >
<emleLab emleLNum="3">
<emleLTitle>Rec tangle/Fraction (XSLT)</emleLTitle>
<emleEquipmen t>
<emleETitle>Lef t Rectangle</emleETitle>
<emleEServer emleESType="EML E_EST_RECTANGLE " emleWidth="601"
emleHeight="101 " />
<emleEControl emleECEnable="p roperP1Fraction ">
<emleECNumerato r emleECMin="2" emleECMax="4" emleECStyle="ra dio"
emleECOrder="as cendingByCompon ent" />
<emleECDenomina tor emleECMin="2" emleECMax="4"
emleECStyle="ra dio" emleECOrder="as cendingByCompon ent" />
</emleEControl>
</emleEquipment>
<emleEquipmen t>
<emleETitle>Rig ht Rectangle</emleETitle>
<emleEServer emleESType="EML E_EST_RECTANGLE " emleWidth="601"
emleHeight="101 " />
<emleEControl emleECEnable="p roperP1Fraction ">
<emleECNumerato r emleECMin="1" emleECMax="9" emleECStyle="ra dio"
emleECOrder="as cendingByCompon ent" />
<emleECDenomina tor emleECMin="1" emleECMax="9"
emleECStyle="ra dio" emleECOrder="as cendingByCompon ent" />
</emleEControl>
</emleEquipment>
<emleLDoc>Thi s is the textual content of the lab "Rectangle/Fraction
(XSLT Test Case)".</emleLDoc>
</emleLab>
</emle>
http://emle.sourceforge.net/emle020000/emle_testb.xsd:
<xsd:schema xmlns:xsd="http ://www.w3.org/2001/XMLSchema"
xmlns="http://emle.sourceforg e.net">
<xsd:annotation >
<xsd:documentat ion xml:lang="en">
Electronic Mathematics Labatory Equipment schema for
emle.sourceforg e.net.
Copyright 2006.
http://emle.sourceforge.net/use.shtml All rights
reserved.
</xsd:documentati on>
</xsd:annotation>
<xsd:element name="emle" type="EmleEmleT ype"/>
<xsd:complexTyp e name="EmleEmleT ype">
<xsd:sequence >
<xsd:element name="emleLab" type="EmleLabTy pe"/>
</xsd:sequence>
</xsd:complexType >
<xsd:complexTyp e name="EmleLabTy pe">
<xsd:attribut e name="emleLNum" type="xsd:posit iveInteger"/>
<xsd:sequence >
<xsd:element name="emlsLTitl e" type="xsd:strin g"/>
<xsd:element name="emleEquip ment" type="EmleEquip mentType"/>
<xsd:element name="emleLDoc" type="xsd:strin g"/>
</xsd:sequence>
</xsd:complexType >
<xsd:complexTyp e name="EmleEquip mentType">
<xsd:sequence >
<xsd:element name="emleETitl e" type="xsd:strin g"/>
<xsd:element name="emleEServ er" type="EmleEServ erType"/>
<xsd:element name="emleECont rol" type="EmleECont rolType"/>
</xsd:sequence>
</xsd:complexType >
<xsd:complexTyp e name="EmleEServ erType">
<xsd:attribut e name="emleESTyp e" type="EmleESTyp eType"/>
<xsd:attribut e name="emleWidth " type="xsd:posit iveInteger"/>
<xsd:attribut e name="emleHeigh t" type="xsd:posit iveInteger"/>
</xsd:complexType >
<xsd:simpleTy pe name="EmleESTyp eType">
<xsd:restrictio n base="xsd:strin g">
<xsd:enumeratio n value="EMLE_EST _RECTANGLE"/>
<xsd:enumeratio n value="EMLE_EST _PIE"/>
</xsd:restriction >
</xsd:simpleType>
<xsd:complexTyp e name="EmleECont rolType">
<xsd:attribut e name="emleECEna ble" type="EmleECEna bleType"/>
<xsd:sequence >
<xsd:element name="emleECNum erator" type="EmleECWid getType"
minOccurs="0"/>
<xsd:element name="emleECDen ominator" type="EmleECWid getType"/>
</xsd:sequence>
</xsd:complexType >
<xsd:simpleTy pe name="EmleECEna bleType">
<xsd:restrictio n base="xsd:strin g">
<xsd:enumeratio n value="properFr action"/>
<xsd:enumeratio n value="properP1 Fraction"/>
<xsd:enumeratio n value="improper Fraction"/>
<xsd:enumeratio n value="mixedFra ction"/>
<xsd:enumeratio n value="wholeNum ber"/>
</xsd:restriction >
</xsd:simpleType>
</xsd:schema>
--
C.W.Holeman II |
cw***@Julian5Lo cals.com -5 |
http://JulianLocals.com/cwhii
To only a fraction of the human race does God give the privilege of
earning one's bread doing what one would have gladly pursued free, for
passion. I am very thankful. The Mythical Man-Month Epilogue/F.P.Brooks