This is my document with some Urdu text between English.
\documentclass[smallextended]{svjour3}
\usepackage{xltxtra}
\usepackage{fontspec}
\usepackage{polyglossia}
\setmainlanguage{english}
\setotherlanguage{urdu}
\newfontfamily\urdufont[Script=Arabic,Language=Urdu,Scale=1.5]{Jameel Noori Nastaleeq}
\begin{document}
\title{Title goes here}
\maketitle
\section{Introduction}
English text here \texturdu{ اردو ٹیکسٹ} English text here
\end{document}
When I compile with LuaLaTeX or XeLaTeX it gives the following error:
! Undefined control sequence.
<argument> \LaTeX3 error:
Erroneous variable \c__fontspec_shape_n_n_tl used!
l.3530 \emfontdeclare{ \emshape, \eminnershape }
?