Changeset ad35672
- Timestamp:
- 15/04/2012 00:12:29 (10 years ago)
- Branches:
- master
- Children:
- c4c4108
- Parents:
- ba51ddf
- git-author:
- Eric van der Vlist <vdv@dyomedea.com> (15/04/2012 00:12:29)
- git-committer:
- Eric van der Vlist <vdv@dyomedea.com> (15/04/2012 00:12:29)
- Location:
- archiver/pipelines/actions
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
archiver/pipelines/actions/package-archive.xpl
rba51ddf rad35672 212 212 <document xsl:version="2.0" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:string" content-type="text/plain"> 213 213 <xsl:apply-templates select="$request" mode="warc"/> 214 <xsl:apply-templates select="$response" mode="warc"/> 214 <xsl:apply-templates select="$response" mode="warc"> 215 <xsl:with-param name="document-length" as="xs:integer" select="string-length(translate(/archive/response/document, ' 

', '')) * 3 div 4" tunnel="yes"/> 216 </xsl:apply-templates> 215 217 </document> 216 218 </xsl:template> -
archiver/pipelines/actions/warc-lib.xsl
rba51ddf rad35672 31 31 32 32 <xsl:template match="record" mode="warc"> 33 <xsl:param name="document-length" as="xs:integer" select="0" tunnel="yes"/> 34 <xsl:call-template name="CRLF"/> 35 <xsl:call-template name="CRLF"/> 33 36 <xsl:apply-templates select="header" mode="warc"/> 34 37 <xsl:variable name="block"> … … 39 42 <name>Content-Length</name> 40 43 <value> 41 <xsl:value-of select="string-length($block) "/>44 <xsl:value-of select="string-length($block) + $document-length "/> 42 45 </value> 43 46 </field> … … 46 49 <xsl:call-template name="CRLF"/> 47 50 <xsl:value-of select="$block"/> 48 <xsl:call-template name="CRLF"/>49 <xsl:call-template name="CRLF"/>50 51 </xsl:template> 51 52 … … 72 73 73 74 <xsl:template match="response" mode="warc-http"> 75 <!--<xsl:message> 76 <xsl:value-of select="string-length(document)"/> 77 <xsl:text> - </xsl:text> 78 <xsl:value-of select="string-length(translate(document, ' 

', ''))"/> 79 </xsl:message>--> 74 80 <line> 75 81 <!-- TODO: get the HTTP version and status-->
Note: See TracChangeset
for help on using the changeset viewer.