Hussein Shafie | 3 Apr 09:49 2006

Re: Displaying CSS in XHTML

Cay Horstmann wrote:
> I am currently editing an XHTML document that makes heavy use of CSS.
> Many paragraphs have class attributes with values such as "Note",
> "Caution", etc. A style sheet is attached for pretty rendering.
> 
> However, editing in XXE was rather unintuitive since I could only tell
> the paragraph types apart by paying close attention to the Attributes
> table.
> 
> I was about to ask how to solve that problem, but I found it out myself.
>  Add this to addon/config/xhtml/css/xhtml.css
> 
> p:before {
>     content: attr(class) " ";
>     background-color: #eedd77;
>     font-size: smaller;
> }
> 
> Very impressive: The styled paragraphs are now prefixed by Note,
> Caution, and so on.
> 
> However, I'd like a small improvement. I'd like to not apply the style
> when there is no class attribute. (Right now, each paragraph without
> class attribute is preceded by a yellow space.) Is that possible?

Replace your CSS rule by this more precise one:

p[class]:before {
    content: attr(class) " ";
    background-color: #eedd77;
(Continue reading)

Hussein Shafie | 3 Apr 09:58 2006

Re: question about encoding options

오융근 wrote:
>  
> During test your product, I have a hard problem.
> In my case, I need 'euc-kr' encoding option.
> But I have no idea how to add 'euc-kr' on option/save/encoding.
> Is it possible to open and save xml files which use 'euc-kr' encoding?

I'm sorry but the 'euc-kr' is not supported by the XML parser we use.
Therefore, there is also no way to save a document using 'euc-kr'[*].

---
[*] It would be ridiculous not to be able to reopen a document we have
saved.

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

Hussein Shafie | 3 Apr 10:09 2006

Re: Stylesheet question - changing colour of referenced documents

Paul Moloney wrote:
> I've been able to change the default XMLMind stylesheet so that it, for
> example, shows elements that have a particular vendor attribute
> in a particular colour.
> 
> However, I want to do something a little different. By default, XMLMind
> shows a referenced document in pale blue. Is there any way to change
> this colour based on part of the pathname of the referenced document? (In
> my particular example, I want to use a different colour if any part of
> the pathname is "/import/".

XXE uses a few built-in CSS rules (see
http://www.xmlmind.com/xmleditor/_distrib/doc/csssupport/built_in_css_rules.html).
One of them is:

*:read-only {
    background-color: #E0F0F0;
}

If you redefine this rule in your own CSS, you'll be able to change the
color of referenced documents.

(:read-only is a proprietary pseudo-class described in
http://www.xmlmind.com/xmleditor/_distrib/doc/csssupport/properties.html)

Now about the "/import/" problem, I'm affraid that there is currently no
way to solve it, the best we can do being described here:
http://www.xmlmind.com/xmleditor/_distrib/doc/csssupport/properties.html.

Look at E:property("foo", "bar"), where the property of interest would
(Continue reading)

Paul Moloney | 3 Apr 12:22 2006
Picon

Re: Stylesheet question - changing colour of referenced documents

> Now about the "/import/" problem, I'm affraid that there is currently no
> way to solve it, the best we can do being described here:
> http://www.xmlmind.com/xmleditor/_distrib/doc/csssupport/properties.html.

Hi Hussein,

I'm guessing that something like:

 *:property("LOCATION_INFO","../common/legal_notice.xml"):before {
    display: block;
    color: red;
    font-size: small;
    text-align: center;
    content: "LOCATION_INFO=" property("LOCATION_INFO") "\A" icon(down);
}

..only works for a specific file? I've tried it with directory names 
("LOCATION_INFO","../common/")
and wildcarded path names ("LOCATION_INFO","*common*") and neither works. 
I'm guessing
this is what you mean by the problem being unresolvable? Are there any plans 
for updates so that
LOCATION_INFO could take such values, or any other workaround?

Cheers,

-pm

http://oceanclub.blogspot.com

(Continue reading)

Hussein Shafie | 3 Apr 14:57 2006

Re: Stylesheet question - changing colour of referenced documents

Paul Moloney wrote:
> I'm guessing that something like:
> 
> *:property("LOCATION_INFO","../common/legal_notice.xml"):before {
>    display: block;
>    color: red;
>    font-size: small;
>    text-align: center;
>    content: "LOCATION_INFO=" property("LOCATION_INFO") "\A" icon(down);
> }
> 
> ..only works for a specific file? 

Yes.

> I've tried it with directory names ("LOCATION_INFO","../common/")
> and wildcarded path names ("LOCATION_INFO","*common*") and neither
> works. I'm guessing
> this is what you mean by the problem being unresolvable? 

Right.

> Are there any plans for updates so that
> LOCATION_INFO could take such values, or any other workaround?

I'm sorry but the answer is no to both questions.

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

Hussein Shafie | 3 Apr 15:36 2006

XMLmind XML Editor 3.2.0

XMLmind XML Editor Standard Edition 3.2.0 can be downloaded from
http://www.xmlmind.com/xmleditor/download.shtml

Professional Edition users, please upgrade using this form:
http://www.xmlmind.com/store/download.php

(the above form is usually accessed through
http://www.xmlmind.com/xmleditor/upgrade.html).
  _____________________________________________

                3.2 (April 03, 2006)

A configuration for DITA can be downloaded and
installed using Options|Install Add-ons. (This
first release has two important limitations,
therefore please take the time to read the
description of the add-on before installing and
using it.)

In order to support DITA simply and elegantly,
XMLmind XML Editor had to be made more generic and
more powerful:

  * XXE has a more powerful table editor allowing
    to insert, copy, cut, paste, delete columns
    and rows, and allowing to increment or
    decrement the number of columns and the number
    of rows spanned by a cell (these operations
    are often called merge and split).

(Continue reading)

Paul Moloney | 3 Apr 15:20 2006
Picon

Re: Stylesheet question - changing colour of referenced documents

> I'm sorry but the answer is no to both questions.

Shame :( Ah well, thanks!

Regards,
-pm

http://oceanclub.blogspot.com

"Whack my bonobo"

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

Per Thomsen | 4 Apr 02:55 2006

refsection, refsect1, in refentry documents?

Hi,
I'm a relative newbie to DocBook and XXE. I've had great luck with a couple of books I've been writing for a project I'm working on. Now I am starting to write man pages, and I'm using the refentry template from within XXE standard (File -> New).

My problem is that I'm not able to add a 'sub-section' to my document. 'refsect1', etc are not available to be added in a 'para' inside a 'refsection'. When I read documentation on the refentry DTD, it seems to me that I should be able to add lower-level sections to a refsection.

What am I missing? How can I have sub-sections (all I want is one level down)? Should I use a different template?

If my question is a FAQ, I'm sorry, but I have not been able to find anything about it on the XMLMind web site.

Thanks in advance for any help.

Thanks,
Per
-- -- Per Reedtz Thomsen | Reedtz Consulting, LLC | F: 209 883 4119 V: 209 883 4102 | pthomsen <at> reedtz.com | C: 209 996 9561 GPG ID: 1209784F | Yahoo! Chat: pthomsen | AIM: pthomsen

--
XMLmind XML Editor Support List
xmleditor-support <at> xmlmind.com
http://www.xmlmind.com/mailman/listinfo/xmleditor-support
Paul Moloney | 3 Apr 16:59 2006
Picon

Re: Alternative to entities - elegant solution?

> For now, the best we can do, which is elegant, maintenable, easy to use
> and separates content from style, is described here:
> http://www.xmlmind.com/xmleditor/_distrib/doc/user/tutorial_modular_document.html#extensive_copy_as_reference
> (But may be in your case, this is not relevant.)

I found this variable add-on from techwriter.dk:

http://techwriter.dk/tools/xxe/glosstool.html

Easy to use, but it doesn't universally work; for example, I can't create a 
variable
for "publication date" and insert it in the <pubdate> element: I get a 
"Document
reference command is not allowed in this context" error, presumably because 
the
element referenced is a <glossterm>.

(Although I CAN edit the XML in a text editor, insert the required markup, 
and reopen
the file in XMLMind without error; for example)

      <pubdate>
            <xi:include href="../common/variables.xml"
            xmlns:xi="http://www.w3.org/2001/XInclude"
          xpointer="myterms.pubdate" />
      </pubdate>

And even then, the resulting text is a glossterm and so styled differently
(with italics) from the surrounding text. So, really not much good.

It looks like we'll have to go the copy-as-reference route, though I had
negative feedback when I demoed this method here at work.

I guess I'm just very surprised that as yet, there seems to be no easy
way of maintaining variables in DocBook files. It didn't even occur to me
to check was this possible before we moved from Word to DocBook.

Regards,

-pm

http://oceanclub.blogspot.com

"My fellow Americans, I have not been entirely truthful with
you. I did giggittygiggiydoo that girl. I gashmogied her
gaflabity with my googus. And I am sorry."

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

Tomas Klinkovsky | 4 Apr 09:15 2006
Picon

Can CSS generate both Section title and Table header before table?

Hello,

I have following XML fragment:

<table>
	<row>...</row>
	<row>...</row>
	...
</table>

and I would like to display it (speaking about CSS for visual editing) 
as a table with table header, preceded by section title. The HTML 
formatting equivalent would be this:

<h2>SECTION TITLE</h2>
<table>
	<thead>TABLE HEADER</thead>
	<tbody>...</tbody>
</table>

I know how to generate either table header or section title from CSS. 
But is it possible to generate both at once?

Thank you

Tomas Klinkovsky

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


Gmane