Subject: Re: [xsl] How to set an element as the context without using a for-each loop? From: "Joel Kalvesmaki director@xxxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: Wed, 1 May 2024 18:36:30 -0000 |
<xsl:function name="f:procedureLeg" as="element()+"> <xsl:param name="record" as="element()"/>
<xsl:for-each select="$record"> <xsl:sequence select="f:convert(Customer_or_Area_Code)"/> <xsl:sequence select="f:convert(Cycle_Date)"/> <xsl:sequence select="f:convert(Sequence_Number)"/> ... </xsl:for-each> </xsl:function>
That's lousy as well. "record" is just a single element; I shouldn't be looping over a single element (in my opinion).
Is there a better way? One that doesn't involve qualifying every child element and doesn't involve looping over a single element?
-- Joel Kalvesmaki Director, Text Alignment Network http://textalign.net
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] How to set an element as , Leo Studer leo.stude | Thread | [xsl] XSL-List Guidelines, B Tommie Usdin btusd |
Re: [xsl] How to set an element as , Leo Studer leo.stude | Date | Re: [xsl] How to set an element as , Martin Honnen martin |
Month |