Exemplo n.º 1
0
        private string CreateIconPath()
        {
            StringBuilder sb = new StringBuilder();

            sb.Append("file:///");
            sb.Append(TransformPath.Replace(@"\", "/"));
            sb.Append("/");
            return(sb.ToString());
        }
Exemplo n.º 2
0
        private static XsltArgumentList GetParameters(XmlNode rNode)
        {
            var parameterList = new XsltArgumentList();

            foreach (XmlNode rParamNode in rNode.ChildNodes)
            {
                if (rParamNode.Name == "param")
                {
                    string name  = XmlUtils.GetManditoryAttributeValue(rParamNode, "name");
                    string value = XmlUtils.GetManditoryAttributeValue(rParamNode, "value");
                    if (value == "TransformDirectory")
                    {
                        value = TransformPath.Replace("\\", "/");
                    }
                    parameterList.AddParam(name, "", value);
                }
            }
            return(parameterList);
        }
        private static XmlUtils.XSLParameter[] GetParameters(int cParams, XmlNode rNode)
        {
            var parameterList = new XmlUtils.XSLParameter[cParams];
            int i             = 0;

            foreach (XmlNode rParamNode in rNode.ChildNodes)
            {
                if (rParamNode.Name == "param")
                {
                    string sName  = XmlUtils.GetManditoryAttributeValue(rParamNode, "name");
                    string sValue = XmlUtils.GetManditoryAttributeValue(rParamNode, "value");
                    if (sValue == "TransformDirectory")
                    {
                        sValue = TransformPath.Replace("\\", "/");
                    }
                    parameterList[i] = new XmlUtils.XSLParameter(sName, sValue);
                    i++;
                }
            }
            return(parameterList);
        }