|
Re: Dynamic ENTITY resolution [message #223059 is a reply to message #223042] |
Fri, 24 October 2008 16:24 |
Eclipse User |
|
|
|
Originally posted by: dcarver.starstandard.org
Have you defined your entities in a DTD? You can also implement a
Custom Resolver that creates the necessary entity resolver I would think.
Dave
Michael Giroux wrote:
> I am working on a project that employs dynamic ENTITY resolution. The
> XML validates correctly at runtime, but I'm not able to validate in
> Eclipse. I know about xml catalog configuration, but I'm not sure how
> to configure the catalog to handle the dynamic ENTITY resolution that
> occurs at runtime.
>
> Pointers to documentation will be appreciated.
>
> Michael
>
|
|
|
|
Re: Dynamic ENTITY resolution [message #223132 is a reply to message #223064] |
Fri, 24 October 2008 20:03 |
Eclipse User |
|
|
|
Originally posted by: dcarver.starstandard.org
Michael Giroux wrote:
>> You can also implement a Custom Resolver that creates the necessary
>> entity resolver I would think.
>
> If you can point me to docs that explain how to lash one into Eclipse,
> that will get me on my way.
An example is to use the following sample code from the XSL Tools project:
<!-- The magic which detects XSLT 1.0 or 2.0 stylesheets and supplies
the correct XSD -->
<extension
point="org.eclipse.wst.common.uriresolver.resolverExtensions ">
<resolverExtension
class="org.eclipse.wst.xsl.core.resolver.ResolverExtension"
stage="prenormalization">
</resolverExtension>
</extension>
The above code use the
org.eclipse.wst.common.uriresolver.resolveExtensions point to resolve
the correct Grammar to use when loading an XSLT stylesheet. I'm
assuming the same thing can be done to help with your custom entity
resolvers that aren't currently hooked into the WTP framework.
You can find the XSL Tools code in the /cvsroot/webtools project under
incubator/sourceediting/plugins/org.eclipse.wst.xsl.core
Dave
|
|
|
|
Powered by
FUDForum. Page generated in 0.03545 seconds