Hello,

I try to obtain  DocumentReference from space name and page name with 
getDocument(String space, String fullname)
    Parameters:
        space - Space to use in case no space is defined in the provided 
fullname
        fullname - the full name or relative name of the document to load 

but is doesn't work with dot in document name...

My example:
document $xwiki.getDocument("MySpace",'My.Dot').getDocumentReference() return 
xwiki:My.Dot rather than xwiki:MySpace.My\.Dot
and
document $xwiki.getDocument("MySpace",'MySpace.My.Dot').getDocumentReference() 
return xwiki:MySpace\.My.Dot :-/


Any idea how I can obtain DocumentReference?
(use a regexp seem to be heavy way :-) )


Thxs
_______________________________________________
users mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to