Hi Owen,
> 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>".
And you're sure that your Schematron markup is correct,
i.e. all your key elements have indeed a match attribute?!
> <!-- 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.
The hint to replace with "$hiddenKey" is misleading. Rick?
XSLT doesn't allow variables within match attributes, that's why you're
seeing this TransformerException.
Cheers,
Oliver
/-------------------------------------------------------------------\
| ob|do Dipl.Inf. Oliver Becker |
| --+-- E-Mail: obecker@xxxxxxxxxxxxxxxxxxxxxxx |
| op|qo WWW: http://www.informatik.hu-berlin.de/~obecker |
\-------------------------------------------------------------------/
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
|