[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Cant remove meta data

Subject: Re: Cant remove meta data
From: "Graeme Kidd" <coolkidd3@xxxxxxxxxxx>
Date: Sat, 3 Jan 2009 20:55:07 -0000
Re:  Cant remove meta data
Thanks Martin,
Adding in that <xsl:template match="/">removed the unwanted text at the top. I had no idea there were built in template rules.


Graeme

--------------------------------------------------
From: "Martin Honnen" <Martin.Honnen@xxxxxx>
Sent: Saturday, January 03, 2009 2:03 PM
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re:  Cant remove meta data

Graeme Kidd wrote:

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?

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

If you only want to process TaggedPDF-doc/Part then add a template <xsl:template match="/"> <xsl:apply-templates select="TaggedPDF-doc/Part"/> </xsl:template> doing that. Otherwise the default templates kick in: http://www.w3.org/TR/xslt#built-in-rule and that way the text in the other elements is copied to the output.


--


Martin Honnen
http://JavaScript.FAQTs.com/

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.