Solution sought to the Xalan-key bug
"Boyle Owen" <[email protected]> Thu, 18 Sep 2003 14:00:57 +0200
| Newsgroups | gmane.text.xml.schematron |
|---|---|
| Message-ID | <FAB6A3A2CC5BDB448DADFA1C8C0752966CB194@SOMEXEVS001.ex.ordersx.org> |
Greetings,
I am new to Schematron and I'm trying to get a definitive solution to
the famous "Markup Error: no match attribute on <key> outside <rule>".
My understanding so far is that this arises from a bug in Xalan (which I
am compelled to use) which does not allow an attribute called "key".
Having read through the archives of the mailing list and the comments in
skeleton1-5.xsl, I found the following advice:
"Xalan for C 1.0 has problem with key, so edit by hand. Find "KEY"
below"
... we search to line
<!-- NOTE: if you get complaint about "key" here (e.g. Xalan4C 1.0)
replace
"key" with "$hiddenKey" -->
<xsl:template match="sch:key | key " mode="do-keys" >
... so I tried;
match="sch:key | $hiddenKey "
match="sch:$hiddenKey | $hiddenKey "
match="sch:$hiddenKey"
match="$hiddenKey"
but all of these produce a TransformerException.
Am I missing something very obvious here? What exactly am I supposed to
change to get it to work?
Rgds,
Owen Boyle
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please notify the sender urgently
and then immediately delete the message and any copies of it from your
system. Please also immediately destroy any hardcopies of the message.
You must not, directly or indirectly, use, disclose, distribute, print,
or copy any part of this message if you are not the intended recipient.
The sender's company reserves the right to monitor all e-mail
communications through their networks. Any views expressed in this
message are those of the individual sender, except where the message
states otherwise and the sender is authorised to state them to be the
views of the sender's company.
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf