473,387 Members | 1,597 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

mz js select nodes with xpath, having by specific attribute named'class' the 'subvalue part' set

<style>
.marek{}
</style>
etc..
<root>
<element class="marek mand"/>
<element class="mand marek blah"/>
<element class="mand marekmänd"/>
<element class="mand marekk"/>
</root>

I would like to know what is the XPath expression for Mozillas
JavaScript document.evaluate method first argument, if i want to get all
the nodes, that have the 'css'-class named "marek" set.

By above data only 2 elements should be returned, because they and they
only have the 'css' class "marek" set. The XPath expression should not
match 'marekk' nor 'marekmänd'.
I read few articles about xpath and i didnt saw any regular expressions
to be used there, but what i saw was that the xpath string functions are
definately too weak and clumsy to achieve my goal. I am new to XPath,
smz o i thought some master regular could teach me a bit.

TIA
Jul 23 '05 #1
1 1653


Marek Mänd wrote:
<style>
.marek{}
</style>
etc..
<root>
<element class="marek mand"/>
<element class="mand marek blah"/>
<element class="mand marekmänd"/>
<element class="mand marekk"/>
</root>

I would like to know what is the XPath expression for Mozillas
JavaScript document.evaluate method first argument, if i want to get all
the nodes, that have the 'css'-class named "marek" set.


Asked already in netscape.public.mozilla.xml and answered there in
<news://news.mozilla.org:119/cv*********@ripley.netscape.com>

--

Martin Honnen
http://JavaScript.FAQTs.com/
Jul 23 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: Cezar | last post by:
Hi!. I have this simple class: ..red { color:#900; } and using with <select class="red"....> IE, FF interpreting correctly, but Opera not. Show only gray texts. Why ?
5
by: nboutelier | last post by:
Scenario: you enter "foo bar" into a text field... Is it possible through javascript to select/highlight just "foo"? formObject.select() selects all. I need to select only part of the string....
1
by: Uli | last post by:
Hi I am looking at ASP.NET Community Starter Kit (VBVS) available from www.asp.net. The application seems to run, however when I run it in Visual Studio in debug mode looking at ascx files, it...
2
by: Paul Darroch | last post by:
Hello I am trying to convert a web site from ASP to ASP.NET and the class attribute is used in tables throughout the site. The problem is when I am trying to convert these pages I have a huge...
3
by: Jurjen de Groot | last post by:
Hi, I'm looking for an ASP.NET web-control in wich I can show a generated image to user, the user should then be able to select part of the image using the mouse (rubberbanding), a postback...
2
by: KJ | last post by:
Hello All, I am wondering about attributes: in the Framework, they all seem to end in the word Attribute, for example, BindableAttribute. But when you use them, you can either code...
0
by: rocambole | last post by:
I have a C# class that defines an atribute. Works like a charm. For various reasons, I have a managed C++ class that needs to use this attribute. In C# AttributeUsage(AttributeTargets.Field,...
10
by: Janis Papanagnou | last post by:
The task seems simple but I am not sure whether this is possible or even the right way to look at it... I have <td class="X"elements where "X" is a placeholder for class names "A", "B", etc. ...
2
by: pedro | last post by:
TEXTBOX --- i want to select part of the text and change its style how can i do this? manny forums have this feature msdn forum you select the text and press button for formating code.
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.