Click here to Skip to main content
14,386,783 members
   

XML / XSL

 
GeneralRe: XML Pin
Member 1273144310-Sep-16 6:14
MemberMember 1273144310-Sep-16 6:14 
GeneralRe: XML Pin
Member 1273144310-Sep-16 6:18
MemberMember 1273144310-Sep-16 6:18 
GeneralRe: XML Pin
OriginalGriff10-Sep-16 6:48
mveOriginalGriff10-Sep-16 6:48 
GeneralRe: XML Pin
Member 1273144310-Sep-16 6:53
MemberMember 1273144310-Sep-16 6:53 
GeneralRe: XML Pin
OriginalGriff10-Sep-16 7:11
mveOriginalGriff10-Sep-16 7:11 
GeneralRe: XML Pin
Member 1273144310-Sep-16 7:40
MemberMember 1273144310-Sep-16 7:40 
GeneralRe: XML Pin
OriginalGriff10-Sep-16 8:23
mveOriginalGriff10-Sep-16 8:23 
QuestionHow to create XSD without repeating myself Pin
Mikael Sterley28-Apr-16 4:46
MemberMikael Sterley28-Apr-16 4:46 
I want to create an XSD schema that describes this XML:
<report>
  <head showpagenumer="true">
    <line left="10" top="100" width="200" />
    <image left="10" top="100" path="logotype.jpg" />
    <text size="16" value="This is the header" />
  </head>

  <body leftmargin="20">
    <line left="50" top="200" width="200" />
    <image left="15" top="300" path="diagram.jpg" />
    <text size="12" value="Here is the diagram" />
  </body>

  <foot showdate="true">
    <line left="10" top="600" width="200" />
    <image left="10" top="650" path="signature.jpg" />
    <text size="12" value="This is the footer" />
  </foot>
</report>


Note the following:
- I dont want to repeat the line, image and text descriptions three times in the XSD, since they will always be se same format in the head, body and foot nodes.
- As you can see, the allowed attributes in the head, body and foot nodes are different

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

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.