[xsl] creating elements and hierarchy

Subject: [xsl] creating elements and hierarchy
From: Andreas Peter <info@xxxxxxxxxx>
Date: Thu, 08 Nov 2007 12:01:06 +0100
Hello XSL-List,

I have the following problem:

I have a XML-file which is not very well structured. My aim is to include different parent elements just for getting a better structure.

This is the source (in extracts):

        <h1> ... </h1>
        <p> ... </p>

I try to include an element <headings> as parent element for every <h1> element and use the following transformation:

<xsl:template match="h1">
            <xsl:element name="ep:headings">
                <xsl:element name="ep:h1">
                    <fo:block xsl:use-attribute-sets="h1">
                        <xsl:value-of select="."/>

Unfortunately nothing happens to my fo-output.

I would be very thankful for every hint solving my problem.


Current Thread