XSD Question

  • Has anyone seen an XSD that does something like this:

    <element name="SystemCode" type="nskf:SystemCodeType" />

    I'm used to seeing (from SSIS generated .xsd files) items like this:

    <xs:element minOccurs="0" name="SystemCode" type="xs:string" />

    ...but the first one is kind of throwing me because it's making the type the same name as the element / attribute name. I don't even know what "nskf" is supposed to mean.

    Anyone have any links or definitions? My google fu is pulling up all sorts of information on XSD, none on NSKF + XSD.

    Brandie Tarvin, MCITP Database AdministratorLiveJournal Blog: http://brandietarvin.livejournal.com/[/url]On LinkedIn!, Google+, and Twitter.Freelance Writer: ShadowrunLatchkeys: Nevermore, Latchkeys: The Bootleg War, and Latchkeys: Roscoes in the Night are now available on Nook and Kindle.

  • Yup.. the nskf: represents a namespace alias. You should find more info as to what it actually is in the header of the schema file.

    <xs:schema xmlns:nskf="http://SomeUri.com">

    <xs:import namespace="http://SomeUri.com" schemalocation="some XSD filename.xsd"/>

    etc....

    </xs:schema>

    This is telling you that a bunch of types are defined in a separate XSD file ("some XSD filename.xsd"). Anywhere in this local schame that uses that nskf: alias is essentially pointing you to go find the definition in the OTHER file.

    note: it's an alias so the actual nskf is purely arbitrary (probably means something to whoever put the file together).

    ----------------------------------------------------------------------------------
    Your lack of planning does not constitute an emergency on my part...unless you're my manager...or a director and above...or a really loud-spoken end-user..All right - what was my emergency again?

  • Thanks, Matt. I appreciate the clarification.

    Brandie Tarvin, MCITP Database AdministratorLiveJournal Blog: http://brandietarvin.livejournal.com/[/url]On LinkedIn!, Google+, and Twitter.Freelance Writer: ShadowrunLatchkeys: Nevermore, Latchkeys: The Bootleg War, and Latchkeys: Roscoes in the Night are now available on Nook and Kindle.

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply