xsl-list
[Top] [All Lists]

RE: [xsl] creating elements and hierarchy

2007-11-08 04:26:08

I think the bug is in the part of the code that you've left out.

Is there perhaps a default namespace declaration lurking around?

Michael Kay
http://www.saxonica.com/


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



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>