Klocker Christoph | 1 Feb 2005 10:56
Picon
Favicon

Filling Combo Box with Element Enumerations

Hi, 
I have searched for any mailing list archive - is there any available???

I want to fill up a combo box with the values of a enumeration list of an element. Ist this possible?
It worked with attributes, couldn't work it out with element enumerations.

Here my Element definition

<xs:element name="zeitschrift">
		<xs:simpleType>
			<xs:restriction base="xs:NMTOKENS">
				<xs:enumeration value="ÖStZ"/>
				<xs:enumeration value="ARD"/>
				<xs:enumeration value="FJ"/>
				<xs:enumeration value="SWK"/>
				<xs:enumeration value="SWI"/>
				<xs:enumeration value="ecolex"/>
			</xs:restriction>
		</xs:simpleType>
</xs:element>

And may xml structure

<verweis>
         <artikel>
           <zeitschrift>ARD</zeitschrift>
           <fundstelle>5476/4/2004</fundstelle>
         </artikel>
</verweis>

(Continue reading)

Kenneth Johansson | 2 Feb 2005 09:37
Picon

Problem open DocBook file

Hi,
 
One of our customers downloaded the R2.8 of XXE to view one of our DocBook documents, which is perfectly valid btw.
 
He gets this error message and I don't know what might be the problem. He also mentioned that he has the same problem when opening userguide.xhtml. I assume he means the userguide shipped with XXE.

 
Please help.
 
Best regards,
 
/Kenneth
 
 

--------------------------------------------------------
Kenneth Johansson       Technical Documentation Manager
Sectra Imtec AB
Teknikringen 20         E-mail: ke-joh AT sectra DOT se
SE-583 30 Linköping     Phone:  +46 13 23 52 00
SWEDEN                  Web:    http://www.sectra.se

 

--
XMLmind XML Editor Support List
xmleditor-support <at> xmlmind.com
http://www.xmlmind.com/mailman/listinfo/xmleditor-support
Diane Rainaud | 1 Feb 2005 18:53
Picon

How to delete a link ID

I'm brand new to using XMLmind editor and have what is probably a very
basic question.  While "playing" with a document to learn this software,
I created a link ID (Insert xref) with a value of "Test".  Now I'd like
to delete that so it no longer displays in the list of IDs in the Select
ID" dialog box.  I don't believe anything is linked to that ID (and
that's a separate question...how can I tell is that ID is being used?)
but can't figure out how to delete it.

Any help would be greatly appreciated.

Diane

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

Hussein Shafie | 2 Feb 2005 11:01
Picon

Re: Filling Combo Box with Element Enumerations

Klocker Christoph wrote:
> Hi, 
> I have searched for any mailing list archive - is there any available???
> 
> I want to fill up a combo box with the values of a enumeration list of an element. Ist this possible?
> It worked with attributes, couldn't work it out with element enumerations.
> 
> Here my Element definition
> 
> <xs:element name="zeitschrift">
> 		<xs:simpleType>
> 			<xs:restriction base="xs:NMTOKENS">
> 				<xs:enumeration value="ÖStZ"/>
> 				<xs:enumeration value="ARD"/>
> 				<xs:enumeration value="FJ"/>
> 				<xs:enumeration value="SWK"/>
> 				<xs:enumeration value="SWI"/>
> 				<xs:enumeration value="ecolex"/>
> 			</xs:restriction>
> 		</xs:simpleType>
> </xs:element>
> 
> And may xml structure
> 
> <verweis>
>          <artikel>
>            <zeitschrift>ARD</zeitschrift>
>            <fundstelle>5476/4/2004</fundstelle>
>          </artikel>
> </verweis>
> 
> I tried it with the xpath expression
> verweis > artikel > zeitschrift{
>     content:    combo-box(values,
xpath("join(//verweis/artikel/zeitschrift[not(.=following::zeitschrift)], '\A')"));
> }
> Which worked, but as I have about 1000 <zeitschrift> elements, it takes nearly 10 minutes to walk through
> 
> -> maybe there should be an option to just evaluate an xpath run through just once and use it for ALL combo boxes
> 

We have not found any problem with elements such as "zeitschrift".

What follows should work fine:

---
zeitschrift {
     content: combo-box();
}
---

By *not* specifying the labels and the values of the combo-box(), you 
force XXE to use the schema to find them.

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

Hussein Shafie | 2 Feb 2005 11:19
Picon

Re: Problem open DocBook file

Kenneth Johansson wrote:
> One of our customers downloaded the R2.8 of XXE to view one of our 
> DocBook documents, which is perfectly valid btw.

The message means that XXE cannot open "sysadm_guide_WISE_HPUX.xml" because

* This document has a <!DOCTYPE> such as

---
<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
   "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd">
---

* and "docbookx.dtd" cannot be downloaded from "www.oasis-open.org" 
(typically because the user is not connected to the internet).

Now, the real question is: why does XXE need to download "docbookx.dtd" 
from "www.oasis-open.org"?

--> First possible answer: your DocBook document contains a <!DOCTYPE> 
such as

---
<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
   "http://www.oasis-open.org/docbook/xml/4.4beta1/docbookx.dtd">
---

and DocBook V4.4 is not bundled with XXE and/or is not available locally 
with the proper entry in catalog.xml.

--> Second possible answer: the catalog.xml of your user has been 
removed, has been corrupted, is the wrong one, etc.

 > He gets this error message and I don't know what might be the problem.
 > He also mentioned that he has the same problem when opening
 > userguide.xhtml. I assume he means the userguide shipped with XXE.

Therefore, the second answer seems to be the right one.

Your user needs:

* to uninstall XXE,

* to manually delete directory C:\Program Files\XMLmind_XML_Editor\ if 
needed too,

* to manually delete directory C:\Documents and Settings\<user>\xxe2\,

* to reinstall XXE from scratch,

* to test the new install by loading userguide.xhtml and userguide.xml 
(found at the bottom of the File menu after a ``first install''.).

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

Hussein Shafie | 2 Feb 2005 11:35
Picon

Re: How to delete a link ID

Diane Rainaud wrote:
> I'm brand new to using XMLmind editor and have what is probably a very
> basic question.  While "playing" with a document to learn this software,
> I created a link ID (Insert xref) with a value of "Test".  Now I'd like
> to delete that so it no longer displays in the list of IDs in the Select
> ID" dialog box.  I don't believe anything is linked to that ID (and
> that's a separate question...how can I tell is that ID is being used?)
> but can't figure out how to delete it.

With XMLmind XML Editor, all elements are treated the same.

To delete an element:

1/ Select it. For example, click on the xref and you'll see a red box 
around it.

2/ Delete it. For example, click on the trash can icon of the toolbar or 
press on the Del key or press Ctrl-K.

--> If it does not work, it means that the DTD does not allow this 
operation. For example, you cannot delete the title of a section.

Of course, an xref can *always* be deleted. The fact that the xref has 
an ID or is a link to another place does not matter: it is always 
possible to delete it.

To delete an attribute:

1/ Display the Attribute tab, if needed to.

2/ Select the element containing the attribute. For example, click on 
the xref and you'll see a red box around it.

3/ Click on the attribute name in the Attribute tab. Example: click on "id".

4/ Use the iconic button with a big blue minus sign found in the 
Attribute tab to delete the attribute.

(Alternatively you can right click on the attribute name and select 
Remove from the popup menu.)

--> If it does not work, it means that the DTD does not allow this 
operation. For example, you cannot delete the linkend of an xref.

Playing with XMLmind XML Editor is not the right way to learn this 
software. There are things in it that are impossible to guess. Please, 
take the time to read our tutorial: 
http://www.xmlmind.com/xmleditor/_distrib/docs/user/userguidetoc.html or
http://www.xmlmind.com/xmleditor/_distrib/docs/user/userguide.pdf

Yes, the tutorial is based on XHTML but that does not matter at all. 
Everything which is teached in it (concepts!) can be applied to all the 
other document types.

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

Rob Smith | 2 Feb 2005 12:17
Favicon

Using DocBook XML DTD V4.4

Hi All,
Norman Walsh has just released DocBook 4.4, which adds some new elements 
including package, bibliolist, and biblioref.

To use DocBook 4.4 with XXE, you need to modify the DTD to add xml:space 
'preserve' as a default attribute on "linespecific" elements, i.e. 
literallayout, programlisting, programlistingco, screen, screenco and 
screenshot. For previous versions of DockBook this was done by modifying 
either docbookx.dtd or dbpoolx.mod to include the file 
preservespace.ent. This doesn't work for 4.4, because in the new version 
the entity xml-space.attrib has been added to linespecific.attrib, 
defined as:

<!ENTITY % xml-space.attrib "xml:space (preserve) #IMPLIED">

This adds xml:space as an optional attribute to all "linespecific" elements.

My solution was to add the following at the top of dbpoolx.mod:

<!ENTITY % xml-space.attrib "xml:space (default|preserve) 'preserve'">

to make 'preserve' the default value for xml:space on the linespecific 
elements.

Of course, you also need to modify catalog.xml and docbook.xxe, or 
extend them in your user config directory.

	Rob Smith

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

Bornemann, Frank | 2 Feb 2005 12:45
Picon

User's wish for XXE

Hello,

our wish for the improvement of XXE is to have a message displayed if during opening a document some references to mediaobjects (videos, graphics etc.) do not find a corresponding file (displaying the missing files/links similar to the message in case of missing xi:includes).

Best regards from Germany,

Frank Bornemann
Technical Writer
Project Management & Mechanical Engineering


Neumag I Saurer

Neumag
Zweigniederlassung der
Saurer GmbH & Co. KG
Christianstraße 168-170
D-24536 Neumünster
www.neumag.de


--
XMLmind XML Editor Support List
xmleditor-support <at> xmlmind.com
http://www.xmlmind.com/mailman/listinfo/xmleditor-support
Philip Nye | 2 Feb 2005 12:23

case sensitivity in stylesheets

Hello,

I'm trying to configure a stylesheet for my own custom application.

It appears that attribute(attName) pseudo-element does not work properly when the attribute name has
upper case letters.

If I change the DTD and stylesheet to a lower case name it works fine, but as soon as I introduce upper-case the
elementName::attribute(attName) construction fails to match.

Is this a bug, a feature or some mistake of my own?

Thanks,

Philip

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

Hussein Shafie | 2 Feb 2005 13:45
Picon

Re: case sensitivity in stylesheets

Philip Nye wrote:
> I'm trying to configure a stylesheet for my own custom application.
> 
> It appears that attribute(attName) pseudo-element does not work properly when the attribute name has
upper case letters.
> 
> If I change the DTD and stylesheet to a lower case name it works fine, but as soon as I introduce upper-case
the elementName::attribute(attName) construction fails to match.

In CSS, identifiers are not case-sensitive. attName is an identifier, 
therefore attName is understood as being attname.

If you really want to specify camel-cased attName, you need to use 
something which is *not* an identifier:

* A string: attribute("attName")
* OR a qualified name: attribute(|attName) (|attName is standard CSS3 
syntax)

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


Gmane