[Home] [By Thread] [By Date] [Recent Entries]
N David Brown wrote:
Ok, back from work now, so have had time to test =D title must not be empty. and there are more things missing in your stylesheet to make it XHTML, see my comments in my earlier post. But that shouldn't stop browsers from rendering your output, which is close enough to XHTML.
You are not using your xhtml namespace. Furthermore, the namespace is not the correct namespace. See my earlier post. You are creating HTML, ok, but not XHTML.
I took the liberty to download libxslt from here: http://www.zlatkovic.com/pub/libxml/ to test what you tested. I run libxslt like so: xsltproc dbrowntest.xslt dbrowninput.xml and it produced, using your stylesheet and your xml, the following HTML (not XML or XHTML!) output: <html xmlns:xhtml="http://www.w3.org/1999/XHTML"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title></title> </head> <body><ul> <li> tier00 <ul> tier00 <li> tier10 <ul> tier10 <li> tier20 <ul> tier20 <li>file0</li> </ul> </li> </ul> </li> </ul> </li> <li> tier01 <ul> tier01 <li> magic <ul> magic <li> random <ul> random <li>anotherFile2</li> <li>anotherFile</li> </ul> </li> </ul> </li> <li> tier11 <ul> tier11 <li> tier21 <ul> tier21 <li>file1</li> </ul> </li> </ul> </li> </ul> </li> </ul></body> </html> I just tried this, and it output only the 'value-of's, nothing more... I tried setting output to 'html', 'xml' and not including the tag at all, but nothing produced the UL and LI elements. I'm transforming using my PHP now, as Abel, suggested, and the content is dumped to a text file so there's no worry I'm missing something that's actually there ;) That was David's suggestion, not mine. I just re-emphasized ;) I am wondering what you mean with "value-of's" or what you use to look at you core content. If you use PHP, and you use it from your browser, do you actually use View Source? I tried you example, and it rendered like a tree, the same that displays on David's site.
This is no use. Once you do this, the output fails to be HTML. HTML still does not have an element <test> and will never have.
Try the link of David. I tried it, too, and I see a visual tree. Or try what I tried with XSLT. Or, if your examples above do not match your real data, try your own examples instead of the real data and go from there. In addition to checking the content-type of your output that David suggests, try running it locally like I did, rename the output xxx.html and serve the html page. If you now still see nothing, it really is some configuration error of your Apache or other server. If you suddenly see the correct output, it is also a configuration error: likely the content-type in the HTTP headers (but that shouldn't stop the View Source from showing the actual content). Cheers, -- Abel Braaksma
|

Cart



