
The Namespaces in XML
recommendation gives us a way to address these goals. We can define a
namespace that mirrors the structure of the existing tuples. Since the
punctuations belong to a different namespace, query operators will not
confuse them with actual tuples. For example, if we have the following
tuple format:
<QUOTE> <TICKER> CSCO </TICKER> <PRICE> 16.51 </PRICE> <DATE> 04/17/2001 </DATE> <TIME> 13:00 </TIME> </QUOTE>
Then punctuation for that tuple will have the following general structure,
where punct is a new namespace we introduce:
<punct:QUOTE>     <TICKER> </TICKER>   <PRICE> </PRICE>   <DATE> </DATE>   <TIME> </TIME> </punct:QUOTE>  
| |||||||||||||||
| Figure 1 – Punctuation with a single constant value and wildcards | |||||||||||||||
| |||||||||||||||
| Figure 2 – Punctuation describing a range between 10:00 and 12:00 on May 18th | |||||||||||||||
| |||||||||||||||
| Figure 3 – Punctuation describing a range from the minimum TIME value, ending before 11:00, for May 18th | |||||||||||||||
| |||||||||||||||
| Figure 4 – Punctuation that list specific ticker symbols that have been read | |||||||||||||||
CombinePunct
can be implemented.
Last modified by Pete Tucker on 26 August 2005.