Did you know abouth son John?
And James?
James Scott
Vital • Scotland, Births and Baptisms, 1564-1950
James Scott person details
Name James Scott
Sex Male
Father's Name Walter Scott
Father's Sex Male
Mother's Name Jessie Scott
Mother's Sex Female
Event Type Birth
Event Date 5 May 1855
Event Place Selkirk, Selkirkshire, Scotland, United Kingdom
Event Place (Original) Selkirk, Selkirk, Scotland
Not aware of a James although I can see you've found a birth record. I'll look again for the family in 1861 but by then both parents have died.
Kit
This may be another red herring or maybe not

Name Gideon Jameson
Marriage Date 16 Sep 1836 Selkirk, Selkirk, Scotland
Spouse Janet Scott
1841
Gideon Jamieson is with 2 more of the same name , with a James Scott and more Scotts.
1851 They have 5 children.
I have only put James down .
1861 Selkirk
Gideon Jamieson 47 Head
Janet Jamieson 45
James Scott 8 foster son b Selkirk
1871
Gideon Jamieson 57
Janet Jamieson 56
James Jamieson 16 Son
1881
Janet Jamieson 65 Head
Gideon Buckham 18 Grandson
1881
James Scott 28 Head
Jessie Scott 27 Wife
George Scott 5 Son
Beatrice Scott 3 Daughter
Janet Scott 1 Daughter
Still around in 1891 and 1901.