On Sun, 2011-10-23 at 23:01 +0200, Joachim Zobel wrote:
> Hi.
>
> According to http://www.w3.org/TR/xmlschema-1/#Selector they should,
I think --pattern in xmllint is actually for an XPath expression; since
XPath itself gives no way to bind a prefix to a URI, you are stuck with
//*[local-name
On Mon, 2011-10-24 at 18:14 +0200, Michael Ludwig wrote:
> In your example, you're declaring (but not using) it on the doc;
> but that doesn't automagically provide the pattern to the bit of
> code that is instructed to compile the pattern.
You are correct. My code (the original problem) works now
On 10/24/2011 12:14, Michael Ludwig wrote:
I still don't know what that --pattern switch is supposed to
do, but I cannot see how it is supposed to cope with namespace
prefixes;
"man xmllint" says:
--pattern PATTERNVALUE
Used to exercise the pattern recognition engine, which
can b
Joachim Zobel schrieb am 24.10.2011 um 07:34 (+0200):
> On Sun, 2011-10-23 at 23:49 +0200, Michael Ludwig wrote:
> > There is a namespace prefix in your pattern that cannot be
> > bound to a namespace because you didn't declare any.
>
> Yeah, missed that.
>
> jo@vostro:~$ echo '' |
> xmllint --pa
On Sun, 2011-10-23 at 23:49 +0200, Michael Ludwig wrote:
> There is a namespace prefix in your pattern that cannot be
> bound to a namespace because you didn't declare any.
Seems thats it. My code did not pass the namespace (and works since it
does) and most likely my xmllint example has a similia
On Sun, 2011-10-23 at 23:49 +0200, Michael Ludwig wrote:
> There is a namespace prefix in your pattern that cannot be
> bound to a namespace because you didn't declare any.
Yeah, missed that.
jo@vostro:~$ echo '' |
xmllint --pattern "//a:b" -
Pattern //a:b failed to compile
Thanks,
Joachim
Joachim Zobel schrieb am 23.10.2011 um 23:01 (+0200):
>
> jo@vostro:~/projects/local/mod_i18n/trunk$ echo ' version="1.0"?>' | xmllint --pattern "//@a:b" -
> Pattern //@a:b failed to compile
There is a namespace prefix in your pattern that cannot be
bound to a namespace because you didn't declare
Hi.
According to http://www.w3.org/TR/xmlschema-1/#Selector they should, but
according to
jo@vostro:~/projects/local/mod_i18n/trunk$ echo '' | xmllint --pattern "//@a:b" -
Pattern //@a:b failed to compile
jo@vostro:~/projects/local/mod_i18n/trunk$ echo '' | xmllint --pattern "//a:b" -
Pattern /