spiff said:
Pavel, all of your posts did end with a flame against
me. Mine didn't (against you of course).
I suppose I'm not a very patient person, especially where
incompetence or hidden agendas are concerned. Note that
all of my posts contained detailed explanations of my
point of view, while yours arbitrarily ignored my
explanations and contained no sensible arguments at all.
[There are no namespaces in the document --
therefore we don't need to consider namespaces.]
Anyway, your argument is woefully weak. You don't see
any namespaces? Well, I don't see <title> not being
the first child node, or any elements other than
<title>, <body> and <picture> as children of
<example>. Therefore, solutions #2 and 3 are exactly
as good as #1 - they work on the sample XML given.
Period.
Come on. You started to make it important to deal also
with something which is simply not present in the
sample. Namespaces, do you remember?
That's called reductio ad absurdum and is meant to
disprove something -- your argument that namespaces are
irrelevant to the discussion in this case. Funny how you
managed to ignore the detailed explanations a few
lines later. I find it hard to believe they're beyond your
level of understanding.
[local-name()-based solution]
Once again #1 only breaks if you start to deal with
namespaces.
Oh, really? How about we change <title> to
<example-title>? Shucks, doesn't work anymore. How about
we add <sub-title> elements -- that don't need to be
processed, of course? How about we allow more than one
<body> and <picture> and decide to group them into
<document> children of <example> element? Seriously, drop
it already, you're attempting to defend an indefensible
position. Well, I suppose it is defensible if you resort
to blind ignorance, but I would advise against that.
I don't know if the poster wants to. Maybe later, maybe
never. All of your suggestions are breaking if you
change the structure of the XML.
Do you imply you can offer a solution that wouldn't break
no matter what changes we make to the XML document being
processed?! See above. Try reading my previous post again.
Get a clue.
But I guess you are so upset because I mentioned that
XMLSpy can process this XPath correctly.
Oh, seriously? Well, *I* guess you're so upset because I
said in passing that I've seen several mentions of
XMLSpy's brokenness and that scared me away from it. While
we're guessing, I also guess my mention of XMLSpy was why
you wedged into the discussion and started saying my
suggestions were strange, without ever making any points I
haven't already made and blissfully ignoring my attempts
at explaining.
Oh. By the way. Where'd your .sig go? There was this funny
URL in it... hmmm, what was it... Ah, right:
Now, that's great fun!
Since we started guessing, I'd like to guess that you were
trying to indirectly discredit my statement about XMLSpy,
by implying I don't know what I'm talking about on other
matters etc. etc. Obviously, every reader of the group
will decide for himself (and I guess many of them have
already *plonk*ed us both), but really, I guess that was a
somewhat weakish attempt on your part. You gotta try
harder, seriously.
You know, I just *love* guessing.
Nobody was talking about XMLSpy but you started flaming
against it.
Yeah, I suppose I did. Now, what would a sensible person
do? A sensible person would say something like: 'That's
not true, XMLSpy is fully foo-compliant now -- here are
the results of running the foo test suites', or maybe:
'Yeah, it had its share of problems, but the dev team is
working hard, and it's getting better every day'.
Hint: 'XMLSpy runs a trivial XPath expression' is not a
statement of compliance.
A sensible person would probably also mention that he's
ever-so-indirectly affiliated with the product in
question.
Not being a particularly sensible person, I would probably
say something not particularly sensible, like: 'Well, I'd
still stay away from it, but maybe that's just me,' and
you'd be on top of it.
Any bad experiences here?
Any problems with reading skills? From my first post in
this thread:
"I've never used XMLSpy myself [...]"
Thanks, I surely had a lot of laughs today.