Subject: Re: [xsl] XSL for CSV to XML From: "Liam R. E. Quin liam@xxxxxxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: Thu, 14 Feb 2019 06:47:38 -0000 |
On Thu, 2019-02-14 at 05:54 +0000, Rahul Singh rahulsinghindia15@xxxxxxxxx wrote: > Hi, > > I wrote XSL for CSV to XML conversion but i am not getting proper > output > for #Id 3. and Also I need output as per given expected output. You are using <elem> to make elements, rather than, for example, <xsl:element name="$headings[$n]">...</xsl:element> You'd have to arrange for $headings to be e.g. <xsl:variable name="headings" as="xs:string*" select="tokenize($headerrow, '[|]')" /> where $headerrow is the line containing the names. Liam -- Liam Quin, https://www.delightfulcomputing.com/ Available for XML/Document/Information Architecture/XSLT/ XSL/XQuery/Web/Text Processing/A11Y training, work & consulting. Web slave for vintage clipart http://www.fromoldbooks.org/
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] XSL for CSV to XML, Rahul Singh rahulsin | Thread | Re: [xsl] XSL for CSV to XML, Adam Retter adam.ret |
[xsl] XSL for CSV to XML, Rahul Singh rahulsin | Date | Re: [xsl] XSL for CSV to XML, Adam Retter adam.ret |
Month |