[xsl] RE: Data Islands

Subject: [xsl] RE: Data Islands
From: "Chris Bayes" <Chris@xxxxxxxxxxx>
Date: Tue, 24 Apr 2001 16:32:12 +0100
Karo,
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"
xmlns:del="b">
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" ?>
<Agenda>
	<del:Name_SET active="true" id="Agenda_2" productcode="" xmlns:del="b">
		<del:Name>TESTING THE NAME</del:Name>
	</del:Name_SET>
</Agenda>

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

Ciao Chris

XML/XSL Portal
http://www.bayes.co.uk/xml


>-----Original Message-----
>From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
>[mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Karolien
>Vanstraelen
>Sent: 24 April 2001 15:21
>To: XSL-List@xxxxxxxxxxxxxxxxxxxxxx
>Subject:
>
>
>
>Hi,
>
>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>
></web:Agenda>
>
>
>HTML file:
>
><html>
><body>
><xml id="test" src="test.xml"></xml>
>TEST
><table border="1" datasrc="#test">
><tr>
><td><span datafld="del:Name"></span></td>
></tr>
></table>
></body>
></html>
>
>=> No values are replaced out of XML file ??
>ideas ?
>
>Thx,
>Karo
>
> 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