Re: Re: About XSLT/XML Pagination

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, July 22, 2007 12:44 pm, Tony Marston wrote:
>> also, is there any reason to leverage the validation features of xml
>> while
>> building a dynamic page?  for instance assume data was drawn from a
>> database to create 1 or more xml files.  would it make sense to
>> validate
>> those new xml files prior to invoking the xslt processor, and
>> optionally
>> not invoke the transformation process if the xml data is found to be
>> invalid?
>
> This would be overkill. If you are going to build and consume an XML
> document yourself there is no point in validating it. Remember that
> XML was
> originally designed as a format for data interchange, so validation is
> only
> necessary when you receive an XML document from a third party.

It's conceivable that the contents of the database and/or the PHP code
could be 'buggy' to create invalid XML...

It might be best, however, to have some nice TEST scripts that built
the XML nightly and validated it, rather than do it every time in
production.

YMMV

-- 
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux