See http://www.w3.org/TR/xmlschema-0/#UnqualLocals

Since the SCR schema uses the default of unqualified for 
elementFormDefault and  attributeFormDefault, the namespace prefix of scr 
MUST only be specified for the component element. All other elements and 
attributes for document MUST not specify the prefix.

If the Felix SCR requires contained elements to use the scr prefix, it 
would seem to require non well-formed XML document which is bad.

I am no XML expert, so perhaps I misread the XML schema spec. Corrections 
welcome.
-- 

BJ Hargrave
Senior Technical Staff Member, IBM
OSGi Fellow and CTO of the OSGi Alliance
[EMAIL PROTECTED]

office: +1 386 848 1781
mobile: +1 386 848 3788





From:
Carsten Ziegeler <[EMAIL PROTECTED]>
To:
OSGi Developer Mail List <[email protected]>
Date:
2008/08/20 02:56 AM
Subject:
[osgi-dev] Correct XML format for SCR?



Hi,

over at the Apache Felix list we have a discussion about what the
correct format of the XML for SCR is? The issue is about the use of
namespaces.
The spec clearly states that a namespace prefix should be used as soon
as you have more than one component element. The uncertainty is now
about the inner elements of the component element. Should they use the
prefix as well or not?

While the Apache Felix implementation requires that the inner elements
have the namespace prefix as well, it seems (I haven't confirmed this
myself) that the equinox ds implementation expects the opposite.

Regards
Carsten
-- 
Carsten Ziegeler
[EMAIL PROTECTED]
_______________________________________________
OSGi Developer Mail List
[email protected]
https://mail.osgi.org/mailman/listinfo/osgi-dev

_______________________________________________
OSGi Developer Mail List
[email protected]
https://mail.osgi.org/mailman/listinfo/osgi-dev

Reply via email to