> but since inside a XSLT template you can mix
> them with any, arbitrary, well-formed
> XML code, you can't validate it.

That's untrue. Typically the XSL tags in an XSL document are prefixed
with the XSL namespace (which is one of the few namespaces which has a
default uri) -- that being the case, <xsl:template> is validated
against the schema for the the xsl namespace, whereas other tags in
the document may be unvalidated or validated against any other schema
or DTD based on their respective namespace URI's. In all likelyhood
the schema for XSL uses a lot of "any-tag" references, although I have
seen the XSLT engine provided with CF6/7 spit back the error
"xsl:template is not allowed at this position in the document" or the
like, and offhand I'm not certain how they would make that work with
XSD if the containing tag has "any-tag" declared for its children. Of
course, the attributes would be validated against the URI for each tag
without any problems. Hence you get errors that say "namespace 'blah'
is uneclared" or somesuch if you omit an alternate namespace from an
XSL sheet that contains tags using that namespace and then try to
perform a transformation.

....

It seems strange to me that a doctype would not allow specification of
an XSD instead of a DTD -- I don't understand why that would be the
case, it doesn't make any sense to me... Though iirc I think CF7 also
automatically validates against namespace URI's if they resolve to
valid DTD's/XSD's now that think about it.


s. isaac dealey   954.522.6080
new epoch : isn't it time for a change?

add features without fixtures with
the onTap open source framework

http://www.fusiontap.com
http://coldfusion.sys-con.com/author/4806Dealey.htm




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:217616
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to