[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
Hi there,
I'm not so familiar with XSL, please be patient ;-)
I have a XML-document (not HTML) with tables like this:
So, I have three templates for them:
Now, I want to use different kinds of tables in my XML-doc like
Depending on the style-attribut, I can change the template-code for <table> with xsl:choose. But, the <tr>- and <td>-tags are still the same code, so, they will always use the same templates. But I also want to change the code for tr and td, depending on the style of the complete table.
Is this possible or have I to write the xsl:choose - statement again in the tr- and in the td-templates?
Thank you!
Best,
Tom
[xsl] Templates for different kinds of tags?
Subject: [xsl] Templates for different kinds of tags? From: Thomas Zastrow <listen@xxxxxxxxxxxxxxxxx> Date: Thu, 22 Mar 2007 19:19:15 +0100 |
Hi there,
I'm not so familiar with XSL, please be patient ;-)
I have a XML-document (not HTML) with tables like this:
<table> <tr> <td></td><td></td> </tr> </table>
So, I have three templates for them:
<xsl:template match="table"> <xsl:template match="tr"> <xsl:template match="td">
Now, I want to use different kinds of tables in my XML-doc like
<table style="simple"> <table style="xyz">
Depending on the style-attribut, I can change the template-code for <table> with xsl:choose. But, the <tr>- and <td>-tags are still the same code, so, they will always use the same templates. But I also want to change the code for tr and td, depending on the style of the complete table.
Is this possible or have I to write the xsl:choose - statement again in the tr- and in the td-templates?
Thank you!
Best,
Tom
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] FOP and keep-with help??!, Helen McArthur | Thread | RE: [xsl] Templates for different k, Michael Kay |
Re: [xsl] I need to make sure that , G. Ken Holman | Date | RE: [xsl] Templates for different k, Michael Kay |
Month |
Keywords