• Keine Ergebnisse gefunden

XML and Programming Languages

N/A
N/A
Protected

Academic year: 2022

Aktie "XML and Programming Languages"

Copied!
1
0
0

Wird geladen.... (Jetzt Volltext ansehen)

Volltext

(1)

Second exercise sheet for the lecture

XML and Programming Languages

Dr. Janis Voigtl¨ander Summer Term 2009

Exercise 4

Consider the DTD d = (r,{r → a, a → bc, b → c|ǫ, c → ǫ}). Using the construction from the lecture, give an FSA recognizing exactly L(d). 3 Exercise 5

1. Recall the DTD (r,{r→a, a→a|ǫ}) from the lecture, for which L(d) was not regular. Assume that a validator will only get well-balanced input strings. Is it then possible to detect, among those only, the string representations of tree documents valid with respect to d?

2. What about the DTD (r,{r →a|ǫ, a→b, b→a|ǫ})?

3. Or the DTD (a,{a→b, b→a})?

4. Or the DTD (r,{r →aa, a→a|ǫ})?

5. Or the DTD (a,{a→ab|ca|ǫ, b→ǫ, c→ǫ})?

6. Try to formalize a notion ofweak validationcapturing the above idea. 3

Exercise 6

For those DTDsd from Exercise 5 for which weak validation does not work, give context free grammars that generate exactly L(d). 3

Referenzen

ÄHNLICHE DOKUMENTE

The Eurosceptic surge has not had a dramatic affect on the composition of the European Parliament and the mainstream parties are more cohesive than the insurgents – although

A regular expression is deterministic if the FSA built from it using the construction in the lecture has no two transitions (q, σ, q ′ ) and (q, σ, q ′′ ) with q ′ 6= q

Give the unabbreviated versions of the following CoreXPath queries, and describe their semantics relative to a context node n:1. .//σ/ ancestor - or - self ::

Discuss the general complexity, in terms of query size and data size, of query evaluation using the alternative CoreXPath semantics, under the assumption that operations like F axis ,

Check query containment for each combination of the following CoreXPath expressions: a/b/c, a/b[c]/∗, a/b[∗]/c, a/∗/c,

Concerning lexical access, several communities are concerned: engineers from the natural language generation community (NLG), psychologists 28 , user to provide with the input

The fundamental theoretical framework constitutes of The autobiographical Pact by Philippe Lejeune and a theory of paratexts according to Gérard Genette.. In

Due to the synopsis it will be possible, to find disadvantages of entries, to assess the quality of equivalence and suggest possible improvements for the information proposal