Exemplo n.º 1
0
        public static XPathItem ToXPathItem(String value)
        {
            if (value == null)
            {
                throw new ArgumentNullException("value");
            }

            return(SystemItemFactory.CreateString(value));
        }
Exemplo n.º 2
0
        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());
        }
Exemplo n.º 3
0
 public static XPathItem ToXPathItem(Char value)
 {
     return(SystemItemFactory.CreateString(value.ToString()));
 }
Exemplo n.º 4
0
 public static XPathItem ToXPathItem(DateTime value)
 {
     return(SystemItemFactory.CreateDateTime(value));
 }
Exemplo n.º 5
0
 public static XPathItem ToXPathItem(Single value)
 {
     return(SystemItemFactory.CreateDouble((Double)value));
 }
Exemplo n.º 6
0
 public static XPathItem ToXPathItem(Boolean value)
 {
     return(SystemItemFactory.CreateBoolean(value));
 }
Exemplo n.º 7
0
 public SystemXsltProcessor()
 {
     this.Settings     = XsltSettings.TrustedXslt;
     this._ItemFactory = new SystemItemFactory();
 }
Exemplo n.º 8
0
 public SystemXsltProcessor()
 {
     this.Settings = XsltSettings.TrustedXslt;
      this._ItemFactory = new SystemItemFactory();
 }