[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

creating elements and hierarchy

Subject: creating elements and hierarchy
From: Andreas Peter <info@xxxxxxxxxx>
Date: Thu, 08 Nov 2007 12:01:06 +0100
 creating elements and hierarchy
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):

<root>
    <textabschnitt>
        <h1> ... </h1>
        <p> ... </p>
    </textabschnitt>
</root>

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="."/>
                    </fo:block>
                </xsl:element>
            </xsl:element>
    </xsl:template>

Unfortunately nothing happens to my fo-output.

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

Thanks,
Andreas

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.