Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XSL and Schemas

Status
Not open for further replies.

Crisps

Programmer
Sep 28, 2006
26
US
Hi,

I have an XSLT document that parses and incoming XML document. Is there anyway to validate that the incoming document matches a schema as a part of the transformation. I would like for example to say in the XSL itself something along the lines of.

IF document matches SCHEMA THEN
PARSE NORMALLY
ELSE
CREATE VALIDATION ERROR NODE
END IF

I have no access to the code where the transformation is called, just to the stylesheet itself. There is a function import-schema but I am not sure what this does.

Has anyone got an example of how I could do this?

Thanks,
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top