Garrett Smith | 2 Apr 03:13 2005

Last open/save directory

Is there a way to get XMLmind to remember the last directory used for
open and save across sessions (i.e. remember even if I shutdown
XMLmind)?

 -- Garrett

--
XMLmind XML Editor Support List
xmleditor-support <at> xmlmind.com
http://www.xmlmind.com/mailman/listinfo/xmleditor-support

Philip Nye | 1 Apr 17:52 2005

Finding Relax schema

I cannot persuade XXE to find my RelaxNG schema where I want to store it. I access the same source from several
different hosts so I want to use local catalogs to resolve the location.

I have the location in my config file:
  <relaxng location="myschema.rng" .../>

Does this resolve via any XML Catalogs in force? I have tried all these elements in my catalog but to no avail:

  <public publicId="NAME FROM RELAXNG ELEMENT" uri="my/local/location"/>
  <system systemId="myschema.rng" uri="my/local/location"/>
  <uri name="myschema.rng" uri="my/local/location"/>

These work for my DTDs but I cannot get them to do so for Relax schemas.

Thanks,
Philip

--
XMLmind XML Editor Support List
xmleditor-support <at> xmlmind.com
http://www.xmlmind.com/mailman/listinfo/xmleditor-support

Hussein Shafie | 4 Apr 10:10 2005
Picon

Re: Finding Relax schema

Philip Nye wrote:
> I cannot persuade XXE to find my RelaxNG schema where I want to store it. I access the same source from
several different hosts so I want to use local catalogs to resolve the location.
> 
> I have the location in my config file:
>   <relaxng location="myschema.rng" .../>
> 
> Does this resolve via any XML Catalogs in force? I have tried all these elements in my catalog but to no avail:
> 
>   <public publicId="NAME FROM RELAXNG ELEMENT" uri="my/local/location"/>
>   <system systemId="myschema.rng" uri="my/local/location"/>
>   <uri name="myschema.rng" uri="my/local/location"/>
> 
> These work for my DTDs but I cannot get them to do so for Relax schemas.

All URLs found in config files are resolved using XML Catalogs (mainly 
to deal with the "xxe-config:" prefix).

But I am not sure your problem is related to the proper use of XML catalogs.

Please do this:

[1] Add:

<relaxng location="myschema.rng" .../>

to your config file.

[2] Copy myschema.rng to the directory containing your config file.

(Continue reading)

Hussein Shafie | 4 Apr 10:21 2005
Picon

Re: Last open/save directory

Garrett Smith wrote:
> Is there a way to get XMLmind to remember the last directory used for
> open and save across sessions (i.e. remember even if I shutdown
> XMLmind)?

In principle, this has always worked fine for "File|Open" and "File|Save 
As".

"File|New", "File|Open as Template", "File|Open Copy" use the current 
working directory for the first "File|Save" or the first "File|Save As" 
operation.

In case your are talking about "File|Open" and "File|Save As", a 
possible cause of the problem is that XMLmind XML Editor fails to create 
a user preferences directory.

Please check the existence and date of this user preferences directory.

XXE user preferences directory is:

     * $HOME/.xxe2 on Unix, Linux and Mac.
     * C:\winnt\Profiles\<user>\xxe2 on Windows NT.
     * C:\Documents and Settings\<user>\xxe2 on Windows 2000/XP.

This directory contains:

config/
plugin/
spell/
preferences.properties
(Continue reading)

Hussein Shafie | 4 Apr 15:33 2005
Picon

[XXE] XMLmind XML Editor V2.9 Patch 1

XMLmind XML Editor V2.9 Patch 1 can be downloaded from
http://www.xmlmind.com/xmleditor/download.shtml

====================================================
V2.9 Patch 1 (April 4, 2005)

Enhancements:
-------------

   * XXE now supports attribute default values as
     specified in RELAX NG DTD Compatibility:
     http://www.relaxng.org/compatibility-20011203.html

     The compatibility of the schema with this
     feature is (very strictly) checked by XXE and
     not by Jing. This means that a schema found
     valid by Jing but improperly using this
     feature will be rejected by XXE.

   * Changed command xhtml.preview to make it easy
     specifying which web browser to use. Example:
     add this property element to your
     customize.xxe in order to preview XHTML files
     using Firefox:
+--------------------------------------------------+
<property
  name="XXE_HTML_PREVIEW_COMMAND">"C:\Program Files\Mozilla
Firefox\firefox.exe" "%U"</property>
+--------------------------------------------------+

(Continue reading)

Garrett Smith | 4 Apr 18:27 2005

RE: Last open/save directory

I'm running Windows XP and do have a preferences.properties file. I
opened it and verified that it contains recently modified preferences
(e.g. last opened file list, etc.).

XMLmind does remember the last used directory for opening files.

However, at least on my system, it does not remember it when saving new
files:

 - Create a new document
 - Modify it
 - Save it -- the folder defaults to XMLmind home directory

I would expect it, on save, to default to the last directory used for an
open or save.

 -- Garrett

Hussein Shafie wrote:
> Garrett Smith wrote:
>> Is there a way to get XMLmind to remember the last directory used for
>> open and save across sessions (i.e. remember even if I shutdown
>> XMLmind)?
> 
> In principle, this has always worked fine for "File|Open" and
> "File|Save As".
> 
> "File|New", "File|Open as Template", "File|Open Copy" use the current
> working directory for the first "File|Save" or the first "File|Save
> As" operation.
(Continue reading)

Hussein Shafie | 5 Apr 09:49 2005
Picon

Re: Last open/save directory

Garrett Smith wrote:
> I'm running Windows XP and do have a preferences.properties file. I
> opened it and verified that it contains recently modified preferences
> (e.g. last opened file list, etc.).
> 
> XMLmind does remember the last used directory for opening files.
> 
> However, at least on my system, it does not remember it when saving new
> files:
> 
>  - Create a new document
>  - Modify it
>  - Save it -- the folder defaults to XMLmind home directory
> 
> I would expect it, on save, to default to the last directory used for an
> open or save.

OK, we'll try to improve this for next release.

 
--
XMLmind XML Editor Support List
xmleditor-support <at> xmlmind.com
http://www.xmlmind.com/mailman/listinfo/xmleditor-support

Jan Bares | 7 Apr 09:03 2005
Picon

xref CSS limitation?

Hi,

when I use <xref> in DocBook document, it should be enough to fill in the
required linkend attribute to see the linked text (for <section> and it's
<title>). It works fine for generated documents (HTML, WML), but XXE itself
displays only the name of id instead of the text (for instance title of
<section> when the id is on the <section>). I have to either add the
xreflabel and duplicate the title text or created another id on <title> and
use endterm attribute.

Is this CSS limitation?

Here is the code used to render xref in XXE (2.9p1):

xref {
content: icon(left-link)
xpath("if(id( <at> linkend)/ <at> xreflabel, id( <at> linkend)/ <at> xreflabel,  <at> linkend)");
...
}

xref[endterm] {
content: icon(left-link) xpath("if(id( <at> endterm), id( <at> endterm),  <at> endterm)");
}

Thanks Jan

 
--
XMLmind XML Editor Support List
xmleditor-support <at> xmlmind.com
(Continue reading)

Hussein Shafie | 7 Apr 10:03 2005
Picon

Re: xref CSS limitation?

Jan Bares wrote:
> when I use <xref> in DocBook document, it should be enough to fill in the
> required linkend attribute to see the linked text (for <section> and it's
> <title>). It works fine for generated documents (HTML, WML), but XXE itself
> displays only the name of id instead of the text (for instance title of
> <section> when the id is on the <section>). I have to either add the
> xreflabel and duplicate the title text or created another id on <title> and
> use endterm attribute.
> 
> Is this CSS limitation?
> 
> Here is the code used to render xref in XXE (2.9p1):
> 
> xref {
> content: icon(left-link)
> xpath("if(id( <at> linkend)/ <at> xreflabel, id( <at> linkend)/ <at> xreflabel,  <at> linkend)");
> ...
> }
> 
> xref[endterm] {
> content: icon(left-link) xpath("if(id( <at> endterm), id( <at> endterm),  <at> endterm)");
> }

No, this is not a ``CSS limitation''. XXE behaves exactly as specified 
in the 2 above rules (which are far from being standard CSS).

These 2 rules come from our understanding of 
http://www.docbook.org/tdg/en/html/xref.html

-----------------------------------------------------------------------
(Continue reading)

Ebner, ZG 8640, BN | 6 Apr 09:39 2005
Picon

Using a catalog to define protocols

Hello,

we've used the following approach to clean up our links: In our catalog.xml,
we used something like the following
	<rewriteURI 
		rewritePrefix="file:///D:/docbook/dist/work/" 
		uriStartString="local://"/>	
That way, it's possible to access all local files using the protocol local.
An example to that would be:

<!ENTITY % localentities SYSTEM "local://entities/local.entities.dtd">
%localentities;

My only problem (and that's a killer one), is that XMLmind refuses to load
the document while complaining about an unknown Protocol "local:".

As XMLmind itself uses a similar line in its own catalog (<rewriteURI
uriStartString="xxe-config:" rewritePrefix="." />), I was wondering why it's
complaining about mine...

Thanks for your help,

Klaus Ebner

> ------------------
Zentrale Gruppe Fachkonzepte, ZG8640 
> IT BRIEF 
> 
> office:  +49(0)228-18219166
mobile:  +49(0)151-17431599
(Continue reading)


Gmane