Xu Shang
Xu Shang, courtesy name Yisheng or Qiuqing, formally Viscount of Dongguan, was an official of the Chinese Tang dynasty, serving as a chancellor during the reign of Emperor Yizong of Tang.
Background
It is not known when Xu Shang was born. He was a fifth-generation descendant of Xu Yougong, a famed judge during the reign of Wu Zetian. His family claimed to be originally descended from mythical Xia dynasty judge Gao Yao and traced its ancestry through a line of officials of the Qin dynasty, the Han dynasty, the state Cao Wei, the Jin dynasty, the Liu Song dynasty, the Southern Qi dynasty, the Liang dynasty, the Chen dynasty, and the Tang dynasty. His father Xu Zai served as a judge at the supreme court. Xu Shang had at least one younger brother, Xu Gong. By Xu Zai's time, the family was living in Xinzheng. In Xu Shang's youth, he was a hermit in the Zhongtiao Mountains, but he later came out of the hermit living and passed the imperial examinations in the Jinshi class.During Emperor Xuānzong's reign
Sometime during the Dazhong era of Emperor Xuānzong, Xu Shang was promoted to be Shangshu Zuo Cheng, one of the secretaries general of the executive bureau of government. At a later point, Emperor Xuānzong sent him to survey the border regions and to issue edicts in those regions. He was then made the military governor of Hezhong Circuit. While he was serving there, there were a group of Tujue remnants who crossed the Yellow River and submitted to him. He settled them and organized them into an elite fighting force of 1,000 men.Xu was later transferred to Shannan East Circuit. As Shannan East had rugged terrain, there were many mountains where bandits gathered. Xu trained an elite group of soldiers to combat banditry. As of 858, when a mutiny at Hunan Circuit expelled the governor Han Cong, Xu sent these elite soldiers to suppress the Hunan mutiny. He also sent some of his elite soldiers, under his officer Han Jiyou, to aid Wei Zhou the governor of Jiangxi Circuit in combating a mutiny at Jiangxi, and subsequently Wei was able to suppress the mutiny there.