Main menu:

 

November 2008
M T W T F S S
« Sep    
 12
3456789
10111213141516
17181920212223
24252627282930

Site search

Archives

Categories

Tags

Links:

Archive for 'BizTalk'

Autocomplete ajax tool kit

Scenario
you have a global search box on your website and when you input the first character of the first name , all the words which starts with that particular word will be displayed in the list box. the good thing is that as its an ajax control,  its fast enough without the post back, its [...]

Error while decrypting the encrypted querystring due to the space in the querystring

One of my blog reader posted the below question, Well , I was expecting this question as I had encountered the same issue and resolved. Please find the question along with the resolution as below.
Hi
I have tried the above code, and found a problem -
The encrypted value of 4 is S91QD+K0/u8=. When I pass this [...]

XPath String Operators and Functions

XPath 1.0 have many string functions:
concat(string string1, string string2, …)— This function returns all strings you pass to it concatenated (that is, joined) together.
contains(string string1, string string2)— This function returns true if the first string contains the second one.
normalize-space(string string1)— This function returns string1 after leading and trailing whitespace is stripped and multiple consecutive whitespace [...]

Create a Customer Dashboard in SharePoint

[youtube=http://in.youtube.com/watch?v=ITPHd5BmRaM]

Design patterns

Design pattern are the standards and best practices used to accomplish a particular goal, well there are various design patterns, they are Abstract factory pattern, Builder pattern, and Factory pattern.
Abstract factory pattern : Its a pattern where you create the interface and the interface expose the properties , methods , events and classess..
Like I have [...]

Windows SharePoint Services server architecture

Courtesy:Microsoft

xsl how to count the nodes in a xml file

I have a xml sample file generated from the schema.
<ns0:PurchaseOrder xmlns:ns0=”http://yourprojectname.Schemas.PO”>
<PONumber>PONumber_0</PONumber>
<PODate>1999-05-31</PODate>
<POQty>POQty_0</POQty>
<Customer>
<Name1>Google</Name1>
<Name1>Google web</Name1>
</Customer>
</ns0:PurchaseOrder>
now, in order to find a countthe nodes in a xml file , you need to place the below code in the buffer are of the inline XSLT call template
<xsl:template name=”MyXsltSampleTemplate”>
<xsl:variable name=”countofPO” select=”count(/*[local-name()='PurchaseOrder' and namespace-uri()='http://yourprojectname.PO']/*[local-name()='Customer' and namespace-uri()='']/*[local-name()='Name1' and namespace-uri()=''])”/>
<xsl:element name=”countofPO”>
<xsl:value-of select=”$countofPO”/>
</xsl:element>
</xsl:template>
Thanks

xsl to find whether a string starts with a word in the element

I have a xml sample file generated from the schema.
<ns0:PurchaseOrder xmlns:ns0=”http://yourprojectname.Schemas.PO”>
<PONumber>PONumber_0</PONumber>
<PODate>1999-05-31</PODate>
<POQty>POQty_0</POQty>
<Customer>
<Name1>BiztalkServerGuide</Name1>
</Customer>
</ns0:PurchaseOrder>
now, in order to find a specific string in the element , you need to place the below code in the buffer are of the inline XSLT call template
<xsl:template name=”AnyNameofYourChoice” match=”//*[starts-with(/*[local-name()='PurchaseOrder' and namespace-uri()='http://yourprojectname.Schemas.PO']/*[local-name()='Customer' and namespace-uri()='']/*[local-name()='Name1' and namespace-uri()=''], ‘Biz‘)]”>
<xsl:element name=”startsWithBiz”>
“starts with Biz”
</xsl:element>
</xsl:template>
Thanks

xsl to find a specific string in the element

I have a xml sample file generated from the schema.
<ns0:PurchaseOrder xmlns:ns0=”http://yourprojectname.Schemas.PO”>
<PONumber>PONumber_0</PONumber>
<PODate>1999-05-31</PODate>
<POQty>POQty_0</POQty>
<Customer>
<Name1>BiztalkServerGuide</Name1>
</Customer>
</ns0:PurchaseOrder>
now, in order to find a specific string in the element , you need to place the below code in the buffer are of the inline XSLT call template
<xsl:template name=”AnyNameofYourChoice” match=”//*[contains(/*[local-name()='PurchaseOrder' and namespace-uri()='http://yourprojectname.Schemas.PO']/*[local-name()='Customer' and namespace-uri()='']/*[local-name()='Name1' and namespace-uri()=''], ‘BizTalkServer‘)]”>
<xsl:element name=”containsBiztalkServerGuide”>
“Contains BiztalkServer String”
</xsl:element>
</xsl:template>
Thanks

xsl:template’ cannot be a child of the ‘xsl:template’ element

when you try to add a <xsl:template> element within a <xsl:template> element
<xsl:template>
<xsl:template>
</xsl:template>
</xsl:template>
and try to test the biztalk map, the compiler will throw an error stating xsl:template’ cannot be a child of the ‘xsl:template’ element.