xsl-list
[Top] [All Lists]

XPath problem

2005-01-26 19:12:37
I am trying to use a very fancy XPath with Dom4J, but
something is wrong with my string.  Here it is:

/rr:ReportRequest/xqx:whereClause/*/xqx:expr[xsi:type
= 'operatorExpr' and xqx:opType = '<=' and
xqx:parameters/xqx:expr[1]/xqx:value =
'DateMisplaced']/xqx:parameters/xqx:expr[2]/xqx:value

There seem to be at least two problems with this
string.

The first is that it doesn't seem to like the "*",
which seems strange to me.  It will find:

/rr:ReportRequest/xqx:whereClause

but not

/rr:ReportRequest/xqx:whereClause/*/xqx:expr

The second problem is that it does not like:

xqx:opType = '<='

Is there a problem with this?  The element text
contains the string "<=".  But the match does not
work.

Thanks in advance for your assistance.

Regards,
Dave


                
__________________________________ 
Do you Yahoo!? 
The all-new My Yahoo! - What will yours do?
http://my.yahoo.com 

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>