Re: [xml] xml find and replace

2012-07-20 Thread Michael Ludwig
Noam Postavsky schrieb am 19.07.2012 um 10:18 (-0400): xsl:template match='//control[name=MatGrp1Ch1Pend]/enum' Actually, using the descendant axis (//) like above is redundant and misleading. It is equivalent to just control[ … ]/enum. Why? Because every control element node found is bound

Re: [xml] xml find and replace

2012-07-20 Thread stuart shepherd
Thank you, that work's brillantly. On Thu, Jul 19, 2012 at 3:18 PM, Noam Postavsky npost...@users.sourceforge.net wrote: On Thu, Jul 19, 2012 at 9:42 AM, stuart shepherd jonny.w...@googlemail.com wrote: I'm guesing it's something to do with having elements within the text, but it doesn't

[xml] HTML Queryselector in libxml

2012-07-20 Thread Raymond Irving
Hello, Are there any plans to add queryselector to libxml? I've found a perl module that adds queryselector support but can be ported to libxml? http://search.cpan.org/~tobyink/XML-LibXML-QuerySelector-0.003/lib/XML/LibXML/QuerySelector.pm

Re: [xml] HTML Queryselector in libxml

2012-07-20 Thread Liam R E Quin
On Fri, 2012-07-20 at 09:25 -0500, Raymond Irving wrote: Hello, Are there any plans to add queryselector to libxml? Why would you want to add CSS selectors when you already have XPath selectors, which are more powerful? Liam -- Liam Quin - XML Activity Lead, W3C,

Re: [xml] HTML Queryselector in libxml

2012-07-20 Thread Raymond Irving
In my opinion it's much easier to use when working with HTML content and CSS classes. __ Raymond On Fri, Jul 20, 2012 at 9:31 AM, Liam R E Quin l...@holoweb.net wrote: On Fri, 2012-07-20 at 09:25 -0500, Raymond Irving wrote: Hello, Are there any plans to add queryselector to libxml?

Re: [xml] Trouble sending patch to the xml@gnome.org list

2012-07-20 Thread Daniel Richard G .
On Fri, 20 Jul 2012, Michael Ludwig wrote: Is there a policy regarding attachments that I'm not aware of? Don't know, but why not just use something like http://pastebin.com/ ? That may be necessary as a workaround for now, but I don't think that's how the list maintainers intended things

Re: [xml] HTML Queryselector in libxml

2012-07-20 Thread Liam R E Quin
On Fri, 2012-07-20 at 11:52 -0500, Raymond Irving wrote: In my opinion it's much easier to use when working with HTML content and CSS classes. That might be, but libxml is an XML library. Beware that it also does not construct a conforming HTML DOM, so your CSS selectors may not always do what

Re: [xml] [PATCH] Various make distcheck and portability fixups

2012-07-20 Thread Daniel Richard G .
Rather than try again to attach my ~40kB patch to this message, as the xml@gnome.org keeps dropping it without comment, I am linking to a Pastebin page containing the text of it: http://pastebin.com/YGgLmUfx This is an updated version of the patch I mailed in on March 14. As before,

Re: [xml] DOM parser and HTML entities inside the script tag

2012-07-20 Thread Liam R E Quin
On Fri, 2012-07-20 at 09:03 -0500, Raymond Irving wrote: Thanks for the feedback Micheal. I thought that the first occurrence of /script or /style would be signal the end of the element's content but I guess the W3C had something else in mind. HTML 4 (that you are using) was based on ISO