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

Re: how to use xsl template twice on same tag?

Subject: Re: how to use xsl template twice on same tag?
From: "sudha rv" <rv_sudha@xxxxxxxxxxx>
Date: Wed, 17 Jul 2002 11:40:07 +0000
xsl same tag
hi thanks for the suggestion. by the way I am using their xsl as my basic one. if u try to convert to a fo, u can see it works fine but u don't have a <fo:table-column> tag generated. When I had a look the code I found that it try to interpret the below one for generating <fo:table-column> tag. which is not present in my xhtml.
<xsl:apply-templates select="html:col | html:colgroup"/>


that is why I thought of interpreting td tag with a mode value and define <fo:table-column> inside the template like

 <xsl:template match="html:td" mode="contents">
    <fo:table-column xsl:use-attribute-sets="td">
       <xsl:call-template name="make-cell" />
       <xsl:apply-templates/>
    </fo:table-column>
 </xsl:template>


what I doubt is the way I am calling the xsl template is somehow wrong :(




From: Francis Norton <francis@xxxxxxxxxxx>
Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re:  how to use xsl template twice on same tag?
Date: Wed, 17 Jul 2002 11:44:52 +0100

Hi Sudha,

It is also worth mentioning that there is a good XSLT transform for converting xhtml to fo available from

http://www.antennahouse.com/XSLsample/XSLsample.htm

- a real service to the community!

I'm using this at the moment with Amaya as a more-or-less WYSIWYG XHTML editor, and it works well.

Francis.

sudha rv wrote:

HI everybody

i AM IN NEED OF HELP OF U PEOPLE :(
HERE i AM WRITING AN xsl file to convert my xhtml to fo.
I want to create a fo table in such format that

<fo:table>
<fo:table-column column-width="150pt"/>
<fo:table-column column-width="150pt"/>
<fo:table-body font-size="10pt" font-family="sans-serif">
<fo:table-row>
<fo:table-cell>
<fo:block>text</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block>text</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell>
<fo:block>text</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block>text</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell>
<fo:block>text</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block>text</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>

I have an htm table. now I need to interpret <td> for making tags
<fo:table-column> and <fo:table-cell>.I can use
<xsl:template match="html:td">
<fo:table-cell xsl:use-attribute-sets="td">
<xsl:call-template name="make-cell" />
</fo:table-cell>
</xsl:template>
for defining table-cell.but I cannot use <xsl:template
match="html:td">
twice for defining both table-cel and table-column.
I tried by using <xsl:foreach> which also didn;t give me the desired
output.

Can anybody help me out?

thanks
sudha




Best Regards


Sudha
einsurance Agency AG
Information Technology

Germany
----------------------------------------------------------------------
Unless we ask the right questions.. we won't get the right answers
----------------------------------------------------------------------



_________________________________________________________________
Join the world's largest e-mail service with MSN Hotmail. http://www.hotmail.com



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




-- "Never mind manoeuvre, go straight at 'em." - Admiral Horatio Nelson




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




Best Regards

Sudha
einsurance Agency AG
Information Technology

Germany
----------------------------------------------------------------------
Unless we ask the right questions.. we won't get the right answers
----------------------------------------------------------------------



_________________________________________________________________
MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx



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



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.