Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Dynamic ENTITY resolution
Dynamic ENTITY resolution [message #223042] Fri, 24 October 2008 15:27 Go to next message
Michael Giroux is currently offline Michael GirouxFriend
Messages: 81
Registered: July 2009
Location: Phoenix, AZ
Member
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 #223059 is a reply to message #223042] Fri, 24 October 2008 16:24 Go to previous messageGo to next message
Eclipse UserFriend
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 #223064 is a reply to message #223059] Fri, 24 October 2008 16:30 Go to previous messageGo to next message
Michael Giroux is currently offline Michael GirouxFriend
Messages: 81
Registered: July 2009
Location: Phoenix, AZ
Member
Dave,

> Have you defined your entities in a DTD?

Part of the problem (for me) is that I cannot find the DTDs if they exist.
I've inherited the project, and so far I have not been able to locate
DTDs. I was informed that the project uses a Custom Resolver which I
referred to as Dynamic resolver in original post.

> 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.

Thanks
Michael


> 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 Go to previous messageGo to next message
Eclipse UserFriend
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
Re: Dynamic ENTITY resolution [message #223137 is a reply to message #223132] Fri, 24 October 2008 20:31 Go to previous message
Michael Giroux is currently offline Michael GirouxFriend
Messages: 81
Registered: July 2009
Location: Phoenix, AZ
Member
David Carver wrote:
> ...
> You can find the XSL Tools code in the /cvsroot/webtools project under
> incubator/sourceediting/plugins/org.eclipse.wst.xsl.core
> Dave

Thanks Dave. I'll look into this.

Michael
Previous Topic:Import war file into EAR Project programatically using API J2EE Operations API
Next Topic:Doubt about the right project to place the JPA facet and persistence.xml file
Goto Forum:
  


Current Time: Thu Apr 25 05:35:39 GMT 2024

Powered by FUDForum. Page generated in 0.03166 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top