Re: fragment transformations

Thomas Comiotto <[email protected]> Wed, 3 Oct 2007 16:44:54 +0200
Newsgroups gmane.comp.mozilla.devel.layout.xslt
Message-ID <[email protected]>
>>
>> 1. var str = "<p>a paragraph<p>next paragraph"
>> 2. var fg = range.createContextualFragment(str)
>> 3. serializeToString(fg) -> <P>a paragraph</P><P></P>
>> 4. xsl:template match="P" -> no match, xsl:template match="p" ->  
>> match
>>
>> Is this stuff documented somewhere? Or may I simply miss the point?
>
> Where do you get the range object from? Is that an HTML document or an
> XML document?

A local bare bone html document loaded into a collapsed iframe. It's  
for pasting html flavors (into arbitrary xml).


> And please also tell us which Mozilla version you are testing with.
>

Firefox 2.0 on OSX.

Thanks!
Thomas


>
> -- 
>
> 	Martin Honnen
> 	http://JavaScript.FAQTs.com/
> _______________________________________________
> dev-tech-xslt mailing list
> [email protected]
> https://lists.mozilla.org/listinfo/dev-tech-xslt
>