\hypertarget{elementQName}{}\subsection{Example xs:QName}\label{elementQName}
This example defines a qname 'eg:foobar', with a prefix 'eg' defined as \href{http://example.com#.}{\tt http://example.com\#.}



\begin{DocInclude}\begin{verbatim}<?xml version="1.0" encoding="UTF-8"?>
<qname xmlns="http://example.org/" xmlns:eg="http://example.com#">eg:foobar</qname>
\end{verbatim}
\end{DocInclude}


The corresponding xml schema is as follows:



\begin{DocInclude}\begin{verbatim}<?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>
\end{verbatim}
\end{DocInclude}


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



\begin{DocInclude}\begin{verbatim}# 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 .
\end{verbatim}
\end{DocInclude}
 