Udemy Xslt -

It was perfect. Columns aligned. SKUs concatenated with pipes. Even the empty shipments were correctly represented as blank rows.

<xsl:template match="hcl:ShipmentOrder"> <xsl:for-each select="hcl:Packages/hcl:Package"> <xsl:value-of select="../../hcl:OrderID"/>, <xsl:value-of select="hcl:TrackingNumber"/>, <xsl:for-each select="hcl:Items/hcl:Item"> <xsl:value-of select="hcl:SKU"/>, <xsl:value-of select="hcl:Qty"/> <xsl:if test="not(position()=last())">|</xsl:if> </xsl:for-each> <xsl:text> </xsl:text> </xsl:for-each> </xsl:template> He was mixing a little imperative (the for-each ) with the declarative, and he didn't care. It was his solution. udemy xslt

He wrote his final template:

He slapped his desk. he yelled. His cat, Loki, fell off the couch. Leo added a sticky note to his monitor: You are always somewhere. Know where. It was perfect

Oben