"Frank Ehrenfried" <[EMAIL PROTECTED]> writes:

> First, thanks for the response.
> 
> When I remove the v option the problem becomes that DOMCount.pl runs, for
> both personal.xsd and personal-schema.xml, i.e. it returns the counts with
> no error messages.  However, if I change personal.xsd and then run
> DOMCount.pl against personal-schema.xml, it still does it thing and doesn't
> report and error.  Thus, it isn't using personal.xsd for validation. Is it? 

"Jason Stewart" <[EMAIL PROTECTED]> writes:

> 2) You must enable namespace parsing, otherwise none of the
>    schema-specific attributes will be recognized
> 
> So...
> 
> $ perl samples/DOMCount.pl -n -s samples/personal-schema.xml 
> samples/personal-schema.xml: (37 elems)
> samples/personal-schema.xml: duration:  1 wallclock secs ( 0.07 usr +
> 0.00 sys =  0.07 CPU)

Hi Frank,

You have to enable namespaces, i.e. the -n flag of DOMCount.pl. This
is unintuitive, and I only discovered it myself a week ago.

jas.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to