fragment transformations
Thomas Comiotto <[email protected]> Wed, 3 Oct 2007 14:08:06 +0200
| Newsgroups | gmane.comp.mozilla.devel.layout.xslt |
|---|---|
| Message-ID | <[email protected]> |
Hi all, I have mozilla transforming a fragment obtained by range.createContextualFragment() to some target format. It all works very nice. Great! But only when I use lower case tag names in my xslt selectors. I'm happy with that it works but wonder why.. Given a html tag soup that after being parsed serializes to a well- formed something in null namespace with all upper case html tags: why does the xslt transformer match lower case tag equivalents only? 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? Best regards Thomas