No, I don't think so... "The Illusionist" has barely something common with real mayerling's drama. Although the story is situated in Vienna of 19th. century and says also about Crownprince Leopold (not Rudolf) and his fiancee, but whole film is only fiction, nothing more.