Benson Cheng wrote:
> I am having some problems convert the following DTD to a schema,
> 
> <!ELEMENT Preamble (
>           standardName ,
>           standardVersion ) >
> 
> <!ATTLIST Preamble xmlns CDATA #FIXED
>           "http://www.rosettanet.org/RNIF/V02.00"; >

XML Schemas are namespace aware grammars. Therefore, you
don't have to explicitly set a namespace attribute in your
Schema grammar. Instead, just specify the target namespace
for the elements you're going to declare. For example:

  <xsd:schema xmlns:xsd='http://www.w3.org/2001/XMLSchema'
              targetNamespace='http://www.rosettanet.org/RNIF/V02.00'>

And then remove the explicit default attribute for the
namespace binding.

-- 
Andy Clark * [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to