Hello Hussein,

i think it's useful to to support TYPE_LIST as return value.
I tested it and it worked.
What i do is to create a text string from all of the childs of a mixed content
element.
The text childs have normal text which i have only to append. But some
of the element childs have text content which a want to display greyed.
This styled string i want to display in a :before rule. That's the reason why i
need an extension function because with xpath i can't create this string in
the way i wan't it.

I have another question with this mixed content element:

I want to display this element and the content two times.
First in a text manner way in which i can edit the text strings of the text
nodes.
The element childs should be displayed here with a special character as a marker
inline.
And afterwards i want to display a table of all element childs with
their contents in which i can edit the attributes and so on.
See picture: (See attached file: xxe.jpg)

Best regards, uli



                                                                                
             Hussein Shafie                                                     
             <hussein at xmlmind.co                                             
   
             m>                                                              An 
                                          Ulrich_Laegeler at arburg.com         
   
             14.05.2008 15:53                                             Kopie 
                                          "xmleditor-support at xmlmind.com"    
   
                                          <xmleditor-support at xmlmind.com>    
   
             Bitte antworten an                                           Thema 
             "xmleditor-support@          Re: [XXE] Error with                  
                xmlmind.com"              StyleSheetExtension Function          
             <xmleditor-support@                                                
                xmlmind.com>                                                    
                                                                                
                                                                                
                                                                                
                                                                                




Ulrich_Laegeler at arburg.com wrote:
>
> i developed a StylesheetExtension Function.
> If i return a StyleValue from type TYPE_STRING it works perfectly.
> But if i return a StyleValue from type TYPE_LISTit doesn't work.
> It is because in StyledViewFactory.java line 3550 the
> type TYPE_LISTisn't supported. Is this only a miss?

 From what you say, I guess that your CSS style sheet contains something
like:

foo {
     content: invoke("bar");
}

where method bar returns a list of CSS values.

If this is the case, the answer is: TYPE_LIST could be supported, but is
currently not supported (because we haven't imagined that it would be
useful to support extension methods returning lists).

If you find no other way to achieve what you want, please insist and
we'll support extension methods returning lists in next release (v4, in
July).

Note that what follows should work fine:

foo {
content: "some text" invoke("bar") " " url(image.gif) " " invoke("gee");
}

That is, may be your extension method may return a single item of a
list, where other items are static and/or are computed by other
extension methods also returning single items.








ARBURG GmbH + Co KG, Postfach 1109, D-72286 Lo?burg, Arthur-Hehl-Strasse, 
D-72290 Lossburg, Telefon: 07446 33-0, Telefax: 07446 33-3365, 
http://www.arburg.com, contact at arburg.com. 
Registergericht: AG Stuttgart, HRA 430209, USt-Id-Nr. DE 144 252 064, 
Komplement?r: Hehl Verwaltungs-GmbH, AG Stuttgart, HRB 430155. Gesch?ftsf?hrer: 
Eugen Hehl, Karl Hehl, Michael Hehl, Juliane Hehl, Renate Keinath, Herbert 
Kraib?hler, Michael Grandt, Helmut Heinson.
Diese E-Mail einschlie?lich ihrer Anh?nge ist vertraulich und daher allein f?r 
den Gebrauch durch den vorgesehenen Empf?nger bestimmt. Dritten ist das Lesen, 
Verteilen oder Weiterleiten dieser E-Mail nur mit ausdr?cklicher Zustimmung 
erlaubt. Wir bitten, eine fehlgeleitete E-Mail unverz?glich vollst?ndig zu 
l?schen und uns eine Nachricht zukommen zu lassen. Sofern diese E-Mail oder 
ihre Anh?nge Informationen enthalten, die erkennbar von Dritten stammen, 
?bernimmt ARBURG GmbH + Co KG, die Gliederungen und T?chter keine Haftung f?r 
diese. Insbesondere macht sich ARBURG GmbH + Co KG diese Informationen nicht zu 
Eigen.
This email may contain material that is confidential, privileged and for the 
sole use of the intended recipient. Any review, reliance or distribution by 
others or forwarding without express permission is strictly prohibited. If you 
are not the intended recipient, please contact the sender and delete all 
copies. ARBURG GmbH + Co KG, its branches and subsidiaries herewith exclude any 
liability for third-party information recognizably contained in this e-mail or 
its attachments. Third-party information does not necessarily reflect the 
opinion of ARBURG GmbH + Co KG. 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: xxe.jpg
Type: image/jpeg
Size: 20237 bytes
Desc: not available
Url : 
http://www.xmlmind.com/pipermail/xmleditor-support/attachments/20080515/042bcfed/attachment.jpg
 

Reply via email to