public static XPathItem ToXPathItem(String value)
        {
            if (value == null)
            {
                throw new ArgumentNullException("value");
            }

            return(SystemItemFactory.CreateString(value));
        }
        public static XPathNavigator ToInputNode(object value)
        {
            if (value == null)
            {
                throw new ArgumentNullException("value");
            }

            XPathItem item = value as XPathItem;

            if (item != null)
            {
                return(ToInputNode(item));
            }

            var itemFactory = new SystemItemFactory();

            return(itemFactory.CreateDocument(value).CreateNavigator());
        }
 public static XPathItem ToXPathItem(Char value)
 {
     return(SystemItemFactory.CreateString(value.ToString()));
 }
 public static XPathItem ToXPathItem(DateTime value)
 {
     return(SystemItemFactory.CreateDateTime(value));
 }
 public static XPathItem ToXPathItem(Single value)
 {
     return(SystemItemFactory.CreateDouble((Double)value));
 }
 public static XPathItem ToXPathItem(Boolean value)
 {
     return(SystemItemFactory.CreateBoolean(value));
 }
Exemple #7
0
 public SystemXsltProcessor()
 {
     this.Settings     = XsltSettings.TrustedXslt;
     this._ItemFactory = new SystemItemFactory();
 }
 public SystemXsltProcessor()
 {
     this.Settings = XsltSettings.TrustedXslt;
      this._ItemFactory = new SystemItemFactory();
 }