private void CopyAttributes(XmlNode source, XmlNode dest)
{
// Copy all layout attributes from the standard pattern to the output
foreach (XmlAttribute attr in source.Attributes)
{
var xa = m_dest.CreateAttribute(attr.Name);
dest.Attributes.Append(xa);
xa.Value = attr.Value;
if (attr.Name == NameAttr && !string.IsNullOrEmpty(m_layoutParamAttrSuffix))
{
// This suffix also attaches to the 'name' attribute of the layout itself
xa.Value = attr.Value + m_layoutParamAttrSuffix;
}
}
}