This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: Detecting presence of attributes


> >> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]