XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
peter hardySubject: 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


Documentemployees(1).xml
employees.xml

Documentemployees(2).xslt
employees.xslt

Postnext
Minollo I.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.

Thanks for reporting this,
Minollo

Postnext
peter hardySubject: 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

Posttop
Minollo I.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).

Hope this helps,
Minollo

 
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.