Project

Profile

Help

Revision 0fe3e66d

Added by O'Neil Delpratt about 1 year ago

Update to C# code

View differences:

latest10/hen/csource/api/Destination.cs
933 933
    }*/
934 934

  
935 935

  
936
    internal class AbstractDestination : XmlDestination
937
    {
938
        private Xslt30Transformer xslt30Transformer;
939
        private XmlDestination destination;
940

  
941
        internal AbstractDestination(Xslt30Transformer xslt30Transformer, XmlDestination destination)
942
        {
943
            this.xslt30Transformer = xslt30Transformer;
944
            this.destination = destination;
945
        }
946

  
947
        JDestination XmlDestination.GetUnderlyingDestination()
948
        {
949
            return xslt30Transformer.GetUnderlyingXslt30Transformer.asDocumentDestination(destination.GetUnderlyingDestination());
950
        }
951
    }
952

  
953

  
936 954
    /// <summary>
937 955
    /// An <c>XdmDestination</c> is an <c>XmlDestination</c> in which an <c>XdmNode</c> 
938 956
    /// is constructed to hold the output of a query or transformation: 
latest10/hen/csource/api/Errors.cs
25 25
    public class StaticError : Exception
26 26
    {
27 27

  
28
        internal XPathException exception;
28
        private XPathException exception;
29 29
        internal bool isWarning;
30 30

  
31 31
        // internal constructor: Create a new StaticError, wrapping a Saxon XPathException
latest10/hen/csource/api/Xslt.cs
1222 1222
    /// </remarks>
1223 1223

  
1224 1224
    [Serializable]
1225
    public class XsltTransformer : XdmDestination
1225
    public class XsltTransformer : XmlDestination
1226 1226
    {
1227 1227

  
1228 1228
        /* private JXsltController controller;
......
1571 1571
            transformer.setParameter(net.sf.saxon.s9api.QName.fromEQName(name.EQName), net.sf.saxon.s9api.XdmValue.wrap(value.value));
1572 1572
        }
1573 1573

  
1574
        public JDestination GetUnderlyingDestination() {
1575
            return transformer;
1576
        }
1577

  
1574 1578

  
1575 1579

  
1576 1580
        /// <summary>
......
1591 1595
            set
1592 1596
            {
1593 1597
                this.xmlDestination = value;
1598
                transformer.setDestination(value.GetUnderlyingDestination());
1594 1599
            }
1595 1600

  
1596 1601
        }
......
2816 2821
            }
2817 2822
        }
2818 2823

  
2819
        internal class AbstractDestination : XmlDestination
2820
        {
2821
            private Xslt30Transformer xslt30Transformer;
2822
            private XmlDestination destination;
2823 2824

  
2824
			internal AbstractDestination(Xslt30Transformer xslt30Transformer, XmlDestination destination)
2825
            {
2826
                this.xslt30Transformer = xslt30Transformer;
2827
                this.destination = destination;
2828
            }
2829

  
2830
			JDestination XmlDestination.GetUnderlyingDestination()
2831
            {
2832
                return xslt30Transformer.GetUnderlyingXslt30Transformer.asDocumentDestination(destination.GetUnderlyingDestination());
2833
            }
2834
        }
2835 2825
    }
2836 2826

  
2837 2827
    /// <summary> An <c>XsltPackage</c> object represents the result of compiling an XSLT 3.0 package, as

Also available in: Unified diff