Hussein Shafie | 2 Jun 2008 09:51
Favicon

Re: Errors opening an IMS Content Package file

Alberto Gonzalez Tellez wrote:
> It really is an inconsistency, I have followed your
> suggestion b) and it works. I will try to post your
> findings to IMS Global Consortium :-)
> 

Thanks. Anyhow, I've added both xml.xsd official URLs  to the main XML 
catalog of XMLmind XML Editor. Which means, that from next version 
(3.8.1, released in a couple of days), it  should work fine out of the box.

-----------------
   <!-- Local copy of xml.xsd ===================================== -->

   <uri name="http://www.w3.org/2001/xml.xsd"
        uri="common/xsd/xml.xsd"/>

   <uri name="http://www.w3.org/2001/03/xml.xsd"
        uri="common/xsd/xml.xsd"/>
-----------------

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

Hussein Shafie | 2 Jun 2008 10:36
Favicon

Re: RE: Redraw command actually reverts to saved version?

Peter Desjardins wrote:
>>> I made some changes to a file, then noticed that an
>> xi:included file
>>> needed changes.  I made the changes in the included file,
>> Using XMLMind XML Editor or using an external text editor?
> 
> All changes were made using XMLMind XML Editor.  I had the two files open in different tabs of the same instance.
> 
>> Did you save the included document before switching to the
>> master document?
> 
> Yes.
> 
>> then returned to the original file.  I wanted to see my
>> changes and clicked View > Redraw.  All changes to the file were lost.
>> In the master document or in the included document?
> 
> The changes were lost in the master document.
> 
> One detail that I didn't give you before is this:  The change to the master document was to add a new
xi:included section.  Then I opened that very same section in a separate tab, edited it, and then saved it. 
Finally, I switched back to the master document and clicked View > Redraw.  Note that I had never saved the
new xi:include in the master document.
> 

I'm really sorry but even after trying to reproduce what you have 
described, I didn't manage to reproduce the problem.

All my tests were conducted on a DocBook 5 document.

(Continue reading)

Alberto González Téllez | 2 Jun 2008 11:51
Picon

Re: Errors opening an IMS Content Package file

Fine, thank you. I am trying now with QTI
(Question and Test Interoperability) but
it seems much more complex. I'll let you
know.

Hussein Shafie escribió:
> Alberto Gonzalez Tellez wrote:
>> It really is an inconsistency, I have followed your
>> suggestion b) and it works. I will try to post your
>> findings to IMS Global Consortium :-)
>>
> 
> Thanks. Anyhow, I've added both xml.xsd official URLs  to the main XML 
> catalog of XMLmind XML Editor. Which means, that from next version 
> (3.8.1, released in a couple of days), it  should work fine out of the box.
> 
> -----------------
>   <!-- Local copy of xml.xsd ===================================== -->
> 
>   <uri name="http://www.w3.org/2001/xml.xsd"
>        uri="common/xsd/xml.xsd"/>
> 
>   <uri name="http://www.w3.org/2001/03/xml.xsd"
>        uri="common/xsd/xml.xsd"/>
> -----------------
> 
> 

--

-- 
Alberto Gonzalez Tellez
(Continue reading)

Peter Desjardins | 2 Jun 2008 19:03

RE: RE: Redraw command actually reverts to saved version?

Hm. I tried a little test here and I also cannot reproduce the problem.  Maybe there was another factor I
didn't notice.

Sorry for the false alarm.

Thanks for the excellent product BTW.

Peter Desjardins
SupplyScape Corporation
http://www.supplyscape.com
+1 781 503 7441

> -----Original Message-----
> From: Hussein Shafie [mailto:hussein <at> xmlmind.com]
> Sent: Monday, June 02, 2008 4:36 AM
> To: Peter Desjardins
> Cc: xmleditor-support <at> xmlmind.com
> Subject: Re: [XXE] RE: Redraw command actually reverts to
> saved version?
>
> Peter Desjardins wrote:
> >>> I made some changes to a file, then noticed that an
> >> xi:included file
> >>> needed changes.  I made the changes in the included file,
> >> Using XMLMind XML Editor or using an external text editor?
> >
> > All changes were made using XMLMind XML Editor.  I had the
> two files open in different tabs of the same instance.
> >
> >> Did you save the included document before switching to the master
(Continue reading)

Tyrin Avery | 2 Jun 2008 18:13
Favicon

How do you set the background color for a property in a dita properties list.

Hi

 

I have text that I want to flag for filtering in dita, and I want to be able to see that visually. I used

/* ---------------------------------------------------------------------------

  Shade programmer audience

--------------------------------------------------------------------------- */

 

<at> media XMLmind-XML-Editor {

    *[audience="programmer"] {

        background-color: #FFFEDD;

    }

}

 

Here’s a sample of the XML: (this is for a DITA reference topic).

<properties>

      <property>

        <proptype audience="programmer"><xref

        href="../../DataDictionary/DELIVERTO.dita">DELIVERTO</xref></proptype>

 

        <propvalue><uicontrol>Pickup By</uicontrol></propvalue>

 

        <propdesc>Displays the name of the person picking up the

        order.</propdesc>

      </property>

</properties>

 

To create the shading. This works great for text or proptype, propvalue, propdesc. However, for the parent element, property, it doesn’t work. So I can shade text or one cell, but not a whole row.

 

What am I doing wrong?

 

Tyrin


--
XMLmind XML Editor Support List
xmleditor-support <at> xmlmind.com
http://www.xmlmind.com/mailman/listinfo/xmleditor-support
Alberto González Téllez | 3 Jun 2008 11:15
Picon

Re: Errors opening an IMS Content Package file

Hello Hussein

I am trying to change the image directory
path when generating HTML with docbook.xsl
I am unable to find where this directory
is configured to "resources", when I
use parameter img.src.path set to
"images" then the images directory
becomes "imagesresources".

Regards

Hussein Shafie escribió:
> Alberto Gonzalez Tellez wrote:
>> It really is an inconsistency, I have followed your
>> suggestion b) and it works. I will try to post your
>> findings to IMS Global Consortium :-)
>>
> 
> Thanks. Anyhow, I've added both xml.xsd official URLs  to the main XML 
> catalog of XMLmind XML Editor. Which means, that from next version 
> (3.8.1, released in a couple of days), it  should work fine out of the box.
> 
> -----------------
>   <!-- Local copy of xml.xsd ===================================== -->
> 
>   <uri name="http://www.w3.org/2001/xml.xsd"
>        uri="common/xsd/xml.xsd"/>
> 
>   <uri name="http://www.w3.org/2001/03/xml.xsd"
>        uri="common/xsd/xml.xsd"/>
> -----------------
> 
> 
> 

--

-- 
Alberto Gonzalez Tellez
E.T.S. de Informatica Aplicada.
C/ Camino de Vera s/n 46022 Valencia (Spain)
Tel: 34-96-3877007 ext 75770 Fax: 34-96-3877579
e-mail: agt <at> disca.upv.es, web: www.disca.upv.es/agt

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

Niels Grundtvig Nielsen | 3 Jun 2008 16:54
Picon
Favicon

RE: relationship between dtd and base xml file

Thanks! I'll carefully try out these helpful suggestions, and if need be
take up the offer of a review. Good support for a good product!

NGN 

-----Original Message-----
From: Hussein Shafie [mailto:hussein <at> xmlmind.com] 
Sent: vrijdag 30 mei 2008 10:54
To: Niels Grundtvig Nielsen
Cc: xmleditor-support <at> xmlmind.com
Subject: Re: [XXE] relationship between dtd and base xml file

* The template document needs to be valid. It is validated against the
schema referenced by the document if any, or the schema specified in the
configuration file otherwise.

* Make sure that your template document is really detected as being
associated to your configuration.

To check this, move your mouse over the Tab of the document view
(normally showing Untitled.xml). After 1 second, the tooltip shows
"/xxx/Untitled.xml : Name of the configuration".

* The DTD and W3C schema are persistently cached in fast loading,
binary, form. May be the schema cache has not detected that you have
modified your DTD. In such case, the template document is validated
against the old, cached, version of the DTD.

Please, use Options|Preferences, "Advanced|Schema Cache section", and
press "Clear cache". Or better, uncheck "Enable cache" while you are
developing your configuration.

More info. in: 
http://www.xmlmind.com/xmleditor/_distrib/doc/help/com.xmlmind.xmleditap
p.dialog.PreferencesEditorDialog.html#d0e9399

* If all this fails, do not hesitate to send me your prototype
configuration. I'll very quickly tell you what's wrong (probably
something very simple).

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

Hussein Shafie | 4 Jun 2008 10:57
Favicon

Re: How do you set the background color for a property in a dita properties list.

Tyrin Avery wrote:
> 
> I have text that I want to flag for filtering in dita, and I want to be 
> able to see that visually. I used
> 
> /* 
> ---------------------------------------------------------------------------
> 
>   Shade programmer audience
> 
> --------------------------------------------------------------------------- 
> */
> 
>  
> 
>  <at> media XMLmind-XML-Editor {
> 
>     *[audience="programmer"] {
> 
>         background-color: #FFFEDD;
> 
>     }
> 
> }
> 
>  
> 
> Here’s a sample of the XML: (this is for a DITA reference topic).
> 
> <properties>
> 
>       <property>
> 
>         <proptype audience="programmer"><xref
> 
>         
> href="../../DataDictionary/DELIVERTO.dita">DELIVERTO</xref></proptype>
> 
>  
> 
>         <propvalue><uicontrol>Pickup By</uicontrol></propvalue>
> 
>  
> 
>         <propdesc>Displays the name of the person picking up the
> 
>         order.</propdesc>
> 
>       </property>
> 
> </properties>
> 
>  
> 
> To create the shading. This works great for text or proptype, propvalue, 
> propdesc. However, for the parent element, property, it doesn’t work. So 
> I can shade text or one cell, but not a whole row.
> 
>  
> 
> What am I doing wrong?

Nothing at all.

The property element is styled using "display:table-row;". In XMLmind 
XML Editor, a table row is just a logical container not directly 
represented by any gadget on screen. This means that specifying a 
background-color for it is useless...unless you force its child elements 
to inherit this background-color.

We've made small changes in the DITA CSS of next release (3.8.1, 
released today) to make this work.

One of these small changes is:

proptypehd,
propvaluehd,
propdeschd,
proptype,
propvalue,
propdesc {
     display: table-cell;
     margin-left: 0;
     border: 1 solid #F0D0FF;
     padding: 2px;
     background-color: inherit; /*NEW in 3.8.1*/
}

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

Hussein Shafie | 4 Jun 2008 11:11
Favicon

Re: Errors opening an IMS Content Package file

Alberto González Téllez wrote:
> 
> I am trying to change the image directory
> path when generating HTML with docbook.xsl
> I am unable to find where this directory
> is configured to "resources", when I
> use parameter img.src.path set to
> "images" then the images directory
> becomes "imagesresources".
> 

The menu items contained in "Convert Document" have not been designed 
for experts like you but for average users who are not likely to change 
``system parameters'' like "img.src.path" (but they may want to change 
parameters such as "profile.condition" or "paper.type" using 
"Options|Customize Configuration").

That's why graphics files are automatically copied/converted to a 
(automatically created) resources/ subdirectory  when generating HTML.

If you want XXE to behave differently, I'm affraid you'll have to 
redefine a couple of process commands found in 
XXE_install_dir/addon/config/docbook/xslMenu.incl.

Process command docb.convertStep1:
---
<command name="docb.convertStep1">
   <process>
     <mkdir dir="resources" />
     <mkdir dir="raw" />

     <copyDocument to="__doc.xml">
       <resources match="(https|http|ftp)://.*" />

       <!-- Support for textdata/ <at> fileref.
            add your favorite text file extensions here: -->
       <resources
         match=".+\.(txt|text|htm|html|xml|h|c|cpp|java|js|tcl|py|pl|rb)"
         copyTo="." />

       <resources match=".+\.(png|jpg|jpeg|gif)"
                  copyTo="resources" />
       <resources match="(?:.+/)?(.+)\.(\w+)"
                  copyTo="raw" referenceAs="resources/$1.png" />
       <resources match=".+"
                  copyTo="resources" />
     </copyDocument>

     <convertImage from="raw" to="resources" format="png" />

     <mkdir dir="images/callouts" />
     <copyProcessResources resources="xsl/images/draft.png"
                           to="images" />
     <copyProcessResources 
resources=" <at> xsl/images/callouts/png_callouts.list"
                           to="images/callouts" />
   </process>
</command>
---

Notice configuration elements such as:
---
       <resources match="(?:.+/)?(.+)\.(\w+)"
                  copyTo="raw" referenceAs="resources/$1.png" />
---

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

Alberto González Téllez | 4 Jun 2008 11:23
Picon

Re: Errors opening an IMS Content Package file

I noticed about this command but the problem
is not about copying files in "resources" folder,
that is ok, what I am trying to change is the
href attribute of img elements in the generated
HTML by means of docbook.xsl. ¿Is this command
affecting this inside XXE?

Hussein Shafie escribió:
> Alberto González Téllez wrote:
>>
>> I am trying to change the image directory
>> path when generating HTML with docbook.xsl
>> I am unable to find where this directory
>> is configured to "resources", when I
>> use parameter img.src.path set to
>> "images" then the images directory
>> becomes "imagesresources".
>>
> 
> The menu items contained in "Convert Document" have not been designed 
> for experts like you but for average users who are not likely to change 
> ``system parameters'' like "img.src.path" (but they may want to change 
> parameters such as "profile.condition" or "paper.type" using 
> "Options|Customize Configuration").
> 
> That's why graphics files are automatically copied/converted to a 
> (automatically created) resources/ subdirectory  when generating HTML.
> 
> If you want XXE to behave differently, I'm affraid you'll have to 
> redefine a couple of process commands found in 
> XXE_install_dir/addon/config/docbook/xslMenu.incl.
> 
> Process command docb.convertStep1:
> ---
> <command name="docb.convertStep1">
>   <process>
>     <mkdir dir="resources" />
>     <mkdir dir="raw" />
> 
>     <copyDocument to="__doc.xml">
>       <resources match="(https|http|ftp)://.*" />
> 
>       <!-- Support for textdata/ <at> fileref.
>            add your favorite text file extensions here: -->
>       <resources
>         match=".+\.(txt|text|htm|html|xml|h|c|cpp|java|js|tcl|py|pl|rb)"
>         copyTo="." />
> 
>       <resources match=".+\.(png|jpg|jpeg|gif)"
>                  copyTo="resources" />
>       <resources match="(?:.+/)?(.+)\.(\w+)"
>                  copyTo="raw" referenceAs="resources/$1.png" />
>       <resources match=".+"
>                  copyTo="resources" />
>     </copyDocument>
> 
>     <convertImage from="raw" to="resources" format="png" />
> 
>     <mkdir dir="images/callouts" />
>     <copyProcessResources resources="xsl/images/draft.png"
>                           to="images" />
>     <copyProcessResources 
> resources=" <at> xsl/images/callouts/png_callouts.list"
>                           to="images/callouts" />
>   </process>
> </command>
> ---
> 
> Notice configuration elements such as:
> ---
>       <resources match="(?:.+/)?(.+)\.(\w+)"
>                  copyTo="raw" referenceAs="resources/$1.png" />
> ---

--

-- 
Alberto Gonzalez Tellez
E.T.S. de Informatica Aplicada.
C/ Camino de Vera s/n 46022 Valencia (Spain)
Tel: 34-96-3877007 ext 75770 Fax: 34-96-3877579
e-mail: agt <at> disca.upv.es, web: www.disca.upv.es/agt

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


Gmane