This file contains hidden or 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
<!-- The template matching sObjects/sObject/*[not(node())], when selected for execution, does nothing, which results in | |
"deleting" (not copying) the matched node in the output.--> | |
<xsl:template match="sObjects/sObject/*[not(node())]"/> | |
<!--The template below matching fieldsToNull has a higher priority specified than the "deleting" template above, | |
so it is selected for execution on any fieldsToNull element. | |
The matched fieldsToNull element is shallow-copied to the output, | |
and then its content (body) is produced by applying templates in mode enumerate to all empty siblings-elements. | |
--> | |
<xsl:template match="fieldsToNull" priority="5"> |
This file contains hidden or 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
<!--This identity rule when selected for execution matches all attributes (@*) and elements (node()) in the source xml | |
It results in a copy the entire document 'as-is' --> | |
<xsl:template match="node()|@*"> | |
<xsl:copy> | |
<xsl:apply-templates select="node()|@*"/> | |
</xsl:copy> | |
</xsl:template> |
This file contains hidden or 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
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:enterprise.soap.sforce.com" xmlns:si="http://www.w3.org/2001/XMLSchema-instance"> | |
<soapenv:Header> | |
<urn:SessionHeader> | |
<urn:sessionId>NNNNNNN</urn:sessionId> | |
</urn:SessionHeader> | |
</soapenv:Header> | |
<soapenv:Body> | |
<urn:create> | |
<urn:sObjects si:type="TaskRelation"> | |
<!--Zero or more repetitions:--> |
This file contains hidden or 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="ISO-8859-1"?> | |
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> | |
<xsl:template match="country"> | |
<xsl:if test="contains(@name, 'stan')"> | |
<xsl:element name="Stan"> | |
<xsl:value-of select="@name" /> | |
</xsl:element> | |
</xsl:if> | |
This file contains hidden or 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="ISO-8859-1"?> | |
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> | |
<xsl:template match=" node() | @* "> | |
<xsl:copy> | |
<xsl:apply-templates select="node() | @*" /> | |
</xsl:copy> | |
</xsl:template> | |
<xsl:template match="Department/Course[@Enrollment > 60]" /> |
This file contains hidden or 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="ISO-8859-1"?> | |
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> | |
<xsl:template match="text()" /> | |
<xsl:template match="Department[@Code = 'EE']/Course"> | |
<xsl:copy> | |
<xsl:copy-of select="@*"/> | |
This file contains hidden or 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
var text = "thisis is sisi sis iskallakksdj lakdjf asdf hark \ | |
the cannons hear them Elias alksdfjalksdjkjaskdjflk kajsdfkj \ | |
Erwin kajsdklfjasdfjlkj asdf Erwin sakaksl askdfjaskdfj Erwin", | |
myName = "Erwin", | |
hits = []; | |
for ( var i = 0; i < text.length; i++ ) { | |
if ( text[i] === myName[0] ) { | |
var count = 0; | |
var index = hits.length - 1; |
This file contains hidden or 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
*---------------------------------------------------------------- | |
* METHOD create_tab_for_display | |
* IMPORTING | |
* edo_table type ref to data | |
* edo_struc type ref to data. | |
*---------------------------------------------------------------- | |
method create_tab_for_display. | |
data: | |
go_sdescr_new type ref to cl_abap_structdescr, |
This file contains hidden or 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
package com.edegula.reddit.dailyprog.easy; | |
import java.util.Scanner; | |
public class Challenge001 { | |
private Scanner scanner; | |
private String name; | |
private int age; | |
private String userName; |
This file contains hidden or 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
report helloworld. | |
write 'hello world'. |
NewerOlder