Sorry, just a typo - I was refering to the common attribute "xreflabel"
that I've added to stuff like <chapter> & <section>
My Parser tends to chuck out loads of noise - My aim is to get just a nice
little list of <xref>s that don't point anywhere that I could refer to
when editing. My source docs are 600+ page files that are littered with
xrefs...
I'll take a look at Schematron - thanks.
Mart
Norman Walsh <[EMAIL PROTECTED]>
02/10/02 18:17
To: [EMAIL PROTECTED]
cc: [EMAIL PROTECTED]
Subject: DOCBOOK-APPS: Re: Testing that xrefs point to xreflabels
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
/ [EMAIL PROTECTED] was heard to say:
| I'm wanting to check my docbook XML files to ensure that all <xref> tags
| contain valid links to <xreflabel> tags.
There's no xreflabel element, so I'm not sure what you mean. If you
just want to make sure all the links are valid, a validating parser
will test that every 'linkend' points to an 'id'.
If you want xrefs to only point to certain classes of elements, check
out Schematron.
Be seeing you,
norm
- --
Norman Walsh <[EMAIL PROTECTED]> | People often say that this or that
http://www.oasis-open.org/docbook/ | person has not yet found himself.
Chair, DocBook Technical Committee | But the self is not something one
| finds, it is something one
| creates.--Thomas Szasz
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.7 <http://mailcrypt.sourceforge.net/>
iD8DBQE9myofOyltUcwYWjsRAp89AKCBBWC1wmrfyMITi4IB03tE1uX66QCgrnNk
F0M79Asb6z+yTl07XV8wXIw=
=WcZf
-----END PGP SIGNATURE-----