473,387 Members | 1,582 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.

need test expression for all "unhandled" text

KJ
My xslt has xsl:templates that match a large majority of the xml in our
xml files.

What I would like to do is create a test expression that matches any of
the tags or text that these templates have missed.

This is so I can flag the missed items and display them with a visually
loud sytle, so they stand out until I create templates that match them
all.

Any suggestions as to how to do this are appreciated!

-KJ

Jul 20 '05 #1
4 1241


KJ wrote:
My xslt has xsl:templates that match a large majority of the xml in our
xml files.

What I would like to do is create a test expression that matches any of
the tags or text that these templates have missed.

This is so I can flag the missed items and display them with a visually
loud sytle, so they stand out until I create templates that match them
all.


You can use
<xsl:template match="node()">
to match any kind of node.
Then add other templates with a higher priority.

--

Martin Honnen
http://JavaScript.FAQTs.com/
Jul 20 '05 #2
KJ
Thank you. For priority, should I use the priority attribute of
xsl:template (and thus create my own priority scheme) or just rely on
the default priority?

Also will <xsl:template match="node()"> be fired only for those nodes
not already matched by other templates, or will it fire for all
regardless?

Jul 20 '05 #3


KJ wrote:
Thank you. For priority, should I use the priority attribute of
xsl:template (and thus create my own priority scheme) or just rely on
the default priority?

Also will <xsl:template match="node()"> be fired only for those nodes
not already matched by other templates, or will it fire for all
regardless?


It will be called for those nodes where there is no template with higher
priority so you need to make sure you have more specific templates for
the nodes you want to treat.
--

Martin Honnen
http://JavaScript.FAQTs.com/
Jul 20 '05 #4

"Martin Honnen" <ma*******@yahoo.de> wrote in message
news:42***********************@newsread2.arcor-online.net...


KJ wrote:
My xslt has xsl:templates that match a large majority of the xml in our
xml files.

What I would like to do is create a test expression that matches any of
the tags or text that these templates have missed.

This is so I can flag the missed items and display them with a visually
loud sytle, so they stand out until I create templates that match them
all.


You can use
<xsl:template match="node()">
to match any kind of node.
Then add other templates with a higher priority.

Warning: Be aware that if you import other stylesheets module in the
stylesheet that contains the node() - matching template, *any* templates in
the imported stylesheets will never be selected for processing, as the
node() - matching template has a higher import precedence.
Cheers,
Dimitre Novatchev
Jul 20 '05 #5

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

Similar topics

4
by: Andy | last post by:
Hi, I'm doing a nested pass by reference of a vector. I'm in Vis Studio 2003. Example: vector <unsigned long long> vect; func1(vect); where func1 calls func2(vect);
1
by: Erialc Berts | last post by:
I know why we get this error, but does anyone know how to catch it so that we can display a more helpful message to our users? I am interested both in a .exe and a web site. Thanks in advance...
6
by: Paul Steele | last post by:
I often use the following code to check if a program is already running: if (Process.GetProcessesByName(Process.GetCurrentProcess().ProcessName).Length > 1) ... This works find on all of my...
0
by: mammucion | last post by:
Trying to automate processing 80,000 data sets through 15 web pages. Application URL creates a new IE instance in which runs first a login form and then runs the rest of the pages in the new...
2
by: whiskers | last post by:
I'm debugging some code and I have to admit that I don't know yet how it works. But I ran into a problem I can't explain The program is a DLL that retrieves raw data from a camera, builds...
0
by: rmcpherson | last post by:
Can someone please help with this problem? I'm trying to go to the last record, make a new record, and save it the database. It just gives me "OleDbException was unhandled" error at da.Update(ds,...
0
by: Gary | last post by:
Trying to install VB6 (learning edition) on Windows XP. When running the SETUP.EXE to install Visual Basic 6.0 it gives the error... "An unhandled win32 exception occured in vs60wiz.exe" or...
8
joedeene
by: joedeene | last post by:
Hello there, I am having a problem and it is frustrating me because I've been trying to figure it out, and I've even modified the code a few times but the same exception occurs: "...
4
by: siddhanta | last post by:
float x = new float; float y = new float; int c=0; using (StreamReader sr = new StreamReader("e: \\CuPeak.dat")) { while (!sr.EndOfStream) {
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
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.