Thursday, December 20, 2007

XSLT options

Here are the relevant XSLT elements in order of you could need it in your own program. For a good XSLT reference look at W3Schools.com - reference. In a XSLT program it is also possible to to write comments with the standard HTML commentfunction "- your comment here ->".

">

to catch the value from the element/attribute and move it to the ABAP variable


"INVOICE/PARTNER/ADDRESS/street" />

">

use this element to make loops over your XML Tags, maybe if you have more than one XML tag (street) in your XML-File

for-each select="INVOICE/PARTNER/ADDRESS/street">
"." />
for-each>

">

create a variable for access to the XML element. It is just a nice shortcut. Note that you can close this XSL element it self, look at the slash before the >

"var1" select="the_xml_element" />

continuative the "for-each" element you can write it like this:

"address" select="INVOICE/PARTNER/ADDRESS" />for-each select="$address/street">
"." />
for-each>

No comments:

Blog Archive