Namespaces (XHTML)

Sep 2, 2012 at 5:33 PM

I have problem when I try to experiment with XHTML files as XML files. I must use XHTML DTD because XHTML contains entities like   (defined in the DTD). But then I have a problem with namespaces which are not working (e.g. XPath expressions). I believe namespace handling is turned off. Is there a possibility to turn it on? Thanks, Miskoy

Coordinator
Sep 3, 2012 at 8:08 AM

Hi

Could you please provide an example of a script that generates the problem?

BR

Lars

Sep 21, 2014 at 4:37 PM
Sorry, I totally forgot about this question and now I need the answer again. Here's an example which doesn't have anything to do with XHTML, but the problem is the same: namespaces. Let's say I have this xml document: <?xml version="1.0" encoding="UTF-8"?> <root xmlns="http://arhimed.matf.bg.ac.rs" xmlns:arhimed="http://arhimed.matf.bg.ac.rs"> <p>Some text about Arhimed.</p> <p>That' all. Bye.</p> </root> and I try XPath query //arhimed:p A message box pops up and says: "Namespace Manager or XsltContext needed. This query has a prefix, variable, or user-defined function." Can something be done about it? Thanks
Coordinator
Sep 22, 2014 at 1:47 PM
Hi

Currently there are no support for custom name spaces. Probably I will add it in a future release.

BR

Lars