Click here to Skip to main content
14,669,437 members
Home » Discussions » XML / XSL
   

XML / XSL

 
GeneralRe: XML Pin
Member 1273144310-Sep-16 5:18
MemberMember 1273144310-Sep-16 5:18 
GeneralRe: XML Pin
OriginalGriff10-Sep-16 5:48
mveOriginalGriff10-Sep-16 5:48 
GeneralRe: XML Pin
Member 1273144310-Sep-16 5:53
MemberMember 1273144310-Sep-16 5:53 
GeneralRe: XML Pin
OriginalGriff10-Sep-16 6:11
mveOriginalGriff10-Sep-16 6:11 
GeneralRe: XML Pin
Member 1273144310-Sep-16 6:40
MemberMember 1273144310-Sep-16 6:40 
GeneralRe: XML Pin
OriginalGriff10-Sep-16 7:23
mveOriginalGriff10-Sep-16 7:23 
QuestionHow to create XSD without repeating myself Pin
Mikael Sterley28-Apr-16 3:46
MemberMikael Sterley28-Apr-16 3:46 
AnswerRe: How to create XSD without repeating myself Pin
George Jonsson13-Jun-16 3:08
professionalGeorge Jonsson13-Jun-16 3:08 
I guess you can do something like this:

First create your own type.
<xs:complexType name="contentType">
    <xs:sequence>
      <xs:element name="line">
        <xs:complexType>
          <xs:attribute name="left" type="xs:int" use="required" />
          <xs:attribute name="top" type="xs:int" use="required" />
          <xs:attribute name="width" type="xs:int" use="required" />
        </xs:complexType>
      </xs:element>
      <xs:element name="image">
        <xs:complexType>
          <xs:attribute name="left" type="xs:int" use="required" />
          <xs:attribute name="top" type="xs:int" use="required" />
          <xs:attribute name="path" type="xs:string" use="required" />
        </xs:complexType>
      </xs:element>
      <xs:element name="text">
        <xs:complexType>
          <xs:attribute name="size" type="xs:int" use="required" />
          <xs:attribute name="value" type="xs:string" use="required" />
        </xs:complexType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


Then use it for your elements, head, body and foot
<xs:element name="head">
  <xs:complexType>
    <xs:sequence>
      <xs:element name="content" type="contentType" />
    </xs:sequence>
    <xs:attribute name="showpagenumer" type="xs:boolean" use="required" />
  </xs:complexType>
</xs:element>

AnswerRe: How to create XSD without repeating myself Pin
Bernhard Hiller5-Sep-16 21:08
MemberBernhard Hiller5-Sep-16 21:08 
Questiongenerating a unique value and adding it to a group of elements Pin
Drew Church27-Mar-16 14:11
MemberDrew Church27-Mar-16 14:11 
AnswerRe: generating a unique value and adding it to a group of elements Pin
Jim Meadors27-Mar-16 18:29
MemberJim Meadors27-Mar-16 18:29 
GeneralRe: generating a unique value and adding it to a group of elements Pin
Drew Church28-Mar-16 2:07
MemberDrew Church28-Mar-16 2:07 
GeneralRe: generating a unique value and adding it to a group of elements Pin
Jim Meadors28-Mar-16 19:44
MemberJim Meadors28-Mar-16 19:44 
GeneralRe: generating a unique value and adding it to a group of elements Pin
Drew Church29-Mar-16 3:26
MemberDrew Church29-Mar-16 3:26 
GeneralRe: generating a unique value and adding it to a group of elements Pin
Jim Meadors29-Mar-16 19:12
MemberJim Meadors29-Mar-16 19:12 
Questiontheory xml . help me Pin
Member 1216400424-Nov-15 5:29
MemberMember 1216400424-Nov-15 5:29 
AnswerRe: theory xml . help me Pin
George Jonsson4-Dec-15 20:45
professionalGeorge Jonsson4-Dec-15 20:45 
QuestionXML parsing error --> #10; Pin
NJdotnetdev14-Jul-15 2:23
MemberNJdotnetdev14-Jul-15 2:23 
AnswerRe: XML parsing error --> #10; Pin
Vinod Jangle5-Aug-15 2:27
MemberVinod Jangle5-Aug-15 2:27 
QuestionNETIQ Product Help needed. Pin
Member 1156144127-Mar-15 10:24
MemberMember 1156144127-Mar-15 10:24 
AnswerRe: NETIQ Product Help needed. Pin
Richard Andrew x6427-Mar-15 14:14
professionalRichard Andrew x6427-Mar-15 14:14 
AnswerRe: NETIQ Product Help needed. Pin
Abhipal Singh19-May-15 5:07
professionalAbhipal Singh19-May-15 5:07 
Questioncopying attribute from one node to other Pin
ramina sen9-Feb-15 0:10
Memberramina sen9-Feb-15 0:10 
QuestionXSL: how to properly reference to xml field? Pin
Maciej Los16-Nov-14 9:05
mveMaciej Los16-Nov-14 9:05 
AnswerRe: XSL: how to properly reference to xml field? Pin
Richard Deeming17-Nov-14 2:52
mveRichard Deeming17-Nov-14 2:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.