Akron | 9a8ee3e | 2022-01-31 13:51:49 +0100 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" |
| 3 | xmlns:xs="http://www.w3.org/2001/XMLSchema" |
| 4 | version="3.0"> |
| 5 | |
| 6 | |
| 7 | <!-- Template to create the data.xml file --> |
| 8 | <xsl:template name="get-primary-data"> |
| 9 | <xsl:param name="corpusID"/> |
| 10 | <xsl:param name="docID"/> |
| 11 | <xsl:param name="textID"/> |
| 12 | |
| 13 | <xsl:document> |
| 14 | <xsl:processing-instruction name="xml-model">href="text.rng" type="application/xml" schematypens="http://relaxng.org/ns/structure/1.0"</xsl:processing-instruction> |
| 15 | <xsl:element name="raw_text" namespace="http://ids-mannheim.de/ns/KorAP"> |
| 16 | <xsl:attribute name="docid"> |
| 17 | <xsl:value-of select="$corpusID" />_<xsl:value-of select="$docID" />.<xsl:value-of select="$textID" /> |
| 18 | </xsl:attribute> |
| 19 | <metadata file="metadata.xml" /> |
| 20 | <text><xsl:value-of select="//*[local-name()='ab']" /></text> |
| 21 | </xsl:element> |
| 22 | </xsl:document> |
| 23 | </xsl:template> |
| 24 | |
| 25 | </xsl:stylesheet> |