Namespaces?

Try:

  namespace-uri(doc("/SFI/Update/news/articletest2/test.xml")/*)

-- Mike

Alex Rice wrote:
Greetings, I have MarkLogic 3.2 and I am attempting to load some XHTML
documents into the database.  I have loaded some test documents them
via the webdav interface from Windows XP. So  my test xhtml documents
are now listed in the output of cq / list : all  like this:

/SFI/Update/news/articletest2/infsec.xml - element html
/SFI/Update/news/articletest2/test.xml - element html

So it seems they were loaded as xml, not as text or binary. the top
element is html, which looks correct.  Also when i call doc() on the
URI, the entire content is returned. so it seems the content was
loaded into marklogic.

But all my test xpath expressions on these documents always return an
empty sequence. For instance these all return empty sequence in cq:

(: find all p elements :)
doc("/SFI/Update/news/articletest2/test.xml")//p

(: find title tag :)
doc("/SFI/Update/news/articletest2/infsec.xml")/html/head/title

Can someone point me in the right direction- i seem to be missing some
basic concepts here about how to load content. maybe there are special
restrictions on xhtml +xpath?

one of the xhtml documents was created with dreamweaver, and one was
created with UpCast - a MS Word utility.


Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general

Reply via email to