Example xs:QName

This example defines a qname 'eg:foobar', with a prefix 'eg' defined as http://example.com#.

<?xml version="1.0" encoding="UTF-8"?>
<qname xmlns="http://example.org/" xmlns:eg="http://example.com#">eg:foobar</qname>

The corresponding xml schema is as follows:

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://example.org/" >
        <xs:element name="qname" type="xs:QName" />     
</xs:schema>

The resulting RDF shows that the offending QName type has been dropped, and the expanded URI is a resource name.

# Base: http://example.org/elementQName.xml
@prefix ns1:     <http://example.org/def/> .
@prefix xs:      <http://www.w3.org/2001/XMLSchema> .
@prefix ns2:     <http://example.org/> .
@prefix rdf:     <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xs_:     <http://www.w3.org/2001/XMLSchema#> .
@prefix :        <#> .
@prefix eg:      <http://example.com#> .

<>    ns2:qname eg:foobar .

Generated on Mon Jun 18 16:02:38 2007 for Gloze by  doxygen 1.5.0