logo       


Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

Checking/Reporting on Many Nodes: msg#00008

Subject: Checking/Reporting on Many Nodes
Gang,
 I'm new to Schematron (glad I found it!) and I'm a little stuck. Here's the
deal...I have a document that I'm checking that looks like this:

<Message>
 <Product>
   <REF>1</REF>
   <AAA>Test1</AAA>
   <BBB>Test1</BBB>
 </Product>
 <Product>
   <REF>2</REF>
   <AAA>Test2</AAA>
   <BBB>Test2</BBB>
   <CCC>Test2</CCC>
 </Product>
</Message>

I'm checking for the presence of some elements, attributes and some data
checking and that seems to work fine. However, my document can contain a lot of
<Product> nodes (thousands) and when one of checks fails I would like to know
which <Product> node had the error. I'm pretty sure I can reference the <REF>
element (which is unique) in some manner to give me the 'location' of the error,
but I'm stumped as to how to do that. Right now my schema 'tests' the document
and gives me a list of errors, but not where those errors are.

Any help is appreciated, 

-- 
Noah Genner
noah@xxxxxxxxxxxx
http://www.genner.on.ca/noahville/


-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click


Ruby Jobs
Java Jobs
Jobs in California
more...
what
job title, keywords
where
city, state, zip
jobs by job search
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
db.firebase.por...    text.xml.xalan....    qnx.openqnx.dev...    user-groups.zar...    internationaliz...    kde.devel.konve...    finance.e-gold....    emacs.latex.pre...    gis.therion/200...    web.webmin.gene...    yellowdog.gener...    vserver/2003-08...    redhat.release....    sysutils.tivoli...    xfree86.expert/...    mail.becky.user...    hardware.netapp...    netbsd.ports.xe...    python.distutil...    boot-loaders.gr...    culture.interne...    java.springfram...    activedir/2006-...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe