Jump to content

insert && in xsl


Guest nambear

Recommended Posts

Guest nambear

I have a xsl code below :while(rs.next() && rs.getRow() < (1+this.PageNo)*this.PageSize){- rs is a ResultSet- PageNo, PageSize is intand when i view this xsl file in IE: it output an error :The XML page cannot be displayed Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later. --------------------------------------------------------------------------------A name was started with an invalid character. Error processing resource 'file:///C:/Program Files/Apache Software Foundatio... while(rs.next() && rs.getRow() < (1+this.PageNo)*this.PageSize){-------------------^ I try to insert a xsl tag - <xsl-text>&&</xsl-text>but it cont error.

Link to comment
Share on other sites

I guess that what you are showing is part of the XSLT which is actually inside a <script> element, right? If so, you'll need to surround all of your javaScript code inside CDATA section.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...