Daniel wrote:
how to make sure a xsl document has valid xsl syntax? i tried loading it
into an xml document but that doesnt show syntax errors inside attributes
such as "foo/bar" vs "bar\foo"
System.XML performs only checks for the well-formedness of Documents,
not for validity. You need a Schema for XSLT wich defines Regular
Expressions to check for "syntax errors inside attributes" (I think you
mean the select-ones and XPath-syntax errors?) and XmlValidatingReader.
An other, easier way is to try to execute the transformation inside a
try-catch-block, if an error occurs, you made errors...