Sandra Sol Rodrigo wrote:
> Dear Hussein,
> 
> I have done what you told me but I have a problem. I give an id
> attribute to the mediaobject but when I export I just get "???", not the
> name of the figure. If I work with figures it's the same so I give an id
> attribute to the little squate over the figure, where I'm suposed to
> write the title. Amm I doing something wrong?
> 
> I must tell you I work with "Docbook v5+ Chapters" and I use the xml:id
> atribute. I tried with "Docbook Chapters" and id attribute but it's the
> same.
> 
> Thenk you very much,
> Sandra Sol
> 

That's right. What I've suggested is not supported by the DocBook XSLT
style sheets (used to convert DocBook to XSL-FO, then to RTF, PDF, etc).
The DocBook XSLT style sheets report the following warning:

Don't know what gentext to create for xref to: "mediaobject"

Sorry for not having tested it with mediaobject.

Therefore, the simplest thing to do is to revert to figures and this
time, to specify a title for each figure.

There are of course more sophisticated approaches which can give you
exactly what you want, but this is out of the scope of this mailing list.

> -----Mensaje original-----
> De: Hussein Shafie [mailto:hussein at xmlmind.com] 
> Enviado el: jueves, 25 de septiembre de 2008 10:17
> Para: Sandra Sol Rodrigo
> CC: xmleditor-support at xmlmind.com
> Asunto: Re: [XXE] Question about xref
> 
> Sandra Sol Rodrigo wrote:
>>  
>>
>> I'm using "xref" with the figures of a document and when I export the
>> document to RTF the reference appears as *Figure 1.1, ""
>> <#main_config>*. I would like to know if it's possible to change the
>> reference format because none of the figures of my document is named
> so
>> I have an extra coma and extra quation marks with no meaning.
>>
>>  
>>
> 
> I don't think that changing the format of xref elements is the right way
> to solve your problem.
> 
> The only way to reproduce the problem you describe is to have an xref
> pointing to a figure having an *empty* title. See attached screenshot.
> 
> Figures are really supposed to have a non-empty title. If you don't want
> titles, please replace the figure element by a mediaobject (just pick it
> from the DocBook toolbar).
>  
> --
> XMLmind XML Editor Support List
> xmleditor-support at xmlmind.com
> http://www.xmlmind.com/mailman/listinfo/xmleditor-support
> 
> 



Reply via email to