Hi everybody,
I have a question (and I hope Iâll be able to explain my need).
Is it possible to manage the attributes with a condition?
For example (not real, just to simplify), imagine to have a long table as:
<table>
â
â
â
</table>
And you want to change one or more attributes of the <table> element depending on the output format, something like
<table frame=âallâ> if the output format is HTML
<table frame=ânoneâ>
if the output format is PDF
Obviously, the solution of use a condition in the <table> element is not praticable, because the whole table would be conditioned and we would need to
write the entire table 2 times, one time per condition.
<table frame=âallâ outputformat=âHTMLâ>
â
â
â
</table>
<table frame=ânoneâ outputformat=âPDFâ>
â
â
â
</table>
Does it exists something similar to the following example, in the XLST world?
<table>
<add-attribute-to-parent
name=âframeâ value=âallâ outputformat=âHTMLâ/>
<add-attribute-to-parent
name=âframeâ value=ânoneâ outputformat=âPDFâ/>
â
â
</table>
Of course, Iâm not asking a solution for âframeâ and âtableâ, but a generic one. Something I suppose could be a pre-processing, but in this case I should
edit the toolchain, and I would prefer to avoid itâ
What is the best method to solve this problem?
Thank you since now,
Matteo