Subject:Xslt Mapper maps to wrong elements Author:peter hardy Date:29 Mar 2005 10:05 AM Originally Posted: 29 Mar 2005 10:00 AM
Hi guyz,
Am new to using Stylus and although its showing great potential I'm having
a problem with the Xslt Mapper.I've set the source xml document, created the target document and set up the Xslt.
So far so good. Although, the style sheet works correctly it doesn't look right
in the mapper. For some reason all my <xsl:value-of /> statements show as being
mapped to the table/thead/tr/td element when they should be mapped to
the table/tbody/tr/td elements.
Am I doing something wrong?
Cheers, Peter
Subject:Re: Xslt Mapper maps to wrong elements Author:Minollo I. Date:29 Mar 2005 11:18 AM
Peter,
we can see what you are describing; the problem is that XSLT Mapper is
trying to "infer" the output context without running the whole XSLT, and it
may do mistakes, like in this case.
The wrong displayed context will not affect the underlying Mapper behavior,
but it's clearly annoying. The mechanism used by Mapper is meant to work
against a pre-specified target schema, with not many name ambiguities.
We are thinking about solutions to this problem, and we'll keep you posted
about progress.
Subject:Re: Xslt Mapper maps to wrong elements Author:peter hardy Date:31 Mar 2005 02:38 AM
Hi there,
Thanks for looking into this. I've tried using a target xml document (all of the target elements are in blue) and I am experiencing the same problem. Is there any way around this? Cheers, Pete
Subject:Re: Xslt Mapper maps to wrong elements Author:Minollo I. Date:31 Mar 2005 08:13 AM
Not in the currently available build; unfortunately the HTML target you are
using is full of ambiguities when it comes down to understanding what a
single template is generating without executing the whole processing. The
only solution is to either ask the user or to just display the fragment
generated by the individual template out of context.
We are working on a solution, but it will have to wait until version 6
release 3 is out (in May).