XML XSL Rules Engine

jeffpeters

Member
Joined
Jul 28, 2006
Messages
14
Programming Experience
5-10
I am trying to use the .Net 2.0 XSLCompiledTransform with xml to give me a boolean.

I'm having problems with this new class. Any ideas???

Thanks

Jeff

XML
HTML:
<m memid="44" title="Mr" firstname="q" surname="q" gender="M">
<s name="Quiz">
<ms insertdate="2006-01-10T10:05:37.170"/>
</s>
</m>
XSL
HTML:
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="text"/>
<xsl:template match="*">
<xsl:value-of select="count(//m[@gender='M' or @gender='F'])>0"/>
</xsl:template>
</xsl:stylesheet>
 
Last edited by a moderator:
For this example I saved the xml and xsl to files, perform the transform and saves to plain text file.
VB.NET:
Dim xsl As New Xml.Xsl.XslCompiledTransform()
xsl.Load("x.xsl")
xsl.Transform("x.xml", "t.txt")
 
Back
Top