Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Validating application-specific XHTML

From: Michael Ludwig <mlu@---------.--->
To: xmlschema-dev@--.---
Date: 11/27/2008 10:35:00 AM
Robert Koberg schrieb:
> I would hate to see a schema that validates a CSS based XHTML page.
> Even worse, I would hate to maintain it.

Why would you hate to see, or have to maintain such a schema? Is it the
additional tedium you find uninspiring? Or do you think it is a bad
application, or even an abuse of XML Schema? If it is the latter, could
you explain why you think this is bad?

> However, it would be pretty easy to use an XSL to validate your page.
> You could base the XSL off of your CSS rules. For example, you might
> have a CSS containing:
>
> #narrow-col #nav { blah... }

> <xsl:template match="*" mode="validate-nav">
>   <p>
>     Has Nav:
>     <xsl:value-of select="exists(key('ident',
> 'narrow-col')/*[@id='nav'])"/>
>   </p>
> </xsl:template>

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.

Thank you very much!

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