Project

Profile

Help

xsl:import-schema compilation error

Added by Anonymous about 16 years ago

Legacy ID: #4910672 Legacy Poster: Kalyan Moulick (amikalyan)

I was trying to perform schema-aware xsl transform in my .NET app using Saxon-SA (trial license). In the xsl I use one xsl:import-schema statement. <xsl:import-schema namespace="http://www.w3.org/1999/xhtml" schema-location="file:///C:/saxon/trax/xsl/xhtml1-transitional.xsd"/> When I’m trying to compile the xsl, its giving me one exception ( code: XTSE1650 ). Here is my simple C# code Processor processor = new Processor(true); XdmNode input = processor.NewDocumentBuilder().Build(new Uri(sourceUri)); XsltExecutable sheet = null; XsltCompiler compiler = processor.NewXsltCompiler(); XmlReader xsltReader = XmlReader.Create(xsltUri1); sheet = compiler.Compile(xsltReader); Did I miss something? Thanks in advance.


Replies (2)

RE: xsl:import-schema compilation error - Added by Anonymous about 16 years ago

Legacy ID: #4910722 Legacy Poster: Michael Kay (mhkay)

I can't see anything obviously wrong here. XTSE1650 means that for some reason the schema-aware processor hasn't been activated. Are you sure there aren't any earlier messages such as "Warning: license file not found; running in non-schema-aware mode"? I would think a failure to find the license file is the most likely cause, though it's difficult to tell with no error messages to go on. Have you tried running it from the command line? That would eliminate many of the possible causes of the problem - including problems with diagnostics going to places where you don't get to see them. Michael Kay Saxonica

RE: xsl:import-schema compilation error - Added by Anonymous about 16 years ago

Legacy ID: #4910760 Legacy Poster: Kalyan Moulick (amikalyan)

ok, I'll check and let u know..

    (1-2/2)

    Please register to reply