xsi:schemaLocation attribute not permitted on xpl document

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

xsi:schemaLocation attribute not permitted on xpl document

Adrian Baker
I tried adding the xsi:schemaLocation attribute to the root of my xpl document, so that editors like Eclipse WTP & jEdit can use this as a hint for their xml editing abilities (in editor schema validation, attribute/element completion etc).

Unfortunately it looks like Orbeon is being a bit strict when validating the pipeline:

file:/C:/dev/Venice.trunk/Forms/CommonRenderer/src/test/java/com/orchestral/component/forms/renderer/pipeline/echo-pipeline.xpl, line 6, column 133: Error unexpected attribute "xsi:schemaLocation"(schema: http://www.orbeon.com/oxf/pipeline)
    at org.orbeon.oxf.processor.validation.MSVValidationProcessor$3$2.error(MSVValidationProcessor.java:197)
    at com.sun.msv.verifier.Verifier.onError(Verifier.java:336)
    at com.sun.msv.verifier.Verifier.onError(Verifier.java:328)
    at com.sun.msv.verifier.Verifier.feedAttribute(Verifier.java:269)
    at com.sun.msv.verifier.Verifier.startElement(Verifier.java:211)
    at org.orbeon.oxf.xml.TeeContentHandler.startElement(TeeContentHandler.java:80)
    at org.orbeon.oxf.xml.ForwardingContentHandler.startElement(ForwardingContentHandler.java:87)
    at org.orbeon.oxf.xml.SAXStore.startElement(SAXStore.java:353)
    at orbeon.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:485)
    at orbeon.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:320)
    at orbeon.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(XMLNSDocumentScannerImpl.java:615)
    at orbeon.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1635)
    at orbeon.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:338)
    at orbeon.apache.xerces.parsers.XML11Configuration.parse(XML11Configuration.java:828)
    at orbeon.apache.xerces.parsers.XML11Configuration.parse(XML11Configuration.java:758)
    at orbeon.apache.xerces.parsers.XMLParser.parse(XMLParser.java:148)
    at orbeon.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1178)
    at org.orbeon.oxf.processor.generator.URLGenerator$URLResourceHandler.readXML(URLGenerator.java:791)
    at org.orbeon.oxf.processor.generator.URLGenerator$1.readImpl(URLGenerator.java:402)
    at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl$1.read(ProcessorImpl.java:1012)
    at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(ProcessorImpl.java:1195)
    at org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java:348)
    at org.orbeon.oxf.processor.validation.MSVValidationProcessor.access$700(MSVValidationProcessor.java:44)
    at org.orbeon.oxf.processor.validation.MSVValidationProcessor$3.readImpl(MSVValidationProcessor.java:219)
    at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl$1.read(ProcessorImpl.java:1012)
    at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(ProcessorImpl.java:1195)
    at org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java:348)
    at org.orbeon.oxf.processor.pipeline.PipelineProcessor.access$900(PipelineProcessor.java:66)
    at org.orbeon.oxf.processor.pipeline.PipelineProcessor$2.readImpl(PipelineProcessor.java:457)
    at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl$1.read(ProcessorImpl.java:1012)
    at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(ProcessorImpl.java:1195)
    at org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java:348)
    at org.orbeon.oxf.processor.ProcessorImpl.readInputAsDOM4J(ProcessorImpl.java:403)
    at org.orbeon.oxf.processor.ProcessorImpl.readInputAsDOM4J(ProcessorImpl.java:412)
    at org.orbeon.oxf.processor.pipeline.PipelineReader.start(PipelineReader.java:79)
    at org.orbeon.oxf.processor.pipeline.PipelineProcessor.readPipelineConfig(PipelineProcessor.java:469)
    at org.orbeon.oxf.processor.pipeline.PipelineProcessor.access$2200(PipelineProcessor.java:66)
    at org.orbeon.oxf.processor.pipeline.PipelineProcessor$3.read(PipelineProcessor.java:626)
    at org.orbeon.oxf.processor.ProcessorImpl.readCacheInputAsObject(ProcessorImpl.java:470)
    at org.orbeon.oxf.processor.pipeline.PipelineProcessor.start(PipelineProcessor.java:622)
    at org.orbeon.oxf.pipeline.InitUtils.runProcessor(InitUtils.java:86)
    at com.orchestral.component.forms.renderer.pipeline.PipelineRunner.run(PipelineRunner.java:121)
    ... 18 more



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: xsi:schemaLocation attribute not permitted on xpl document

Alessandro Vernet
Administrator
Hi Adrian,

The pipeline is validated with pipeline.rng which you can find in
ops.jar. Since this is Relax NG, the attribute xsi:schemaLocation on
the root element is not recognized automatically. However, you should
be able to modify this schema to allow an optional xsi:schemaLocation
on the root element. You can then re-inject pipeline.rng in ops.jar
and see if this works for you. If it does, we'll be happy to check in
this change.

Alex

On 2/13/07, Adrian Baker <[hidden email]> wrote:

>
>  I tried adding the xsi:schemaLocation attribute to the root of my xpl
> document, so that editors like Eclipse WTP & jEdit can use this as a hint
> for their xml editing abilities (in editor schema validation,
> attribute/element completion etc).
>
>  Unfortunately it looks like Orbeon is being a bit strict when validating
> the pipeline:
>
> file:/C:/dev/Venice.trunk/Forms/CommonRenderer/src/test/java/com/orchestral/component/forms/renderer/pipeline/echo-pipeline.xpl,
> line 6, column 133: Error unexpected attribute "xsi:schemaLocation"(schema:
> http://www.orbeon.com/oxf/pipeline)
>      at
> org.orbeon.oxf.processor.validation.MSVValidationProcessor$3$2.error(MSVValidationProcessor.java:197)
>      at
> com.sun.msv.verifier.Verifier.onError(Verifier.java:336)
>      at
> com.sun.msv.verifier.Verifier.onError(Verifier.java:328)
>      at
> com.sun.msv.verifier.Verifier.feedAttribute(Verifier.java:269)
>      at
> com.sun.msv.verifier.Verifier.startElement(Verifier.java:211)
>      at
> org.orbeon.oxf.xml.TeeContentHandler.startElement(TeeContentHandler.java:80)
>      at
> org.orbeon.oxf.xml.ForwardingContentHandler.startElement(ForwardingContentHandler.java:87)
>      at
> org.orbeon.oxf.xml.SAXStore.startElement(SAXStore.java:353)
>      at
> orbeon.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:485)
>      at
> orbeon.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:320)
>      at
> orbeon.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(XMLNSDocumentScannerImpl.java:615)
>      at
> orbeon.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1635)
>      at
> orbeon.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:338)
>      at
> orbeon.apache.xerces.parsers.XML11Configuration.parse(XML11Configuration.java:828)
>      at
> orbeon.apache.xerces.parsers.XML11Configuration.parse(XML11Configuration.java:758)
>      at
> orbeon.apache.xerces.parsers.XMLParser.parse(XMLParser.java:148)
>      at
> orbeon.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1178)
>      at
> org.orbeon.oxf.processor.generator.URLGenerator$URLResourceHandler.readXML(URLGenerator.java:791)
>      at
> org.orbeon.oxf.processor.generator.URLGenerator$1.readImpl(URLGenerator.java:402)
>      at
> org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl$1.read(ProcessorImpl.java:1012)
>      at
> org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(ProcessorImpl.java:1195)
>      at
> org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java:348)
>      at
> org.orbeon.oxf.processor.validation.MSVValidationProcessor.access$700(MSVValidationProcessor.java:44)
>      at
> org.orbeon.oxf.processor.validation.MSVValidationProcessor$3.readImpl(MSVValidationProcessor.java:219)
>      at
> org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl$1.read(ProcessorImpl.java:1012)
>      at
> org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(ProcessorImpl.java:1195)
>      at
> org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java:348)
>      at
> org.orbeon.oxf.processor.pipeline.PipelineProcessor.access$900(PipelineProcessor.java:66)
>      at
> org.orbeon.oxf.processor.pipeline.PipelineProcessor$2.readImpl(PipelineProcessor.java:457)
>      at
> org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl$1.read(ProcessorImpl.java:1012)
>      at
> org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(ProcessorImpl.java:1195)
>      at
> org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java:348)
>      at
> org.orbeon.oxf.processor.ProcessorImpl.readInputAsDOM4J(ProcessorImpl.java:403)
>      at
> org.orbeon.oxf.processor.ProcessorImpl.readInputAsDOM4J(ProcessorImpl.java:412)
>      at
> org.orbeon.oxf.processor.pipeline.PipelineReader.start(PipelineReader.java:79)
>      at
> org.orbeon.oxf.processor.pipeline.PipelineProcessor.readPipelineConfig(PipelineProcessor.java:469)
>      at
> org.orbeon.oxf.processor.pipeline.PipelineProcessor.access$2200(PipelineProcessor.java:66)
>      at
> org.orbeon.oxf.processor.pipeline.PipelineProcessor$3.read(PipelineProcessor.java:626)
>      at
> org.orbeon.oxf.processor.ProcessorImpl.readCacheInputAsObject(ProcessorImpl.java:470)
>      at
> org.orbeon.oxf.processor.pipeline.PipelineProcessor.start(PipelineProcessor.java:622)
>      at
> org.orbeon.oxf.pipeline.InitUtils.runProcessor(InitUtils.java:86)
>      at
> com.orchestral.component.forms.renderer.pipeline.PipelineRunner.run(PipelineRunner.java:121)
>      ... 18 more
>
>
>
> --
> You receive this message as a subscriber of the [hidden email]
> mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>
>

--
Orbeon Forms - Web 2.0 Forms for the Enterprise
http://www.orbeon.com/



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws