Schemas, xsd, xdr
Schemas, xsd, xdr Contents
Summary Use XSLT to get the value of an element whether is has subselements or not.
Storing text in elements rather than attributes has an advantage because it is more easily extended.
Say you have the following XML snippet.
<name>Jim Smith</name>
The name can be extracted using the following XSLT:
<xsl:value-of select=name/>
This returns Jim Smith.
Now say you want to be able to distinguish the first name from the last name, so you add elements first and last as shown here.
<name><first>Jim</first><last>Smith</last></name>
You can still use the same XSLT as before to get the same result, Jim Smith. This means your XML and its DTD/Schema are backward compatible with older XSLT.
Partners
Dream.In.Code dotNet Slackers dotNet Spider Your HTML Source VisualBuilder.com DevGuru Planet Source Code ZVON.ORG Web Design ASPAlliance XML Pitstop Scripts
The Spot 4 SAP Bitshop Web Hosting