[MarkLogic Dev General] xhtml loading question
Michael Blakeley
michael.blakeley at marklogic.com
Tue Aug 14 13:21:18 PDT 2007
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.
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 4532 bytes
Desc: S/MIME Cryptographic Signature
Url : http://xqzone.marklogic.com/pipermail/general/attachments/20070814/08d33270/smime.bin
More information about the General
mailing list