On Oct 13, 2005, at 17:33, Thomas Winkler wrote:
Hi,
<snip />
If I want to remove the "Position", then the following
template did that for me :
<xsl:template match="//[EMAIL PROTECTED]'Pos']"/>
Luckily, Xalan does not complain about the non-unique
values of id.
However; if I want the "Position" in the table then
FOP will correctly complain "... id values must be
unique in document."
My question : is there any possibility to mark several
elements with the same attribute name so that I can
run such a "remove-template" ?
How about using 'id=posXXX', where the XXX value is the result from
generate-id()?
In that case, you could have a template similar to what you have now:
<xsl:template match="//*[starts-with(@id,'pos')]" />
Another option would be to introduce a custom namespace for that, and
define the 'id' attribute in that namespace, so the unique-constraint
won't apply (since it's no longer the default XML 'id' attribute).
(Jay's suggestion just rolled in --I'm not 100% sure, but I think FOP
will complain if it encounters attributes in the fo: namespace that are
not properties as defined in the Rec. FOP 0.20.5 may turn out to be
forgiving... Just to be on the safe side, I'd use a separate
namespace.)
HTH!
Greetz,
Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]