[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
[xsl] Making flat files strucutred hierarchically
Subject: [xsl] Making flat files strucutred hierarchically From: "Huditsch Roman" <Roman.Huditsch@xxxxxxxxxxxxx> Date: Wed, 6 Oct 2004 16:36:47 +0200 |
Hi, I am in search for a comfortable way for sructuring flat files. Please take this source document as an example: <?xml versio="1.0"?> <root> <title>Titel 1</title> <para>Para 1</para> <para>Para 2</para> <para>Para 3</para> <title>Title 2</title> <para>Para 1</para> <para>Para 2</para> <title>Title 3</title> <para>Para 1</para> <para>Para 2</para> </root> After my XSLT 1,0 transformation the output should look like <?xml versio="1.0"?> <root> <layer> <title>Titel 1</title> <para>Para 1</para> <para>Para 2</para> <para>Para 3</para> </layer> <layer> <title>Title 2</title> <para>Para 1</para> <para>Para 2</para> </layer> <layer> <title>Title 3</title> <para>Para 1</para> <para>Para 2</para> </layer> </root> Is there any way to do this? I don't know how to define "take all "para" nodes up to the next "title" element..... Can you help me? Thank you very much in advance. Wbr, Roman ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mimesweeper.com **********************************************************************
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] condition problem, Mukul Gandhi | Thread | Re: [xsl] Making flat files strucut, Mukul Gandhi |
Re: [xsl] XSL and localization, David Carlisle | Date | [xsl] substring-after Not Working i, Ahsan Abbas ASGHAR |
Month |
Keywords