XMLTOXML
XMLTOXML transforms the XML using the XSL.
COMMAND SYNTAX
XMLTOXML(xml,xsl,result)
SYNTAX ELEMENTS
If result=0, newxml will contain a transformed version of xml using xsl.
If result=1, newxml will hold an error message.
XSL CONTENTS
<?xml version="1.0" ?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match="person"> <p><xsl:value-of select="name" /></p> </xsl:template> </xsl:stylesheet>
XML CONTENTS
<list> <person> <name>Bob</name> </person> <person> <name>Amy</name> </person> </list>
EXAMPLE
newxml = XMLTOXML(xml,xsl,rc) CRT newxml
SCREEN OUTPUT
<p>Bob</p><p>Amy</p>
Last update: Sat, 16 Jul 2022 15:34