home *** CD-ROM | disk | FTP | other *** search
/ ftp.tcs3.com / ftp.tcs3.com.tar / ftp.tcs3.com / DRIVERS / Audio / Office2010 / InfoPath.en-us / InfLR.cab / FL_attribute_xml_120466_ENU____.3643236F_FC70_11D3_A536_0090278A1BB8 < prev    next >
Extensible Markup Language  |  2009-04-01  |  2KB  |  42 lines

  1. ∩╗┐<?xml version="1.0" encoding="utf-8"?>
  2. <CodeSnippet Format="1.0.0" xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
  3.   <Header>
  4.     <Title>
  5.       <!-- _locID_text="title" _locComment="" -->simpleContent</Title>
  6.     <Author>Microsoft Corporation</Author>
  7.     <Shortcut>ctsc</Shortcut>
  8.     <Description>
  9.       <!-- _locID_text="description" _locComment="" -->XML snippet for XSD complexType simpleContent extension that adds an attribute</Description>
  10.     <SnippetTypes>
  11.       <SnippetType>SurroundsWith</SnippetType>
  12.       <SnippetType>Expansion</SnippetType>
  13.     </SnippetTypes>
  14.   </Header>
  15.   <Snippet>
  16.     <Declarations>
  17.       <Literal>
  18.         <ID>name</ID>
  19.         <ToolTip>
  20.           <!-- _locID_text="tooltip1" _locComment="" -->Name of the element.</ToolTip>
  21.         <Default>name</Default>
  22.       </Literal>
  23.       <Literal>
  24.         <ID>attName</ID>
  25.         <ToolTip>
  26.           <!-- _locID_text="tooltip2" _locComment="" -->Name of the attribute</ToolTip>
  27.         <Default>attName</Default>
  28.       </Literal>
  29.       <Literal>
  30.         <ID>base</ID>
  31.         <ToolTip>
  32.           <!-- _locID_text="tooltip3" _locComment="" -->qualified name of the type being extended</ToolTip>
  33.         <Default>string</Default>
  34.       </Literal>
  35.       <Literal Editable="false">
  36.         <ID>prefix</ID>
  37.         <Function>LookupPrefix("http://www.w3.org/2001/XMLSchema")</Function>
  38.       </Literal>
  39.     </Declarations>
  40.     <Code Language="XML"><![CDATA[<xsd:complexType name="$name$" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><xsd:simpleContent><xsd:extension base="$prefix$$base$"><xsd:attribute name=$attName$>$selected$$end$</xsd:attribute></xsd:extension></xsd:simpleContent></xsd:complexType>]]></Code>
  41.   </Snippet>
  42. </CodeSnippet>