skip to Main Content

XSLT3 set json output to array of string without key

I am new to xslt, I have a xml containing those elements <cbl:ShippingAddress> <cbl:AddressLine AddressLineNumber="1"> <cbl:Line>line1</cbl:Line> </cbl:AddressLine> <cbl:AddressLine AddressLineNumber="2"> <cbl:Line>line2</cbl:Line> </cbl:AddressLine> </cbl:ShippingAddress> using this code <map key="address"> <array key="lines"> <xsl:for-each select="/cbl:ShippingAddress/cbl:AddressLine/cbl:Line"> <map> <string key="line">{.}</string> </map> </xsl:for-each> </array> </map> I get…

VIEW QUESTION
Back To Top
Search