Altova Mailing List Archives>Archive Index >xsl-list Archive Home >Recent entries >Thread Prev - [xsl] xml cells transformed in to a 2-d table, some table cells missing, full table required - constant variables. [Thread Next] Re: [xsl] Cant remove meta dataTo: Date: 1/4/2009 2:32:00 AM 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: [xsl] 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/ | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
