Re: creating elements and hierarchy
On 08/11/2007, Andreas Peter <info@xxxxxxxxxx> wrote: > 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. You are either not calling apply-templates on the h1 element, or the default namespace is not null. Either way you'll need to show a bit more code.. cheers -- Andrew Welch http://andrewjwelch.com Kernow: http://kernowforsaxon.sf.net/
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