Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7014363
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T22:30:42+00:00 2026-05-27T22:30:42+00:00

<structure> <pause length=2s /> <action ref=move /> <action ref=replace /> <pause length=2s /> <pause

  • 0
<structure>
  <pause length="2s" />
  <action ref="move" />
  <action ref="replace" />
  <pause length="2s" />
  <pause length="2s" /> <!-- error -->
  <action ref="move" />
  <action ref="move" /> <!-- error -->
  <pause length="2s" title="cd"/>
  <pause length="2s" title="cu"/> <!-- ok -->
  <action ref="move" title="m1" />
  <action ref="move" title="m2" /> <!-- ok-->
  <action ref="remove" />
  <pause length="2s" /> <!-- error -->
<structure>

I’m a new at writing XML Schemas. I would like to know is there a way to do the following validation operation with XSD:

  • STRUCTURE contains PAUSE and ACTION in any order
    • STRUCTURE contains at least one ACTION
    • no STRUCTURE with a PAUSE only ALLOWED
  • no PAUSE can follow PAUSE, until they both (or just one if that impossible) have different @TITLE
  • STRUCTURE cannot end with PAUSE
  • no ACTION can follow ACTION with the same @REF, until they both (or just one if that impossible) have different @TITLE
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T22:30:42+00:00Added an answer on May 27, 2026 at 10:30 pm

    XSD 1.0 basically allows you to specify constraints in the form of a grammar. You haven’t described your constraints that way, and I doubt whether it is possible to express them as a grammar. For rules like this you want a schema that describes a set of integrity constraints or rules, which means either Schematron or XSD 1.1 or a custom validator written using XSLT.

    It’s fairly easy to express these rules as XSD 1.1 assertions on the structure element. The details depend on whether “follows” in your description means “immediately follows”.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

SICP - Structure and Interpretation of Computer Programs Explanation for the same would be
Table structure- int PrimaryKey DateTime Date int Price What I would like to do
I have an XML file in the following structure. <NewDataSet> <markers> <name>name text</name> <desc>desc
The XML I am trying to parse has structure similar to this - where
I have a JSON structure; { books: [ {id: book1, title: Book One}, {id:
I would like to create a structure within javascript. I have a pair of
I new to parsing JSON - up until this point, I've been purely XML.
I am quite new to the iphone development, I am using xml parsing to
How would you parse in Java a structure, similar to this \\Header (name)\\\ 1JohnRide
I would like to parse a data structure of closures (in this case a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.