Subject: Re: [xsl] would like to simplify my XSLT From: Abel Braaksma <abel.online@xxxxxxxxx> Date: Tue, 30 Jan 2007 10:50:26 +0100 |
--- Abel Braaksma <abel.online@xxxxxxxxx> wrote:
Newbie question here--but why do you match on "* |
text()" instead of just matching on "/"? (I saw the
physical answer--by matching on the latter I got a lot
of strange white space--but I'm not sure why.)
<person name="Chris" />
That's correct, but this is not exactly what I needed. I wanted names of people who didn't have *any* documents in the document list--Chris shouldn't appear because he had one of his two documents there.
By removing the "not" in your XPATH above, that gave me people who have at least one document in the document list, useful but still not what I was looking for.
I'll check the other responses to see if they will
help.
"For example, Chris above has no documents in the <documents> list (relid=4 and 7 aren't there), so he would get listed, but John above wouldn't, because his "2" is in the list."
<data> <documents> <document id="1"/> <document id="2"/> </documents> <persons> <person> <name>Chris</name> <document relid="4"/> <document relid="7"/> </person> <person> <name>John</name> <document relid="2"/> </person> </persons> </data>
I know -- I come from a Java background so that's how
my XSLT will currently look until I figure out how to
do things better!
Cheers, -- Abel Braaksma http://www.nuntia.nl
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] would like to simplify my, Glen Mazza | Thread | Re: [xsl] would like to simplify my, Glen Mazza |
Re: [xsl] probably a XPath mistake, George Cristian Bina | Date | Re: [xsl] would like to simplify my, Glen Mazza |
Month |