xsl-list
[Top] [All Lists]

Re: [xsl] Help deciphering someone else's XML schema

2006-04-04 13:39:57
A little more information:

I found XSI.  Here's the definition:

2.6.3 xsi:schemaLocation, xsi:noNamespaceSchemaLocation

The xsi:schemaLocation and xsi:noNamespaceSchemaLocation attributes can be
used in a document to provide hints as to the physical location of schema
documents which may be used for ·assessment·. See How schema definitions are
located on the Web (§4.3.2) for details on the use of these attributes.

[source:
http://www.w3.org/TR/2004/PER-xmlschema-1-20040318/#xsi_schemaLocation]

The urn is the Universal Resourse Name.

I still don't get why we need stuff like
xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet".  I mean, do we
*need* a spreadsheet in all the XML/XSL??

Michael 

-----Original Message-----
From: Anthony Ettinger [mailto:aettinger(_at_)sdsualumni(_dot_)org] 
Sent: Tuesday, April 04, 2006 3:13 PM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [SPAM] Re: [xsl] Help deciphering someone else's XML schema

xsi is "xml schema instance".

I believe the namespace declarations xmlns:rr="" have to 
reference a unique but valid url.
Typically something like xmlns:rr="http://www.somecompany/RRml";



On 4/4/06, Gosselin, Michael 
<Michael(_dot_)Gosselin(_at_)athenadiagnostics(_dot_)com> wrote:
Hi,

I'm looking at some XSLT and XSD code from another company.  The 
second line of the XML is the following:

<rr:CReport xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xmlns:rr="urn:Correlagen:RightReport"
xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet"
xsi:schemaLocation="urn:Correlagen:RightReport">

I'm a little rusty (well, very rusty) with the XML, XSD and XSLT 
namespaces, and could use a little help deciphering that line.

When I take that file and put it into EditiX, and create a Schema 
(.xsd) file, I get some errors with validation.  They read:

Invalid 'name' attribute value 'ss:Type': 'The ':' character, 
hexadecimal value 0x3A, at position 2 within the name, 
cannot be included in a name.'.

file:///usr/local/XSV/xsvlog/tmpbN14RIuploaded:143:7
<file:///usr/local/XSV/xsvlog/tmpbN14RIuploaded:143:7> : Invalid per
cvc-attribute.1.2: attribute type check failed for {None}:name: 
ss:Type does not match pattern [^:]*

(two different validators).

So, if someone can point me in the right direction for 
deciphering the 
namespaces and what xsi: means, and why I'm getting some 
errors with 
validators, I'd appreciate it.

Note that these files are created externally, and I can't 
change them.

Thanks,

Michael Gosselin
Athena Diagnostics, Inc.
(508) 756-2886 x3708
(800) 394-4493 x3708




--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--




--
Anthony Ettinger
Signature: http://chovy.dyndns.org/hcard.html

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>