This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ns0:PeopleTarget xmlns:ns0="http://HowMapsWorks.PeopleTarget"> | |
<Person> | |
<Name>Jose Antonio</Name> | |
<Sex>M</Sex> | |
</Person> | |
<Person> | |
<Name>Rui Barbosa</Name> | |
<Sex>M</Sex> | |
</Person> | |
<Person> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ns0:PeopleTarget xmlns:ns0="http://HowMapsWorks.PeopleTarget"> | |
<Person> | |
<Name>Sandro Pereira</Name> | |
<Sex>M</Sex> | |
</Person> | |
<Person> | |
<Name>Elsa Ligia</Name> | |
<Sex>F</Sex> | |
</Person> | |
<Person> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ns0:PeopleOrigin xmlns:ns0="http://HowMapsWorks.PeopleOrigin"> | |
<Client> | |
<Name>Sandro Pereira</Name> | |
<Age>33</Age> | |
<Sex>M</Sex> | |
</Client> | |
<Client> | |
<Name>Elsa Ligia</Name> | |
<Age>28</Age> | |
<Sex>F</Sex> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-16"?> | |
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:var="http://schemas.microsoft.com/BizTalk/2003/var" exclude-result-prefixes="msxsl var s0 userCSharp" version="1.0" xmlns:ns0="http://HowMapsWorks.PersonTarget2" xmlns:s0="http://HowMapsWorks.PersonOrigin" xmlns:userCSharp="http://schemas.microsoft.com/BizTalk/2003/userCSharp"> | |
<xsl:output omit-xml-declaration="yes" method="xml" version="1.0" /> | |
<xsl:template match="/"> | |
<xsl:apply-templates select="/s0:PersonOrigin" /> | |
</xsl:template> | |
<xsl:template match="/s0:PersonOrigin"> | |
<xsl:variable name="var:v1" select="userCSharp:LogicalExistence(boolean(ZipCode))" /> | |
<xsl:variable name="var:v3" select="userCSharp:StringConcat(string(LastName/text()) , ", " , string(FirstName/text()))" /> | |
<ns0:PersonTarget2> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ns0:Destino xmlns:ns0="http://ComoFuncinamOsMapas.Schema2"> | |
<Pessoa> | |
<Nome>Jose Antonio</Nome> | |
<Sexo>M</Sexo> | |
</Pessoa> | |
<Pessoa> | |
<Nome>Rui Barbosa</Nome> | |
<Sexo>M</Sexo> | |
</Pessoa> | |
<Pessoa> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ns0:Origem xmlns:ns0="http://ComoFuncinamOsMapas.Schema1"> | |
<Cliente> | |
<Nome>Sandro Pereira</Nome> | |
<Idade>33</Idade> | |
<Sexo>M</Sexo> | |
</Cliente> | |
<Cliente> | |
<Nome>Elsa Ligia</Nome> | |
<Idade>28</Idade> | |
<Sexo>F</Sexo> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ns0:Destino xmlns:ns0="http://ComoFuncinamOsMapas.Schema2"> | |
<Pessoa> | |
<Nome>Sandro Pereira</Nome> | |
<Sexo>M</Sexo> | |
</Pessoa> | |
<Pessoa> | |
<Nome>Elsa Ligia</Nome> | |
<Sexo>F</Sexo> | |
</Pessoa> | |
<Pessoa> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<xsl:for-each select="Empregado"> | |
<Pessoa> | |
<Nome> | |
<xsl:value-of select="Nome/text()" /> | |
</Nome> | |
<Sexo> | |
<xsl:value-of select="Sexo/text()" /> | |
</Sexo> | |
</Pessoa> | |
</xsl:for-each> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-16"?> | |
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:var="http://schemas.microsoft.com/BizTalk/2003/var" exclude-result-prefixes="msxsl var s0 userCSharp" version="1.0" xmlns:s0="http://ComoFuncinamOsMapas.PessoaOrigem" xmlns:ns0="http://ComoFuncinamOsMapas.PessoaDestino2" xmlns:userCSharp="http://schemas.microsoft.com/BizTalk/2003/userCSharp"> | |
<xsl:output omit-xml-declaration="yes" method="xml" version="1.0" /> | |
<xsl:template match="/"> | |
<xsl:apply-templates select="/s0:PessoaOrigem" /> | |
</xsl:template> | |
<xsl:template match="/s0:PessoaOrigem"> | |
<xsl:variable name="var:v1" select="userCSharp:LogicalIsString(string(CodigoPostal/text()))" /> | |
<xsl:variable name="var:v3" select="userCSharp:StringConcat(string(Nome/text()) , " " , string(Apelido/text()))" /> | |
<ns0:PessoaDestino2> |