C
csgraham74
Ok - i was wondering if someone could help me.
im basically trying to embed an html string in piece of XML. i
created an xsl and added the CDATA into the xml around the html i wish
to render. In my calling page i create an XML data island (excuse the
terminology as im new to this stuff) to pull in the xml fields and
to hopefully render the html as xml (see Details node ) .
Unfortunately this doesnt work and it just displays as a string
output.
If anyone could give me some assistnace on this it would be a great
help, if im totally barking up the wrong tree please tell me.
the only thing i must say is that i need to creata HTML inside the XML
node as im using a third party control to create this.
My current output is a table with all fields pulling in corrctly
except the details node.
Any help on this appreciated.
XML DATA ISLAND
<xml id="cdcat" src="/experience/includes/test.xml"></xml>
<table border="1" datasrc="#cdcat">
<tr>
<td><span datafld="Title"></span></td>
<td><span datafld="Date"></span></td>
<td><span datafld="Info"></span></td>
<td><span datafld="Details"></span></td>
</tr>
XML
<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet type="text/xsl" href="style.xsl"?>
<Data>
<Title>Test 1</Title>
<Date>20th June 2007</Date>
<Info>ghsdgfhsdgfh fdsfhjsdfhjh fsdfjhsdfjhhfjh fhsjdfhjshdfjhj
sjdfhjsdhfjhj fhjshdfsdj jdfhjhsdfhhfhsf</Info>
<Details><!
[CDATA[<P>xxxxx<BR>hfsjdhjsdfh<BR><BR>sdfjksjdfkksfj<BR><BR>sdfjmsdfsdfj<BR><BR><BR>sdfjskjdfkjskjfksj<BR></
P>]]></Details>
</Data>
XSL
<?xml version="1.0" encoding="iso-8859-1" ?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
</xsl:template>
</xsl:stylesheet>
im basically trying to embed an html string in piece of XML. i
created an xsl and added the CDATA into the xml around the html i wish
to render. In my calling page i create an XML data island (excuse the
terminology as im new to this stuff) to pull in the xml fields and
to hopefully render the html as xml (see Details node ) .
Unfortunately this doesnt work and it just displays as a string
output.
If anyone could give me some assistnace on this it would be a great
help, if im totally barking up the wrong tree please tell me.
the only thing i must say is that i need to creata HTML inside the XML
node as im using a third party control to create this.
My current output is a table with all fields pulling in corrctly
except the details node.
Any help on this appreciated.
XML DATA ISLAND
<xml id="cdcat" src="/experience/includes/test.xml"></xml>
<table border="1" datasrc="#cdcat">
<tr>
<td><span datafld="Title"></span></td>
<td><span datafld="Date"></span></td>
<td><span datafld="Info"></span></td>
<td><span datafld="Details"></span></td>
</tr>
XML
<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet type="text/xsl" href="style.xsl"?>
<Data>
<Title>Test 1</Title>
<Date>20th June 2007</Date>
<Info>ghsdgfhsdgfh fdsfhjsdfhjh fsdfjhsdfjhhfjh fhsjdfhjshdfjhj
sjdfhjsdhfjhj fhjshdfsdj jdfhjhsdfhhfhsf</Info>
<Details><!
[CDATA[<P>xxxxx<BR>hfsjdhjsdfh<BR><BR>sdfjksjdfkksfj<BR><BR>sdfjmsdfsdfj<BR><BR><BR>sdfjskjdfkjskjfksj<BR></
P>]]></Details>
</Data>
XSL
<?xml version="1.0" encoding="iso-8859-1" ?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
</xsl:template>
</xsl:stylesheet>