|
From: Alan E. <ala...@gm...> - 2007-06-29 23:21:31
|
For some flavors of XML, a publicly available schema is defined in a DTD or XML schema. There are a couple of built-in grammars which are included in the XML plugin, but if you put a proper DTD or XML schema declaration at the top (which usually specifies a URL to download the schema), the XML plugin can request, download and cache the schema from a remote host. After that, it knows what elements are allowed where, and what attributes are allowed with each element. So the trick is, you have to find a DTD or XML schema for coldfusion, get the URL where it is accessible, and then put the proper fields in the header of your XML document. Once you have that, the tag editor should work, showing you checkboxes for all of the possible attribs of the current element. On 6/29/07, David Gardner <jgg...@gm...> wrote: > So what is the feature of jEdit that stores what attributes should be > with which tags, and gives you a GUI tag editor? > > SideKick? > XML Plugin? > > > On 6/21/07, David Gardner <jgg...@gm...> wrote: > > Well, ColdFusion is a tag-based programming language, similar to > > HTML/XML. It's probably not strictly XML compliant though. > > > > I just know so little about SideKick parsers, XML Plugin DTDs and > > Schemas that I really don't know if they were meant to be used that > > way. > > > > For instance, ColdFusion has a tag that usually looks like this: > > > > <cfquery name="query_name" dataSource="ds_name" username="username"> > > ...SQL statement here... > > </cfquery> > > > > > > On 6/21/07, Alan Ezust <ala...@gm...> wrote: > > > I suppose a DTD or an XML schema would help there, if coldfusion is indeed a > > > valid flavor of XML. > > > > > > > > > > > > On 6/21/07, David Gardner < jgg...@gm...> wrote: > > > > Well, I haven't found that the XML plugin has any ColdFusion-specific > > > > features (like tag completion), but it certainly helps with things > > > > like selecting the area between tags, or going to the matching tag, > > > > etc. > > > > > > > > I tried to use the "Edit tag at caret..." action, but I got an error: > > > > "The element <cfquery> is not defined." > > > > > > > > Do I have to create some kind of "dtd" or "catalog" with the data for > > > > the ColdFusion tags? > > > > Or do I have to create some kind of Sidekick parser? > > > > > > > > I skimmed through the docs (reading where it seemed relevant), but > > > > didn't see anything on if this feature is what would enable customized > > > > tag-completion. > > > > > > > > But in Sidekick, I am using the "xml" parser for ColdFusion documents. > > > > So I think that is what enables me to use the general XML features on > > > > CF docs. > > > > > > > > > > > > On 6/21/07, Matthieu Casanova <cho...@gm...> wrote: > > > > > I'm not sure, but you could maybe use the XML plugin with Coldfusion > > > isn't it ? > > > > > > > > > > Matthieu > > > > > > > > > > 2007/6/20, David Gardner <jgg...@gm...>: > > > > > > I work with ColdFusion files, which are tag-based, like HTML. Is > > > > > > there a plugin that would let me select a tag (with associated > > > > > > attributes) and edit them via a gui? > > > > > > > > > > > > Is that what SideKick is for? > > > > > > If so, it doesn't seem like sidekick has a built-in parser for > > > > > > ColdFusion. How can I create one? > > > > > > > > > > > > > > > ------------------------------------------------------------------------- > > > > > > This SF.net email is sponsored by DB2 Express > > > > > > Download DB2 Express C - the FREE version of DB2 express and take > > > > > > control of your XML. No limits. Just data. Click to get it now. > > > > > > http://sourceforge.net/powerbar/db2/ > > > > > > -- > > > > > > ----------------------------------------------- > > > > > > jEdit Users' List > > > > > > jEd...@li... > > > > > > > > > https://lists.sourceforge.net/lists/listinfo/jedit-users > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------- > > > > This SF.net email is sponsored by DB2 Express > > > > Download DB2 Express C - the FREE version of DB2 express and take > > > > control of your XML. No limits. Just data. Click to get it now. > > > > http://sourceforge.net/powerbar/db2/ > > > > -- > > > > ----------------------------------------------- > > > > jEdit Users' List > > > > jEd...@li... > > > > https://lists.sourceforge.net/lists/listinfo/jedit-users > > > > > > > > > > > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > -- > ----------------------------------------------- > jEdit Users' List > jEd...@li... > https://lists.sourceforge.net/lists/listinfo/jedit-users > |