<mix:attribute> |
<mix:break> |
<Employee xmlns:mix="http://bit stew.com/schemas/1 .0/xml-template"> <mix:attribute name="salary">1000 0</mix:attribute> </Employee> |
<mix:for-each select="1 to 5"> <mix:if test="$count = 2"> <mix:break/> </mix:if> <mix:global-variable name="count" select="$count + 1" as="xs:integer"/> </mix:for-each> |
<mix:function> |
<mix:choose> |
<mix:function name="getMessage" > Hello World! </mix:function> <FnResult> <mix:call-function name="getMessage" /></FnResult> |
<mix:choose> <mix:when test="/Account/Balance > 10000"> <font color="black"><b>${$balance} </b></font> </mix:when> <mix:when test="/Account/Balance < 100"> <font color="red">${$balance}</font> </mix:when> <mix:otherwise> <font color="black">${/Account/Balance}</font> </mix:otherwise> </mix:choose> |
<mix:column> |
<mix:copy-of> |
<mix:for-each select="1 to 5"> <mix:insert source="testDB" table="catalog"> <mix:column name="id">NEW00{.}</mix:column> <mix:column name="name">New item {.}</mix:column> </mix:insert> </mix:for-each> |
<Books> <Book rating="10"> <Title>Moby Dick</Title> </Book> <Book rating="5"> <Title>Rug Rats</Title> </Book> </Books> </mix:variable> <mix:copy-of select="$books/Books/Book[@rating = 10]/Title"/> |
<mix:email> |
<mix:if> |
<mix:email source="myEmail"> <mix:from>from@demo.com</mix:from> <mix:subject>Test</mix:subject> <mix:body>This is a sample message</mix:body> <mix:recipient>to@demo.com</mix:recipient> </mix:email> |
<mix:if test="/Book/@price < 10"> <Discounted> <mix:copy-of select="/Book/@isbn"/> </Discounted> </mix:if> |
<mix:function> |
<mix:include> |
<mix:function name="str:reverse" as="xs:string"> <mix:param name="sentence" as="xs:string"/> <mix:sequence select="if (contains($sentence, ' ')) then concat(str:reverse(substring-after($sentence, ' ')), ' ', substring-before($sentence, ' ')) else $sentence"/> </mix:function> |
<mix:include href="http://www.bitstew.com/test.xml"/> |
<mix:insert> |
<mix:jdbc> |
<mix:for-each select="1 to 5"> <mix:insert name="insertCount" source="testDB" table="catalog"> <mix:column name="id">NEW00{.}</mix:column> <mix:column name="name">New item {.}</mix:column> </mix:insert> |
<mix:jdbc-source name="testDB" url="jdbc:postgresql:test" username="postgres" password="password" driver="org.postgresql.Driver"/> |
<mix:java-function> |
<mix:jms-source> |
</mix:java-function> <CamelCase>{toCamelCase('HELLO WORLD')}</CamelCase> </Template> |
<mix:jms-source name="jsmQ" url="jsm.test.bitstew.com:10000" context-factory="org.jnp.interfaces.NamingContextFactory" connection-factory="SecureConnectionFactory" username="user" password="password" exception-listener="com.bitstew.examples.ExceptionListener" close-on-exit="yes"> <mix:property name="java.naming.factory.url.pkgs" value="org.jboss.naming:org.jnp.interfaces"/> </mix:jms-source> |
<mix:message> |
<mix:prepared-call> |
<Document xmlns:mix="http://bitstew.com/schemas/1.0/xml-template"> <mix:message>hello world</mix:message> </Document> |
<mix:prepared-call source="testDB" name="testCall"> <mix:statement>? = call upper(?)</mix:statement> <mix:jdbc-out-param name="upper" type="java.sql.Types.VARCHAR"/> <mix:jdbc-param type="java.sql.Types.VARCHAR">lowercase to uppercase</mix:jdbc-param> </mix:prepared-call> |
<mix:prepared-insert> |
<mix:streaming-file-source> |
<mix:prepared-insert name="insertCount" key-name="keys" source="testDB" table="catalog"> <mix:column name="id">NEW010</mix:column> <mix:column name="name">New item 10</mix:column> </mix:prepared-insert> |
<mix:streaming-file-source name="addresses" path="test.csv" type="delimiter-separated" delimiter="," trim="true" callback="myCallback" /> |
<mix:value-of> |
<mix:when> |
<Inventory xmlns:mix="http://bitstew.com/schemas/1.0/xml-template"> <mix:value-of select="/Book/Title" disable-output-escaping="yes"/> </Inventory> |
<mix:when test="/Account/Balance > 10000"> <font color="black"><b>${$balance}</b></font> </mix:when> |
Created By
Metadata
Comments
No comments yet. Add yours below!
Add a Comment
Related Cheat Sheets