System.Xml.Xsl.Qil.QilTypeChecker.CheckXsltCopy C# (CSharp) Method

CheckXsltCopy() public method

public CheckXsltCopy ( QilBinary node ) : XmlQueryType
node QilBinary
return XmlQueryType
        public XmlQueryType CheckXsltCopy(QilBinary node) {
            CheckXmlType(node.Left, XmlQueryTypeFactory.NodeNotRtf);
            CheckXmlType(node.Right, XmlQueryTypeFactory.NodeS);
            return XmlQueryTypeFactory.Choice(node.Left.XmlType, node.Right.XmlType);
        }
        

Usage Example

Beispiel #1
0
        public QilBinary XsltCopy(QilNode left, QilNode right)
        {
            QilBinary n = new QilBinary(QilNodeType.XsltCopy, left, right);

            n.XmlType = _typeCheck.CheckXsltCopy(n);
            TraceNode(n);
            return(n);
        }
QilTypeChecker