Skip to main content
10-Marble
January 8, 2010
Question

XSD Import

  • January 8, 2010
  • 15 replies
  • 2878 views

I am in the process of creating a new XSD Schema. I'm using the xsd:import option to import tags from other schemas we are currently using.

Namespace prefixes are: ipc, mm, wm

Everything is working great until i tried to insert a <mm:table> tag that is referenced in one of the imported schemas. It gives me the correct wrapper tag but when it hits the required <mm:tgroup> tag it gives me an internal error saying that that <ipc:tgroup> tag is out of context. It is reading the <ipc:tgroup> tag instead of the <mm:tgroup> tag. I have tried this using a different XML editor and it inserts the tags as expected.

Any help to this matter would be greatly appreciated.

sarah

    15 replies

    10-Marble
    January 11, 2010
    I'm referring to the .dcf file. I'm not using styler.

    Here is what I have in the .dcf file. It only gives me the option for Table, Row and Cell elements.

    <tablemodeldefinitions>
    <customtablemodel name="mm:table">
    <table element="mm:table"/">
    <row element="mm:row">
    <cell element="mm:entry"/">
    </row>
    </customtablemodel>
    </tablemodeldefinitions>

    I'm trying to match it up to the table structure in the imported xsd file, which has a tgroup element.

    Sarah
    18-Opal
    January 11, 2010
    Did you try setting up your namespaced tgroup element as the table
    element? That might be what you need. In that case, the mm:tgroup would
    be the table element and the mm:table element would be considered a
    wrapper element for the table.

    Hmm. I just played around with this for a few minutes and I'm having
    trouble getting it to work too. I created a namespaced custom table and
    added it to a copy of axdocbook. I am seeing the same behavior you are,
    i.e. when I try to insert a custom table, the table editor tries to
    insert the wrong tgroup element for the wrapper, creating a context
    error.

    It seems to work OK with non-namespaced custom tables.

    At this point Dan is probably right, time to file this as a bug with PTC
    and see if they can sort it out for you.

    --Clay
    10-Marble
    January 11, 2010
    Thank you so much for trying. I will file the bug report and see what happens.

    sarah
    1-Visitor
    January 11, 2010
    Don't go directly to a bug report, file it as a support call and see if we have missed something. I don't know what the response time is supposed to be like on bugs, but it won't be anytime soon, so if there is a workaround or mistake in the setup, you are better off starting with support first. Let them confirm the problem and then link the support call in so there is added documentation. ..dan --------------------------------------------------------------------------- Danny Vint Specializing in Panoramic Images
    10-Marble
    January 11, 2010
    Will do. Thanks.

    sarah