Udtræk af OIOXML
Hej!Jeg skal ha hevet noget data ud af et OIOXML-dokument.
Beskrivelse af OIOXML - http://www.oio.dk/XML/standardisering/eHandel/materialer/OIOXMLeFaktura
eksempel på OIOXML - http://www.oio.dk/files/schematron.zip - ExamplesInvoice2.xml
Hvordan hiver jeg data ud af xml-filen og vist på en html vha xsl?! Jeg kan ikke få det her til at virke:
<?xml version="1.0" encoding="utf-8"?>
<Invoice xmlns:main="http://rep.oio.dk/ubl/xml/schemas/0p71/maindoc/" xmlns:h="http://www.w3.org/1999/xhtml" xmlns="http://rep.oio.dk/ubl/xml/schemas/0p71/pie/" xmlns:com="http://rep.oio.dk/ubl/xml/schemas/0p71/common/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://rep.oio.dk/ubl/xml/schemas/0p71/pie/
http://rep.oio.dk/ubl/xml/schemas/0p71/pie/piestrict.xsd">
<html>
<head>
<title></title>
</head>
<body>
<P>
<TABLE id="Table1" cellSpacing="1" cellPadding="1" width="800" border="0">
<TR>
<TD style="WIDTH: 109px">Kunde</TD>
<xsl:template match="/">
<TD style="WIDTH: 416px"><xsl:value-of select="Invoice/BuyerParty/PartyName/Name"/></TD>
</xsl:template>
<TD style="WIDTH: 71px">Diverse</TD>
<TD></TD>
</TR>
<TR>
<TD style="WIDTH: 109px">Navn</TD>
<TD style="WIDTH: 416px"></TD>
<TD style="WIDTH: 71px">Dato</TD>
<TD></TD>
</TR>
<TR>
<TD style="WIDTH: 109px">Adresse</TD>
<TD style="WIDTH: 416px"></TD>
<TD style="WIDTH: 71px">Ordrenr</TD>
<TD></TD>
</TR>
<TR>
<TD style="WIDTH: 109px">Postnr og by</TD>
<TD style="WIDTH: 416px"></TD>
<TD style="WIDTH: 71px">Sælger</TD>
<TD></TD>
</TR>
<TR>
<TD style="WIDTH: 109px">Telefon</TD>
<TD style="WIDTH: 416px"></TD>
<TD style="WIDTH: 71px"></TD>
<TD></TD>
</TR>
</TABLE>
</P>
<P> </P>
<P>
</P>
</body>
</html>
håber i kan hjælpe :)
