validation of an xml file against a dtd or schema needed?


M

Michael TEpperis

hi,

I want to check if some rules match an xml file (a complete validation
is not needed). I need to know if the values of a special attribute
match a list. if not, I don't want to run the xslt.

the xml files does not refer to an dtd.

any recommodations?

tia
michael
 
Ad

Advertisements

C

Cat

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

hi,

I want to check if some rules match an xml file (a complete validation
is not needed). I need to know if the values of a special attribute
match a list. if not, I don't want to run the xslt.

the xml files does not refer to an dtd.

any recommodations?
<xsl:if test="not(document('other.xml')/foo/@bar)">
<xsl:message terminate='yes'>foo bar is required</xsl:message>
</xsl:if>

Is this what you are looking for?
- - --
Cat

http://www.ratrobot.com/writing/sport/ Would you cheat in a $100 million
dollar lottery if you knew they wouldn't catch you? This is the problem with
drugs in sport. How do we solve it?
Tue Jun 29 20:45:22 UTC 2004
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFA4dTiKHRjYtwQ1QARAgozAKDZkntUFYUfL0In1EznNZJQfUbDwgCeI7Rk
kDdHJBZrfzkG14RnRjUDdVI=
=3NoE
-----END PGP SIGNATURE-----
 

Top