Hussein Shafie escribi?:
> Michael Santy wrote:
>> I'm looking to create a footnote pane for a Docbook-like schema.  An
>> example of the XML is:
>>
>> <Para>
>>   This is my paragraph<Footnote>There are many like it but this one is
>> mine</Footnote>.  It should just serve as filler<Footnote>Another
>> Example Footnote</Footenote>.  Text after the footnotes.
>> </Para>
>>
>> I would like to render this block of CSS like this:
>>
>> 1 - There are many like it but this one is mine.
>> 2 - Another Example Footnote
>>
>> I was able render the Footnote tags properly, but I cannot hide the text
>> nodes in the enclosing Paragraph.  I currently have something like this:
>>
>> This is my paragraph1 - There are many like it but this one is mine.
>> It should just serve as filler2 - Another Example FootnoteText after the
>> footnotes.
>>
>> I've tried styling the Para with:
>>
>> Para {
>>   display: none;
>> }
>>
>> but this hides all content nested inside of the paragraph.  It would be
>> nice if XMLmind had a CSS rule for styling text nodes similar to the
>> rules for styling comments and processing instructions.  In my example,
>> any properties set on the text nodes of a Para would not cascade to
>> Footnote elements.  I'm thinking that the syntax would be:
>>
>> Para::text {
>>   display: none;
>> }
> 
> Para::text is absolutely *not* supported by XXE. (If it were supported,
> it would have been documented in
> http://www.xmlmind.com/xmleditor/_distrib/doc/csssupport/otherext.html
> and this is not case.)
> 
>> Is there another way to accomplish the same goal without adding this
>> nonstandard CSS rule?
> 
> No. I'm sorry but there is currently no way to achieve what you want
> whether using standard or non standard CSS rules.

Well, there is a tricky, approximate workaround:

Para {
    font-size:1pt;
    color: white;
}

Footnote {
    display: block;
    font-size: 12pt;
    color: black;
}

Of course, "font-size: 0;" would give better results, but this is not 
supported by XXE.

Hope this helps.
-- 
Manuel Collado - http://lml.ls.fi.upm.es/~mcollado


Reply via email to