new stylesheets
This commit is contained in:
parent
dfce6c24e8
commit
f3a8205225
3 changed files with 40 additions and 5 deletions
|
@ -4,13 +4,13 @@
|
||||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||||
xmlns:java="java" >
|
xmlns:java="java" >
|
||||||
|
|
||||||
<xsl:output method="text" encoding="utf-8"/>
|
<xsl:output method="text"/>
|
||||||
|
|
||||||
<xsl:template match="/">
|
<xsl:template match="/">
|
||||||
<xsl:apply-templates select="//transcript"/>
|
<xsl:apply-templates select="//transcript"/>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<xsl:template match="transcript">
|
<xsl:template match="transcript">
|
||||||
<xsl:value-of select="java:net.URLEncoder.encode(.,'UTF-8')"/><xsl:text> </xsl:text>
|
<xsl:value-of select="java:net.URLEncoder.encode(.,'UTF-8')"/><xsl:text> </xsl:text>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
</xsl:stylesheet>
|
</xsl:stylesheet>
|
||||||
|
|
37
archive/styles/mergeMetadataAndData.xsl
Normal file
37
archive/styles/mergeMetadataAndData.xsl
Normal file
|
@ -0,0 +1,37 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
|
||||||
|
<xsl:stylesheet version="2.0"
|
||||||
|
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||||
|
xmlns:encoder="java:java.net.URLEncoder"
|
||||||
|
xmlns:thdl="java:org.thdl.tib.text.ttt.EwtsToUnicodeForXslt"
|
||||||
|
exclude-result-prefixes="thdl encoder" >
|
||||||
|
|
||||||
|
<xsl:import href="qdToUnicode.xsl"/>
|
||||||
|
|
||||||
|
<xsl:output method="xml" encoding="UTF-8" indent="yes" name="unicode.out"/>
|
||||||
|
|
||||||
|
<xsl:param name="transcript.location" select="''"/>
|
||||||
|
<xsl:param name="transform.to.dir" select="''"/>
|
||||||
|
|
||||||
|
<xsl:template match="/">
|
||||||
|
<xsl:for-each select="//transcript">
|
||||||
|
<xsl:variable name="filename" select="."/>
|
||||||
|
<!-- <xsl:variable name="filename" select="encoder:encode(.,'UTF-8')"/> -->
|
||||||
|
<xsl:result-document href="{$transform.to.dir}/{$filename}" format="unicode.out">
|
||||||
|
<xsl:element name="TITLE">
|
||||||
|
<xsl:attribute name="id">
|
||||||
|
<xsl:value-of select="../@id"/>
|
||||||
|
</xsl:attribute>
|
||||||
|
<METADATA>
|
||||||
|
<xsl:apply-templates select="../*"/>
|
||||||
|
</METADATA>
|
||||||
|
<xsl:variable name="transcript.content" select="document(concat($transcript.location,$filename))/TEXT"/>
|
||||||
|
<TEXT>
|
||||||
|
<xsl:apply-templates select="$transcript.content/S"/>.
|
||||||
|
</TEXT>
|
||||||
|
</xsl:element>
|
||||||
|
</xsl:result-document>
|
||||||
|
</xsl:for-each>
|
||||||
|
</xsl:template>
|
||||||
|
|
||||||
|
</xsl:stylesheet>
|
|
@ -5,9 +5,7 @@
|
||||||
xmlns:thdl="java:org.thdl.tib.text.ttt.EwtsToUnicodeForXslt"
|
xmlns:thdl="java:org.thdl.tib.text.ttt.EwtsToUnicodeForXslt"
|
||||||
exclude-result-prefixes="thdl"
|
exclude-result-prefixes="thdl"
|
||||||
version="2.0">
|
version="2.0">
|
||||||
|
|
||||||
<!-- <xsl:param name="mediaref"/> -->
|
|
||||||
|
|
||||||
<xsl:template match="/">
|
<xsl:template match="/">
|
||||||
<xsl:apply-templates/>
|
<xsl:apply-templates/>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
Loading…
Reference in a new issue