\hypertarget{attributeAnySimpleType}{}\subsection{Example: xs:any\-Simple\-Type}\label{attributeAnySimpleType}
This example shows how an untyped attribute 'bar' has a default type of xs:any\-Simple\-Type. All simple types are derived from this, so it occupies a similar place to rdfs:Literal.



\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="foo">
                <xs:complexType>
                        <xs:attribute name="bar"/>
                </xs:complexType>       
        </xs:element>
</xs:schema>
\end{verbatim}
\end{DocInclude}


An XMl instance of this schema is as follows:



\begin{DocInclude}\begin{verbatim}<?xml version="1.0"?>
<foo xmlns="http://example.org/" bar="foobar"/>
\end{verbatim}
\end{DocInclude}


The value 'foobar' is mapped to a literal of type rdfs:Literal.



\begin{DocInclude}\begin{verbatim}# Base: http://example.org/attributeAnySimpleType.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 :        <#> .

<>    ns2:foo [ ns1:bar "foobar"
              ] .
\end{verbatim}
\end{DocInclude}
 