Skip to content

Instantly share code, notes, and snippets.

@mamund
Created April 18, 2014 14:07
Show Gist options
  • Save mamund/11046014 to your computer and use it in GitHub Desktop.
Save mamund/11046014 to your computer and use it in GitHub Desktop.
scoping descriptor
<html>
<head>
<title>Example #1</title>
</head>
<body>
<h1>Example #1</h1>
<form action="..." method="get">
<input name="messageText" />
<input type="createDate" />
<input type="submit" class="search" />
</form>
<form action="..." method="post">
<input name="messageText" />
<input name="createDate" />
<input type="submit" class="addItem" />
</form>
</body>
</html>
<alps>
<doc>
In this example, client apps SHOULD assume the two
semantic descriptors could appear along with any of
the three transition descriptors.
</doc>
<descriptor id="createDate" type="semantic" />
<descriptor id="messageText" type="semantic" />
<descriptor id="search" type="safe" />
<descriptor id="addItem" type="unsafe" />
</alps>
<html>
<head>
<title>Example #1</title>
</head>
<body>
<h1>Example #1</h1>
<form action="..." method="get">
<input name="searchText" />
<input type="submit" class="search" />
</form>
<form action="..." method="post">
<input name="messageText" />
<input name="createDate" />
<input type="submit" class="addItem" />
</form>
</body>
</html>
<alps>
<doc>
In this example, client apps SHOULD NOT assume the
semantic descriptors could appear anywhere *except*
the transitions under which they are nested.
</doc>
<descriptor id="addItem">
<descriptor id="createDate" type="semantic" />
<descriptor id="messageText" type="semantic" />
</descriptor>
<descriptor id="search" type="safe">
<descriptor id="searchText" type="semantic" />
</descriptor>
</alps>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment