Re: [xsl] Adding structure to text nodes

Subject: Re: [xsl] Adding structure to text nodes
From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx>
Date: Wed, 19 Mar 2003 12:11:20 -0500
Ismaël:

What you are describing is a perfect example of an up-translation: "All I want to do is get some structure in the content".

No clear solution is evident because XSLT 1.0 wasn't really designed for this job. See the parallel thread "[xsl] questions about XSLT philosophy: how much is too much?"

:->

Cheers,
Wendell

At 09:33 AM 3/19/2003, you wrote:
Hello everybody,

I don't know somebody can help me with this problem, but every hint is
welcome.
What I have is an xml file where a <long> tag is defined. This tag can
contain
information of any format. So this could be:

<long>blablabla:
      1: more blabla
      2: blubblub
bloebbloeb
</long>

<long>blablabla:
1: more blabla
      - blabla in blabla
2: blubblub
</long>

<long>very blabla blabla blabla blabla blabla blabla blabla blabla blabla
blabla blabla blabla blabla</long>

What I need to get is the content of the long node in a well-formed format.
In first case this could be:

blablabla:
1: more blabla
2: blubblub

second:
blabla:
1: more blabla
   - blabla in blabla
2: blubblub

third:
very blabla blabla blabla blabla blabla blabla
blabla blabla blabla blabla blabla blabla

Please note that these are just examples. In practice the contents of the
<long> tag is much longer and complexer. All I want to do is get some
structure in the content. So my question is does somebody here has
experience with structuring information by means of XSLT ? Or does anyone
has a hint what I could do ? I have thought a lot about it, but I don't seem
a clear solution.


======================================================================
Wendell Piez                            mailto:wapiez@xxxxxxxxxxxxxxxx
Mulberry Technologies, Inc.                http://www.mulberrytech.com
17 West Jefferson Street                    Direct Phone: 301/315-9635
Suite 207                                          Phone: 301/315-9631
Rockville, MD  20850                                 Fax: 301/315-8285
----------------------------------------------------------------------
  Mulberry Technologies: A Consultancy Specializing in SGML and XML
======================================================================


XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list



Current Thread