Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

XSD Question Expand / Collapse
Author
Message
Posted Wednesday, October 17, 2012 12:01 PM


SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Wednesday, July 23, 2014 9:11 AM
Points: 7,128, Visits: 6,291
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 Administrator

Webpage: http://www.BrandieTarvin.net
LiveJournal Blog: http://brandietarvin.livejournal.com/
On LinkedIn!, Google+, and Twitter.

Freelance Writer: Shadowrun
Latchkeys: Nevermore, Latchkeys: The Bootleg War, and Latchkeys: Roscoes in the Night are now available on Nook and Kindle.
Post #1373983
Posted Wednesday, October 17, 2012 2:24 PM


SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Today @ 12:42 PM
Points: 7,118, Visits: 14,997
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?
Post #1374046
Posted Thursday, October 18, 2012 7:06 AM


SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Wednesday, July 23, 2014 9:11 AM
Points: 7,128, Visits: 6,291
Thanks, Matt. I appreciate the clarification.

Brandie Tarvin, MCITP Database Administrator

Webpage: http://www.BrandieTarvin.net
LiveJournal Blog: http://brandietarvin.livejournal.com/
On LinkedIn!, Google+, and Twitter.

Freelance Writer: Shadowrun
Latchkeys: Nevermore, Latchkeys: The Bootleg War, and Latchkeys: Roscoes in the Night are now available on Nook and Kindle.
Post #1374323
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse