This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Detecting presence of attributes
- To: xsl-list at lists dot mulberrytech dot com, peter at silmaril dot ie
- Subject: RE: [xsl] Detecting presence of attributes
- From: DPawson at rnib dot org dot uk
- Date: Tue, 6 Feb 2001 12:15:31 -0000
- Reply-To: xsl-list at lists dot mulberrytech dot com
> >> It has the advantage that you can deal with bad values (e.g. if
> >> 'blort' wasn't actually allowed) within the stylesheet - if that's
> >> an advantage.
> >
> > Fortunately the whole point of making them entities is so that only
> > the ones declared in the DTD can be used. This is to prevent J.
> > Random Student running amok with unnecessary stuff.
I wonder if this is a job for Schematron Peter?
http://www.ascc.net/xml/resource/schematron/schematron.html
run the source xml through the generated Schematron stylesheet,
and it will tell you where its 'wrong', going further than a parser.
Even point out the line numbers!
HTH DaveP
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list