|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: XSL for CSV to XML
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/
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








