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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XML Dummy's question

Status
Not open for further replies.

kingg26

MIS
Jan 8, 2004
2
US
Consider me an XML Dummy. When we develop HTML based pages we include Javascript to perform client side validations. What do we do in case of XML documents? If i have an XML document containing many Input Text boxes, what can i do to perform validations on them ?
 
I'm new to the subject myself. What I know from examples is, that scripting codes are fully supported. You do it by tag 'xsl:text' . Here is some example from SelfHTML:

<?xml version=&quot;1.0&quot; encoding=&quot;iso-8859-1&quot;?>
<xsl:stylesheet version=&quot;1.0&quot; xmlns:xsl=&quot;
<xsl:template match=&quot;/&quot;>
<html>
<head>
</head>
<body>
<xsl:apply-templates />
</body>
</html>
</xsl:template>

<xsl:template match=&quot;behauptung&quot;>
<p><xsl:value-of select=&quot;.&quot; /></p>
<script type=&quot;text/javascript&quot;>
<xsl:text>
&lt;!--
document.write(&quot;&lt;p&gt;&quot; + document.lastModified + &quot;&lt;/p&gt;&quot;);
//--&gt;
</xsl:text>
</script>
</xsl:template>

</xsl:stylesheet>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top