Last active
August 29, 2015 14:03
-
-
Save jgambill/51629ee0d1039b3f3c4a to your computer and use it in GitHub Desktop.
Postcard markup exercise https://gist.github.com/CliffordAnderson/ccb7a01becce9039c6cd#markup-exercise #eadworkshop #xml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- a schema for my postcard, with some commented-out stuff for other possibilities --> | |
<!-- ?. *, + act the same as quantiifers in regex --> | |
<!-- file extension has an extra .xml on the end to get github to color-code properly --> | |
element postcard { | |
<!-- attribute example | |
element date { | |
attribute iso-date { xsd:gYear }?, | |
text | |
},--> | |
element sender { text }, | |
element recipient { text }, | |
element date { xsd:iso }, | |
element parts { | |
element heading { text }, | |
element greeting { text }*, | |
element body { text }, | |
element closing { text }, | |
element signature { | |
element text { text }, | |
element image { image }? <!-- is this the right type for image/url? --> | |
} | |
}+ | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<postcard> | |
<sender>Jung, Carl</sender> | |
<recipient>Jelliffe, Smith Ely</recipient> | |
<date>1931-10-13</date> | |
<parts> | |
<heading>Küsnacht, Oct. 13th</heading> | |
<greeting>My dear Jelliffe,</greeting> | |
<body> | |
It is nice to hear of you again | |
after many years. | |
I just want to tell you that I see no | |
point in sending my papers to your journal. You surely | |
know that I am a mystic according to American standards. | |
So I think that it will be theoological journals that | |
might refer to my papers. I have noticed that my medical | |
colleagues find it particularly hard to understand my | |
ideas. I therefore should prefer not to disturb the peac | |
of their mind. The things that I have written in the | |
last years are the only psychological stuff, which I suppose | |
is Chinese to the readers of your journal. You will | |
excuse therefore if I prefer not to enter upon your | |
proposition. | |
</body> | |
<closing>Sincerely yours</closing> | |
<signature> | |
<text>C.G. Jung.</text> | |
<image>[link to image]</image> | |
</signature> | |
</parts> | |
</postcard> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I found this item on the LOC Exhibits website -- not knowing the full year and the recipient's full name was driving me crazy.