Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Validating application-specific XHTML

From: Michael Ludwig <mlu@---------.--->
To: xmlschema-dev@--.---
Date: 11/27/2008 2:25:00 PM
Robert Koberg schrieb:
> On Nov 27, 2008, at 5:32 AM, Michael Ludwig wrote:
>>
>> Why would you hate to see, or have to maintain such a schema?
>
> Well, I guess I should have said that I don't even know how to write
> an XML Schema that will validate a CSS based XHTML page. For example,
> a div element with a particular ID (a unique NCName) must have a child
> div with another particular ID, but also allow other divs/tables/ol/ul.
> The another div with another ID must have a child that contains a
> certain class, but also allow other divs/tables/ol/ul, etc...

I see. I hadn't given it much thought. XML Schema is probably too rigid.
I need patterns, not types.

>>> However, it would be pretty easy to use an XSL to validate your
>>> page.

>> That's a good idea. Strangely, it hasn't occurred to me I could use
>> XSLT for the job. It doesn't seem to have a reputation for being a
>> validator tool, yet.
>
> Well, there is schematron (http://en.wikipedia.org/wiki/Schematron).
>
> Like you mentioned, you can just as easily use HttpUnit. You might
> also want to look at WebTest (which uses HttpUnit)
> http://webtest.canoo.com/webtest/manual/WebTestHome.html -- with
> either you can use XPath to find what you need.
>
> However, I find using XSL to be easiest and most flexible.

Thanks for all these pointers. Both Schematron and WebTest are new to
me and look interesting, and better suited to the task than XML Schema.

I'm glad I asked you. Thanks once more!

Michael Ludwig



transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent