• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

xml schema question

 
Edmund Castermund
Ranch Hand
Posts: 99
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This feels like it should be a basic question, but I can't come up with an answer.

I have a schema which has a <description> element that I want to be able to have any combination of headings and paras...no headings at all, or two headings in a row, followed by paras, whatever.

But my schema definition now is like this:



Currently I have a <text-element> tag that allows an optional heading followed by any number of paras....is there a way to not have to use the <text-element> tag?

If I add this, will it help?



my understanding is that using xs:choose allows one or the other, xs:all allows any order, but only one instance.
thanks,
Jason
 
Jimmy Clark
Ranch Hand
Posts: 2187
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<treatise>
<ch no="1">
<sec-main no="2"><title>Check your private messages
<para>Basic sentence goes here...
 
Edmund Castermund
Ranch Hand
Posts: 99
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OMG...I couldn't reply to your PM...btw, that car got stolen!
 
Jimmy Clark
Ranch Hand
Posts: 2187
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
lol...that was my brother's baby, it probably became a gypsy cab and was forced into hard labour.
 
Edmund Castermund
Ranch Hand
Posts: 99
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
LOL.... PM me your email, would be good to hear about what you're up to.
bp
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic