andreathedove Posted June 16, 2006 Share Posted June 16, 2006 Hello,I know in asp thislimit = rs("text")Limit2 = Len(limit)if limit2 = 100 thentext = right(text, 50)end ifI can do the same with xsl?Thanks,Andrea Link to comment Share on other sites More sharing options...
boen_robot Posted June 17, 2006 Share Posted June 17, 2006 I don't know ASP but I know XSLT enough. What is this code doing in ASP? Link to comment Share on other sites More sharing options...
andreathedove Posted June 17, 2006 Author Share Posted June 17, 2006 I don't know ASP but I know XSLT enough. What is this code doing in ASP?<{POST_SNAPBACK}> for example of I have "I am Andrea from Verona"the code limit the caracter to"I am Andrea ..."tHANKS,Andrea Link to comment Share on other sites More sharing options...
boen_robot Posted June 17, 2006 Share Posted June 17, 2006 Well then, you simply need the substring() function in your select statement. For example: substring('I am Andrea from Verona',1,12) Link to comment Share on other sites More sharing options...
andreathedove Posted June 17, 2006 Author Share Posted June 17, 2006 Well then, you simply need the substring() function in your select statement. For example:substring('I am Andrea from Verona',1,12) <{POST_SNAPBACK}> ... if I have the xml file:<text>I am Andrea from Verona</text>in the xsl file I does should do?Andrea Link to comment Share on other sites More sharing options...
andreathedove Posted June 17, 2006 Author Share Posted June 17, 2006 ... if I have the xml file:<text>I am Andrea from Verona</text>in the xsl fileĀ I does should do?Andrea<{POST_SNAPBACK}> thanks, it works :-)Andrea Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now