Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


[xsl] Cant remove meta data

From: "Graeme Kidd" <coolkidd3@----------->
To:
Date: 1/3/2009 1:54:00 PM
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


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent