[xsl] RE: Data Islands

Subject: [xsl] RE: Data Islands
From: "Chris Bayes" <Chris@xxxxxxxxxxx>
Date: Tue, 24 Apr 2001 16:32:12 +0100
Your first problem is that your xml isn't valid. You need to declare the web
and del namespaces i.e.
<web:Agenda active="true" id="Agenda_2" productcode="" xmlns:web="a"
The problem with that is as soon as you add any attributes to the top level
tag it breaks the data island. Don't ask me why.
The closest I can get to work is
<?xml version="1.0" ?>
	<del:Name_SET active="true" id="Agenda_2" productcode="" xmlns:del="b">
		<del:Name>TESTING THE NAME</del:Name>

<XML ID="test" src="island2.xml"></XML>
<table datasrc="#test">
<td><div datafld="del:Name"></div></td>

Ciao Chris

XML/XSL Portal

>-----Original Message-----
>From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
>[mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Karolien
>Sent: 24 April 2001 15:21
>To: XSL-List@xxxxxxxxxxxxxxxxxxxxxx
>sorry, maybe stupid question, I'm just expierenting with data islands...
>Having some trouble with getting data out of my XML file.
>all XML elements have a namespace.
>XML file: (test.xml)
><?xml version="1.0" encoding="ISO-8859-1" ?>
><web:Agenda active="true" id="web:Agenda_2" productcode="">
>	<del:Name_SET>
>		<del:Name>TESTING THE NAME</del:Name>
>	</del:Name_SET>
>HTML file:
><xml id="test" src="test.xml"></xml>
><table border="1" datasrc="#test">
><td><span datafld="del:Name"></span></td>
>=> No values are replaced out of XML file ??
>ideas ?
> XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Current Thread