Digital Media Technology Week 8. Digital Lifecycle.
-
Upload
roger-phillips -
Category
Documents
-
view
216 -
download
4
Transcript of Digital Media Technology Week 8. Digital Lifecycle.
Digital Media Technology
Week 8
Digital Lifecycle
□ XML documents themselves □ Root element: <xsl:stylesheet>□ <xsl:template>□ First template which point to root element of source□ Elements within <xsl:template> :
□ <xsl:value-of>□ <xsl:text>□ <xsl:for-each>□ <xsl:sort>□ <xsl:if>
XSLT Stylesheets
□ Database theory
□ W9: Relational data model□ W10: Entity-relationship modelling□ W11: SQL
□ Webprogramming
□ W12: PHP (variables, operators)□ W13: PHP (flow control)□ W14: PHP (HTML forms)
From next week onwards
Why XML?
□ Different outputs (paper, pdf, html, mobile phone, etc.)
□ Reuse text; change content (order) and form
□ Exchange text
□ Selecting and searching
Different outputs
□ Illustration:
www.vangoghletters.org
□ Other TEI projects:
http://www.tei-c.org/Activities/Projects/
Exchange of data
Data providers
Service providers
OAI-PMH
Examples of service provides
□ OAIster
□ ArXiv□ Narcis
Examples of OAI-PMH requests
□ http://lcweb2.loc.gov/cgi-bin/oai2_0?verb=GetRecord&metadataPrefix=marc21&identifier=oai:lcoa1.loc.gov:loc.gmd/g3791p.rr002300
□ http://lcweb2.loc.gov/cgi-bin/oai2_0?verb=ListRecords&metadataPrefix=oai_dc&set=mussm
□ http://export.arxiv.org/oai2?verb=ListRecords&metadataPrefix=oai_dc&set=cs
Advanced Search Options
Use of computer in Digital Humanities
<xsl:for-each select=“item”>
<xsl:value-of select=“imprint/place”/>
</xsl:for-each>
□ XSLT and Xpath:
<xsl:for-each select=“item”>
<xsl:value-of select=“.” />
</xsl:for-each>
<xsl:for-each select=“//note”>
<xsl:value-of select=“p” />
</xsl:for-each>
XPath
<xsl:value-if select=“collection/body/letter/author/@type” />
<xsl:for-each select=“letter[language=‘English’ ]”>
…
</xsl:for-each>
XPath
Xpath functions
□ count()
<xsl:value-of select=“count ( body/letter )”/>
□ contains()
<xsl:if test=“contains( letter/author , ‘Bohn’ )”>
<xsl:value-of select=“letter” />
</xsl:if>
<xsl:apply-templates>
□ Add structure to your stylesheet
□ Modularity
□ <apply-templates select=“[element name]”/>
Example
<xsl:template match=“body”>
<xsl:apply-templates select=“letter[language = ‘English’ ] />
<xsl:apply-templates select=“letter[language = ‘German’ ] >
<xsl:template match=“letter”>…</xsl:template>