|
View:
New views
6 Messages
—
Rating Filter:
Alert me
|
|
|
Schema aware processingIIRC, in Saxon 9.1
Processor p = new Processor(true) returned either a schema-aware processor or threw an exception. In Saxon 9.2, Processor p = new Processor(true) returns...well, I'm not really sure. Apparently it looks for the license file and returns either a licensed configuration or an unlicensed one. How can I tell if it found a license? How can I tell it I want a schema-aware processor? Be seeing you, norm -- Norman Walsh <ndw@...> | There is no such thing as an absolute http://nwalsh.com/ | certainty, but there is assurance | sufficient for the purposes of human | life.--John Stuart Mill ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ saxon-help mailing list archived at http://saxon.markmail.org/ saxon-help@... https://lists.sourceforge.net/lists/listinfo/saxon-help |
|
|
Re: Schema aware processingNorman Walsh <ndw@...> writes:
> How can I tell if it found a license? Configuration.displayLicenseMessage: public void displayLicenseMessage() { } Is that right? Be seeing you, norm -- Norman Walsh <ndw@...> | The greatest mystery is not that we http://nwalsh.com/ | have been flung at random between the | profusion of matter and of the stars, | but that within this prison we can draw | from ourselves images powerful enough | to deny our nothingness.--Andre Malraux ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ saxon-help mailing list archived at http://saxon.markmail.org/ saxon-help@... https://lists.sourceforge.net/lists/listinfo/saxon-help |
|
|
Re: Schema aware processingIn 9.2, new Processor(true) will give you the most capable processor it can
create for you, and you can then determine what you have been given by looking at its properties (if necessary, dropping down to the underlying Configuration). One of the properties is given by Processor.isSchemaAware(), which tells you whether the processor has the capability to load schemas and run schema-aware stylesheets and queries. This property will be true only if you are running Saxon-EE and a valid license is installed. In 9.2 however, schema-awareness is best regarded not so much a property of a configuration, as of an individual stylesheet or query. So when you're using Saxon-EE, some queries/transforms might be schema-aware while others running within the same configuration are not. Michael Kay Saxonica > -----Original Message----- > From: Norman Walsh [mailto:ndw@...] > Sent: 03 November 2009 18:17 > To: saxon-help@... > Subject: [saxon] Schema aware processing > > IIRC, in Saxon 9.1 > > Processor p = new Processor(true) > > returned either a schema-aware processor or threw an exception. > > In Saxon 9.2, > > Processor p = new Processor(true) > > returns...well, I'm not really sure. Apparently it looks for > the license file and returns either a licensed configuration > or an unlicensed one. > > How can I tell if it found a license? > > How can I tell it I want a schema-aware processor? > > Be seeing you, > norm > > -- > Norman Walsh <ndw@...> | There is no such thing as an absolute > http://nwalsh.com/ | certainty, but there is assurance > | sufficient for the purposes of human > | life.--John Stuart Mill > ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ saxon-help mailing list archived at http://saxon.markmail.org/ saxon-help@... https://lists.sourceforge.net/lists/listinfo/saxon-help |
|
|
Re: Schema aware processingNo, I shouldn't think that's likely to be useful. It will throw an exception
if there's no license, which I guess you could catch, but there are better ways. Processor.isSchemaAware() will return true if you are using Saxon-EE and have any kind of license that is currently being issued. It will return false for Saxon-PE. (In theory I could issue a license that gave access only to Saxon-EE features other than schema processing, for example just to the optimizer, but currently I don't.) For more detail, you could do for example processor.getUnderlyingConfiguration().isLicensedFeature(Configuration.Licen seFeature.SCHEMA_AWARE_XSLT) which would return false if the customer has bought the EEQ-01 package which allows schema-aware XQuery only. Regards, Michael Kay http://www.saxonica.com/ http://twitter.com/michaelhkay > -----Original Message----- > From: Norman Walsh [mailto:ndw@...] > Sent: 03 November 2009 18:30 > To: saxon-help@... > Subject: Re: [saxon] Schema aware processing > > Norman Walsh <ndw@...> writes: > > How can I tell if it found a license? > > Configuration.displayLicenseMessage: > > public void displayLicenseMessage() { > } > > Is that right? > > Be seeing you, > norm > > -- > Norman Walsh <ndw@...> | The greatest mystery is not that we > http://nwalsh.com/ | have been flung at random between the > | profusion of matter and of the stars, > | but that within this prison > we can draw > | from ourselves images powerful enough > | to deny our > nothingness.--Andre Malraux > ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ saxon-help mailing list archived at http://saxon.markmail.org/ saxon-help@... https://lists.sourceforge.net/lists/listinfo/saxon-help |
|
|
Re: Schema aware processing"Michael Kay" <mike@...> writes:
> In 9.2, new Processor(true) will give you the most capable processor it can > create for you, and you can then determine what you have been given by > looking at its properties (if necessary, dropping down to the underlying > Configuration). One of the properties is given by Processor.isSchemaAware(), > which tells you whether the processor has the capability to load schemas and > run schema-aware stylesheets and queries. This property will be true only if > you are running Saxon-EE and a valid license is installed. Ok. So the fact that I'm getting back false means that it didn't find the SA jars or didn't find my license or ... I don't know what else. Are there any switches or knobs I can turn to get some feedback about what Saxon tried to do and what it was and wasn't able to do? Be seeing you, norm -- Norman Walsh <ndw@...> | The test of courage comes when we are http://nwalsh.com/ | in the minority. The test of tolerance | comes when we are in the | majority.--Ralph W. Sockman ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ saxon-help mailing list archived at http://saxon.markmail.org/ saxon-help@... https://lists.sourceforge.net/lists/listinfo/saxon-help |
|
|
Re: Schema aware processingNorman Walsh <ndw@...> writes:
> Are there any switches or knobs I can turn to get some feedback about > what Saxon tried to do and what it was and wasn't able to do? FWIW, I did eventually manage to get all my ducks lined up in a row, but some option for some sort of feedback might be nice. Be seeing you, norm -- Norman Walsh <ndw@...> | Much of the social history of the http://nwalsh.com/ | Western world over the past three | decades has involved replacing what | worked with what sounded good.--Thomas | Sowell ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ saxon-help mailing list archived at http://saxon.markmail.org/ saxon-help@... https://lists.sourceforge.net/lists/listinfo/saxon-help |
| Free embeddable forum powered by Nabble | Forum Help |