<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>c-dev &#187; XML</title>
	<atom:link href="http://www.c-dev.ch/blog/tag/xml/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.c-dev.ch/blog</link>
	<description>fresh looking</description>
	<lastBuildDate>Mon, 09 Jan 2012 10:18:01 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Schema Indikatoren</title>
		<link>http://www.c-dev.ch/blog/2009/06/24/schema-indikatoren/</link>
		<comments>http://www.c-dev.ch/blog/2009/06/24/schema-indikatoren/#comments</comments>
		<pubDate>Wed, 24 Jun 2009 11:31:11 +0000</pubDate>
		<dc:creator>neisgei</dc:creator>
				<category><![CDATA[Entwicklung]]></category>
		<category><![CDATA[XML]]></category>

		<guid isPermaLink="false">http://www.c-dev.ch/blog/?p=218</guid>
		<description><![CDATA[<p>Reihenfolge der Elemente</p> All Reihefolge nicht relevant, Element muss einmal vorkommen Choice Wahl zwischen zwei Elementen Sequence Die Elemente müssen zwingen in der Reihenfolge vorkommen <p>Für das Vorkommen eines Elementes</p> <p>Die zwei Atribute können einem Element mitteilen, wie of es vorkommen kann:</p> maxOccurs minOccurs <p>Der Standardwert ist für beide 1, wenn das Attribute nicht angegeben <a href="http://www.c-dev.ch/blog/2009/06/24/schema-indikatoren/"> [Weiter lesen...]</a>]]></description>
			<content:encoded><![CDATA[<p><strong>Reihenfolge der Elemente</strong></p>
<ul>
<li>All<br />
Reihefolge nicht relevant, Element muss einmal vorkommen</li>
<li>Choice<br />
Wahl zwischen zwei Elementen</li>
<li>Sequence<br />
Die Elemente müssen zwingen in der Reihenfolge vorkommen</li>
</ul>
<p><strong>Für das Vorkommen eines Elementes</strong></p>
<p>Die zwei Atribute können einem Element mitteilen, wie of es vorkommen kann:</p>
<ul>
<li>maxOccurs</li>
<li>minOccurs</li>
</ul>
<p>Der Standardwert ist für beide 1, wenn das Attribute nicht angegeben wird. <em>unbound </em>kann für unendlich bei maxOccurs verwendet werden.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.c-dev.ch/blog/2009/06/24/schema-indikatoren/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>xs:element weiterführend</title>
		<link>http://www.c-dev.ch/blog/2009/06/24/xselement-weiterfuhrend/</link>
		<comments>http://www.c-dev.ch/blog/2009/06/24/xselement-weiterfuhrend/#comments</comments>
		<pubDate>Wed, 24 Jun 2009 10:43:13 +0000</pubDate>
		<dc:creator>neisgei</dc:creator>
				<category><![CDATA[Entwicklung]]></category>
		<category><![CDATA[XML]]></category>

		<guid isPermaLink="false">http://www.c-dev.ch/blog/?p=213</guid>
		<description><![CDATA[<p>Wie in einem anderen Beitrag bereits beschrieben, kann ein komplexws Element in vier kombinationen vorkommen. Leeres Element</p> <p>&#60;product prodid=&#8221;1345&#8243; /&#62;</p> <p>XSD</p> <p>&#60;xs:element name=&#8221;product&#8221;&#62; &#60;xs:complexType&#62; &#60;xs:attribute name=&#8221;prodid&#8221; type=&#8221;xs:positiveInteger&#8221;/&#62; &#60;/xs:complexType&#62; &#60;/xs:element&#62;</p> <p>Nur Elemente</p> <p>&#60;person&#62; &#60;firstname&#62;John&#60;/firstname&#62; &#60;lastname&#62;Smith&#60;/lastname&#62; &#60;/person&#62;</p> <p>XSD</p> <p>&#60;xs:element name=&#8221;person&#8221;&#62; &#60;xs:complexType&#62; &#60;xs:sequence&#62; &#60;xs:element name=&#8221;firstname&#8221; type=&#8221;xs:string&#8221;/&#62; &#60;xs:element name=&#8221;lastname&#8221; type=&#8221;xs:string&#8221;/&#62; &#60;/xs:sequence&#62; &#60;/xs:complexType&#62; &#60;/xs:element&#62;</p> <p>Nur Text</p> <p>&#60;shoesize country=&#8221;france&#8221;&#62;35&#60;/shoesize&#62;</p> <p>XSD</p> <p>&#60;xs:element <a href="http://www.c-dev.ch/blog/2009/06/24/xselement-weiterfuhrend/"> [Weiter lesen...]</a>]]></description>
			<content:encoded><![CDATA[<p>Wie in einem anderen Beitrag bereits beschrieben, kann ein komplexws Element in vier kombinationen vorkommen.<br />
<span id="more-213"></span><br />
<strong>Leeres Element</strong></p>
<blockquote><p>&lt;product prodid=&#8221;1345&#8243; /&gt;</p></blockquote>
<p>XSD</p>
<blockquote><p>&lt;xs:element name=&#8221;product&#8221;&gt;<br />
&lt;xs:complexType&gt;<br />
&lt;xs:attribute name=&#8221;prodid&#8221; type=&#8221;xs:positiveInteger&#8221;/&gt;<br />
&lt;/xs:complexType&gt;<br />
&lt;/xs:element&gt;</p></blockquote>
<p><strong>Nur Elemente</strong></p>
<blockquote><p>&lt;person&gt;<br />
&lt;firstname&gt;John&lt;/firstname&gt;<br />
&lt;lastname&gt;Smith&lt;/lastname&gt;<br />
&lt;/person&gt;</p></blockquote>
<p>XSD</p>
<blockquote><p>&lt;xs:element name=&#8221;person&#8221;&gt;<br />
&lt;xs:complexType&gt;<br />
&lt;xs:sequence&gt;<br />
&lt;xs:element name=&#8221;firstname&#8221; type=&#8221;xs:string&#8221;/&gt;<br />
&lt;xs:element name=&#8221;lastname&#8221; type=&#8221;xs:string&#8221;/&gt;<br />
&lt;/xs:sequence&gt;<br />
&lt;/xs:complexType&gt;<br />
&lt;/xs:element&gt;</p></blockquote>
<p><strong>Nur Text</strong></p>
<blockquote><p>&lt;shoesize country=&#8221;france&#8221;&gt;35&lt;/shoesize&gt;</p></blockquote>
<p>XSD</p>
<blockquote><p>&lt;xs:element name=&#8221;shoesize&#8221;&gt;<br />
&lt;xs:complexType&gt;<br />
&lt;xs:simpleContent&gt;<br />
&lt;xs:extension base=&#8221;xs:integer&#8221;&gt;<br />
&lt;xs:attribute name=&#8221;country&#8221; type=&#8221;xs:string&#8221; /&gt;<br />
&lt;/xs:extension&gt;<br />
&lt;/xs:simpleContent&gt;<br />
&lt;/xs:complexType&gt;<br />
&lt;/xs:element&gt;</p></blockquote>
<p>Weil der Typ nur einfachen Inhalt aufweist (Text und ein Attribute), wird ein simpleContent Element hinzugefügt. Wenn simpleContent verwendet wird, muss entweder eine extension oder eine restriction für das simpleContent Element angegeben werden.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.c-dev.ch/blog/2009/06/24/xselement-weiterfuhrend/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>xs:attribute</title>
		<link>http://www.c-dev.ch/blog/2009/06/24/xsattribute/</link>
		<comments>http://www.c-dev.ch/blog/2009/06/24/xsattribute/#comments</comments>
		<pubDate>Wed, 24 Jun 2009 10:16:17 +0000</pubDate>
		<dc:creator>neisgei</dc:creator>
				<category><![CDATA[Entwicklung]]></category>
		<category><![CDATA[XML]]></category>

		<guid isPermaLink="false">http://www.c-dev.ch/blog/?p=207</guid>
		<description><![CDATA[<p>Ein element kann nicht direkt ein attribute haben, es muss über einen complexType angefügt werden.</p> <p>Das Attribute selbst ist jedoch immer als simpler Typ definiert:</p> xs:string xs:decimal xs:integer xs:boolean xs:date xs:time <p>&#60;xs:attribute name=&#8221;lang&#8221; type=&#8221;xs:string&#8221; use=&#8221;required&#8221;/&#62;</p> <p>Das Beispiel zeigt eine Definition, die das Attribut als erforderlich deklariert.</p> ]]></description>
			<content:encoded><![CDATA[<p>Ein element kann nicht direkt ein attribute haben, es muss über einen complexType angefügt werden.</p>
<p>Das Attribute selbst ist jedoch immer als simpler Typ definiert:</p>
<ul>
<li>xs:string</li>
<li>xs:decimal</li>
<li>xs:integer</li>
<li>xs:boolean</li>
<li>xs:date</li>
<li>xs:time</li>
</ul>
<blockquote><p>&lt;xs:attribute name=&#8221;lang&#8221; type=&#8221;xs:string&#8221; use=&#8221;required&#8221;/&gt;</p></blockquote>
<p>Das Beispiel zeigt eine Definition, die das Attribut als erforderlich deklariert.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.c-dev.ch/blog/2009/06/24/xsattribute/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>xs:element</title>
		<link>http://www.c-dev.ch/blog/2009/06/24/xselement/</link>
		<comments>http://www.c-dev.ch/blog/2009/06/24/xselement/#comments</comments>
		<pubDate>Wed, 24 Jun 2009 10:11:47 +0000</pubDate>
		<dc:creator>neisgei</dc:creator>
				<category><![CDATA[Entwicklung]]></category>
		<category><![CDATA[XML]]></category>

		<guid isPermaLink="false">http://www.c-dev.ch/blog/?p=201</guid>
		<description><![CDATA[<p>Ein Element kann nur Text enthalten. Es kann keine weiteren Elemente oder Attribute beinhalten.</p> <p>Wobei &#8220;Text&#8221; missverständlich sein kann. Denn der Inhalt kann einer von den xsd Typen (boolean, string, date, etc.) sein, oder ein benutzerdefinierter Typ, den man selbst erstellt.</p> <p>&#60;xs:element name=&#8221;xxx&#8221; type=&#8221;yyy&#8221;/&#62;</p> <p>Komplexes Element</p> <p>Es gibt vier Möglichkeiten:</p> leere elemente &#60;result state=&#8221;true&#8221; /&#62; <a href="http://www.c-dev.ch/blog/2009/06/24/xselement/"> [Weiter lesen...]</a>]]></description>
			<content:encoded><![CDATA[<p>Ein Element kann nur Text enthalten. Es kann keine weiteren Elemente oder Attribute beinhalten.</p>
<p>Wobei &#8220;Text&#8221; missverständlich sein kann. Denn der Inhalt kann einer von den xsd Typen (boolean, string, date, etc.) sein, oder ein benutzerdefinierter Typ, den man selbst erstellt.</p>
<blockquote><p>&lt;xs:element name=&#8221;xxx&#8221; type=&#8221;yyy&#8221;/&gt;</p></blockquote>
<p><strong>Komplexes Element</strong></p>
<p>Es gibt vier Möglichkeiten:</p>
<ul>
<li>leere elemente<br />
&lt;result state=&#8221;true&#8221; /&gt;</li>
<li>solche die nur andere elemente beinhalten<br />
&lt;result&gt;<br />
&lt;state&gt;true&lt;/state&gt;<br />
&lt;/result&gt;</li>
<li>solche die nur text beinhalten<br />
&lt;result state=&#8221;true&#8221;&gt;no error occurred&lt;/result&gt;</li>
<li>elemente, die andere elemente und text beinhalten<br />
&lt;result state=&#8221;true&#8221;&gt;no &lt;green&gt;error&lt;/green&gt; occurred&lt;/result&gt;</li>
</ul>
<p><strong>Definition eines komplexen Elementes</strong></p>
<blockquote><p>&lt;employee&gt;<br />
&lt;firstname&gt;John&lt;/firstname&gt;<br />
&lt;lastname&gt;Smith&lt;/lastname&gt;<br />
&lt;/employee&gt;</p></blockquote>
<p>XSD</p>
<blockquote><p>&lt;xs:element name=&#8221;employee&#8221;&gt;<br />
&lt;xs:complexType&gt;<br />
&lt;xs:sequence&gt;<br />
&lt;xs:element name=&#8221;firstname&#8221; type=&#8221;xs:string&#8221;/&gt;<br />
&lt;xs:element name=&#8221;lastname&#8221; type=&#8221;xs:string&#8221;/&gt;<br />
&lt;/xs:sequence&gt;<br />
&lt;/xs:complexType&gt;<br />
&lt;/xs:element&gt;</p></blockquote>
<p>Oder mehr genereller, damit beispielsweise ein anderes Element wie &#8220;Kunde&#8221; dieselbe Definition verwenden kann:</p>
<blockquote><p>&lt;xs:element name=&#8221;employee&#8221; type=&#8221;personinfo&#8221;/&gt;</p>
<p>&lt;xs:complexType name=&#8221;personinfo&#8221;&gt;<br />
&lt;xs:sequence&gt;<br />
&lt;xs:element name=&#8221;firstname&#8221; type=&#8221;xs:string&#8221;/&gt;<br />
&lt;xs:element name=&#8221;lastname&#8221; type=&#8221;xs:string&#8221;/&gt;<br />
&lt;/xs:sequence&gt;<br />
&lt;/xs:complexType&gt;</p></blockquote>
<p>Ohne Angaben von minOccurs and maxOccurs muss das Element exakt einmal vorkommen. (entspricht also minOccurs=1 und maxOccurs=1).</p>
<p><span style="color: #ff6600;"><strong>ACHTUNG! </strong>Attribute Definitionen müssen immer am Ende (z.B. nach sequence) erfolgen!</span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.c-dev.ch/blog/2009/06/24/xselement/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Leerzeichen / Space ausgeben</title>
		<link>http://www.c-dev.ch/blog/2007/09/12/leerzeichen-space-ausgeben/</link>
		<comments>http://www.c-dev.ch/blog/2007/09/12/leerzeichen-space-ausgeben/#comments</comments>
		<pubDate>Wed, 12 Sep 2007 07:13:48 +0000</pubDate>
		<dc:creator>neisgei</dc:creator>
				<category><![CDATA[Entwicklung]]></category>
		<category><![CDATA[XML]]></category>

		<guid isPermaLink="false">http://www.c-dev.ch/blog/2007/09/12/leerzeichen-space-ausgeben/</guid>
		<description><![CDATA[Any whitespace you're putting in there is getting trimmed since the stylesheet doesn't see its own whitespace-only text nodes as significant. (The earlier text node ', ' isn't getting trimmed since it's not whitespace-only.) The solution is to say &#60;xsl:text&#62; &#60;/xsl:text&#62; or if you like, &#60;xsl:value-of select=" "/&#62; should get you the same thing. Note <a href="http://www.c-dev.ch/blog/2007/09/12/leerzeichen-space-ausgeben/"> [Weiter lesen...]</a>]]></description>
			<content:encoded><![CDATA[<pre><tt>Any whitespace you're putting in there is getting trimmed since the stylesheet doesn't see its own whitespace-only text nodes as significant. (The earlier text node ', ' isn't getting trimmed since it's not whitespace-only.)</tt>

The solution is to say
&lt;xsl:text&gt; &lt;/xsl:text&gt;

or if you like,
&lt;xsl:value-of select=" "/&gt;

<tt>should get you the same thing. Note this is a space, not a non-breaking space, which would be another way to go -- just use   (no &lt;xsl:text&gt; necessary in that case since it's not "whitespace only" -- the non-breaking space character isn't considerd "whitespace" for these purposes.)</tt></pre>
<pre><strong>Another Hints</strong></pre>
<pre>You can use an &lt;xsl:text&gt; element to introduce a (real) space character:

&lt;xsl:value-of select="../HEADER/FROM/STATE"/&gt;
&lt;xsl:text&gt; &lt;/xsl:text&gt;
&lt;xsl:value-of select="../HEADER/FROM/ZIP1"/&gt;

or

&lt;xsl:value-of select="../HEADER/FROM/STATE"
/&gt; &lt;xsl:value-of select="../HEADER/FROM/ZIP1"/&gt;

or you can insert a non-breaking space character (  in HTML) if that is
more appropriate:

&lt;xsl:value-of select="../HEADER/FROM/STATE"
/&gt; &lt;xsl:value-of select="../HEADER/FROM/ZIP1"/&gt;</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.c-dev.ch/blog/2007/09/12/leerzeichen-space-ausgeben/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

