Subject:Problem with selecting nodes for xml to csv file Author:(Deleted User) Date:11 Dec 2008 05:44 PM
Hi,
I have an xml file which I want to transform to a csv by means of an xsl. The problem is that I can't set the right attribute in my xsl:apply-templates instruction to be able to output a specific element.
Part of the xml:
<Invoice xmlns="http://www.openapplications.org/oagis" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:nl="http://ns.hr-xml.org/2004-08-02" xsi:schemaLocation="http://www.openapplications.org/oagis Invoice.xsd http://ns.hr-xml.org/2004-08-02 InvoiceAdditionalNL.xsd">
<Header>
<DocumentIds><DocumentId><Id>12601217</Id></DocumentId></DocumentIds>
<DocumentDateTime>2007-06-04T00:00:00Z</DocumentDateTime>
<Description>Voor al onze facturen geldt een standaard betalingstermijn van 14 dagen na factuurdatum.</Description>
<Note>P/flex is een handelsnaam van P/flex bv</Note>
<DocumentReferences><InvoiceDocumentReference><DocumentIds><DocumentId><Id>000000000</Id></DocumentId></DocumentIds><Description></Description></InvoiceDocumentReference></DocumentReferences>
Subject:Problem with selecting nodes for xml to csv file Author:(Deleted User) Date:12 Dec 2008 06:20 AM
Cynthia,
the XML document defines a default namespace, "http://www.openapplications.org/oagis", so you have to prefix its elements with an appropriate prefix, like in