thanks for the reply. I did go to the site and tried using that option but its still including the declarations, could it be a configuration problem?
That's weird, cos it works for me.
Can you post a brief code block (with sample XML and XSL) that demonstrates it not working? I'll have a look (although perhaps not until tomorrow now, as I've about done my dash for these forums for the day).
here is the code from the xsl file:
<?xml version="1.0" encoding="utf-8"?><!-- DWXMLSource="data/itemfeed.xml" --><!DOCTYPE xsl:stylesheet [
<!ENTITY nbsp " ">
<!ENTITY copy "©">
<!ENTITY reg "®">
<!ENTITY trade "™">
<!ENTITY mdash "—">
<!ENTITY ldquo "“">
<!ENTITY rdquo "”">
<!ENTITY pound "£">
<!ENTITY yen "¥">
<!ENTITY euro "€">
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output omit-xml-declaration="yes" encoding="utf-8" doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"/>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
And here is some sample data from the XML file:
<?xml version="1.0" encoding="UTF-8" ?>
Thanks alot, i appreciate the help.
Ah, OK I see what you mean. I think.
Your problem is that you're telling it to put all that extraneous stuff in there.
When I run your code, the result is this:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></head><body>111222333444</body></html>
I presume you are only wanting this:
If that's the case, get rid of all the doctype/html/head/body crap form your XSL. If you don't want it, don't put it in there!
Or are we talking @ cross-purposes here?
the HTML, Body tags etc are fine, they can stay, its the actual tags that surround the results that i want to get rid of. When i look at the source code, the results show up like this: <?xml version="1.0" encoding="UTF-8"?><EANNumber>111222333444</EANNumber>. I only want the 111222333444, i dont want the surrounding tags.
Well I think you better post your actual code in its entirety then. Because when I slap <cfxml> tags around each of the XSL and XML you provide, and do an xmlTransForm() on them, I just get the numbers (and all the other HTML crap), but no <EANNumber> tags. I get *exactly* what I posted before.
My code is thus:
[YOUR XSL HERE]
[YOUR XML HERE]
That outputs what I cited above.