NanoContainer
  1. NanoContainer
  2. NANO-176

component instance class spec. in XML builder script is invalid with respect to DTD

    Details

    • Type: Bug Bug
    • Status: Open Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 1.0
    • Fix Version/s: None
    • Component/s: xml
    • Labels:
      None
    • Environment:
      nano 1.0
    • Number of attachments :
      0

      Description

      Component instance class spec. in XML builder script is invalid with respect to its DTD:

      <!DOCTYPE container PUBLIC "-//NanoContainer//DTD NanoContainer XML 1.0//EN" "http://nanocontainer.org/dtd/nanocontainer-xml-1_0.dtd">
      <container>
      <component-instance key="com.example.MyService">
      <com.example.MyServiceImpl/> <!-- This line is invalid -->
      </component-instance>
      </container>

      P.S. yes, such construction cannot be validated with DTD, but this one could be:
      <component-instance key="com.example.MyService">
      <instance-specification class="com.example.MyServiceImpl"/>
      </component-instance>

        Activity

        Jörg Schaible made changes -
        Field Original Value New Value
        Project NanoContainer IoC [ 11011 ] NanoContainer [ 10121 ]
        Key NANOIOC-3 NANO-176
        Hide
        Jörg Schaible added a comment -

        Moved issue to correct project and set proper field values.

        Show
        Jörg Schaible added a comment - Moved issue to correct project and set proper field values.
        Jörg Schaible made changes -
        Component/s xml [ 11632 ]
        Affects Version/s 1.0 [ 10148 ]
        Hide
        Mauro Talevi added a comment -

        It depends on the component-instance-factory that is used - in this case it could be the XStreamComponentInstanceFactory.
        Unfortunately, this makes it difficult to allow XML validation.
        I'll look into a way of expressing it so that XML validators don't choke.

        Show
        Mauro Talevi added a comment - It depends on the component-instance-factory that is used - in this case it could be the XStreamComponentInstanceFactory. Unfortunately, this makes it difficult to allow XML validation. I'll look into a way of expressing it so that XML validators don't choke.

          People

          • Assignee:
            Unassigned
            Reporter:
            Maros Ivanco
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: