[xsl] Cant remove meta data

Subject: [xsl] Cant remove meta data
From: "Graeme Kidd" <coolkidd3@xxxxxxxxxxx>
Date: Sat, 3 Jan 2009 13:35:43 -0000
Hi,
I am currently working on a XML file that was made using Adobe Acrobat which includes meta data at the top of the XML file. Some how some of the RDF data is still getting printed into the output XML. Given this following example any idea why this is happening?


[Input XML]
<?xml version="1.0" encoding="UTF-8" ?>
<!-- Created from PDF via Acrobat SaveAsXML -->
<!-- Mapping Table version: 28-February-2003 -->
<TaggedPDF-doc>
<?xpacket begin='o;?' id='W5M0MpCehiHzreSzNTczkc9d'?>
<?xpacket begin="o;?" id="W5M0MpCehiHzreSzNTczkc9d"?>
<x:xmpmeta xmlns:x="adobe:ns:meta/" x:xmptk="3.1-702">
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#";>
<rdf:Description rdf:about="321" xmlns:xap="http://ns.adobe.com/xap/1.0/";>
<xap:ModifyDate>2008-12-19T17:06:41Z</xap:ModifyDate>
<xap:CreateDate>2008-12-19T17:06:33Z</xap:CreateDate>
<xap:MetadataDate>2008-12-19T17:06:41Z</xap:MetadataDate>
<xap:CreatorTool>dvipsk 5.58f Copyright 1986, 1994 Radical Eye Software</xap:CreatorTool>
</rdf:Description>
<rdf:Description rdf:about=""
xmlns:dc="http://purl.org/dc/elements/1.1/";>
<dc:format>xml</dc:format>
<dc:title>
<rdf:Alt>
<rdf:li xml:lang="x-default">/usr/local/etc/httpd/htdocs/publish/192.168.254.87/FD/OCPSFD.dvi</rdf:li>
</rdf:Alt>
</dc:title>
</rdf:Description>
<rdf:Description rdf:about=""
xmlns:xapMM="http://ns.adobe.com/xap/1.0/mm/";>
<xapMM:DocumentID>uuid:b5e77b3b-5715-4d2d-ad3d-ae314366f52a</xapMM:DocumentID>
<xapMM:InstanceID>uuid:821887b0-f4c7-4a40-83f7-f0d17f0f9126</xapMM:InstanceID>
</rdf:Description>
<rdf:Description rdf:about=""
xmlns:pdf="http://ns.adobe.com/pdf/1.3/";>
<pdf:Producer>Acrobat Distiller 7.0.5 (Windows)</pdf:Producer>
</rdf:Description>
</rdf:RDF>
</x:xmpmeta>
<?xpacket end="w"?>
<?xpacket end='r'?>


<Part>
[... CUT ...]

[The XSL file]
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; version="1.0">
<xsl:output method="xml" indent="yes" encoding="UTF-8" version="1.0" />


	<xsl:template match="TaggedPDF-doc/Part">
		<course>
			<xsl:apply-templates select="Sect"> </xsl:apply-templates>
		</course>
	</xsl:template>
[... CUT ...]

[Output XML]
<?xml version="1.0" encoding="UTF-8"?>2008-12-19T17:06:41Z2008-12-19T17:06:33Z2008-12-19T17:06:41Zdvipsk 5.58f Copyright 1986, 1994 Radical Eye Softwarexml/usr/local/etc/httpd/htdocs/publish/192.168.254.87/FD/OCPSFD.dviuuid:b5e77b3b-5715-4d2d-ad3d-ae314366f52auuid:821887b0-f4c7-4a40-83f7-f0d17f0f9126Acrobat Distiller 7.0.5 (Windows)
<course>
[... CUT ...]


Graeme

Current Thread