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 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
neal ginsbergSubject: for-each not properly displayed in xslt mapper
Author: neal ginsberg
Date: 07 Jul 2004 08:58 AM
I am running with the XSLT Mapper option to display xsl:for-each as a
line instead of a block.
In 5.3 build 179, when I connect the source and target element using the
for-each icon and then right click on the connection line, the entry for
"carry value" is not highlighted and I cannot check it. The line itself
is dark green.
If I either save the xslt or swtich to the xslt view, the icon goes
away (as expected)and I'm left with a light green line (which should
have been there in the first place). Now when I right click on the line
I can choose carry value.

Postnext
(Deleted User) Subject: RE: for-each not properly displayed in xslt mapper
Author: (Deleted User)
Date: 07 Jul 2004 10:21 AM
Hi, neal,

I understand the problem you are describing. It is expected behavior.
The 'carry value' option only avlaible to for-each link that directly
link from source to target. If you use the for-each block modal, you
need to make another link to indicate you want to create a xsl:value-of.

In out next release update, there will be a nice feature which allow you
right click on source and drag it over to target, you will see a context
menu allow you to create repeatable link(light green for-each link), in
this case, the 'carry value' option will be avaliable on the link.


Hope this helps.

Song.




> -----Original Message-----
> From: stylus-studio-xslt Listmanager
> [mailto:stylus-studio-xslt.listmanager@stylusstudio.com]
> Sent: Wednesday, July 07, 2004 9:01 AM
> Subject: for-each not properly displayed in xslt mapper
>
> From: "neal ginsberg" <nginsber@telcordia.com>
>
> I am running with the XSLT Mapper option to display
> xsl:for-each as a line instead of a block.
> In 5.3 build 179, when I connect the source and target
> element using the for-each icon and then right click on the
> connection line, the entry for "carry value" is not
> highlighted and I cannot check it. The line itself is dark green.
> If I either save the xslt or swtich to the xslt view, the
> icon goes away (as expected)and I'm left with a light green
> line (which should have been there in the first place). Now
> when I right click on the line I can choose carry value.
>
>
>
> --
> To reply: mailto:stylus-studio-xslt.7689@stylusstudio.com
> To start a new topic: mailto:stylus-studio-xslt@stylusstudio.com
> To login: http://www.stylusstudio.com/SSDN/ To (un)subscribe:
> mailto:stylus-studio-xslt.list-request@stylusstudio.com
>
>
>

Postnext
neal ginsbergSubject: RE: for-each not properly displayed in xslt mapper
Author: neal ginsberg
Date: 07 Jul 2004 10:48 AM
Song,

Is there any way in the current release to set for-each with
carry-value other than use two icons or by switching in and out of the
Mapper window?

neal

Posttop
(Deleted User) Subject: RE: for-each not properly displayed in xslt mapper
Author: (Deleted User)
Date: 07 Jul 2004 11:14 AM
In current version we automatically create for-each link only when both
the source element and target element are repeatable, you can see the
repeatable icon on the element if they are repeatable. In other cases,
if you link from source to target, the default link will be value-of
link.

So if you want to create for-each between non-repeatable elements, you
have to use for-each block in current version. And if you want to pass
value, you don't have to use another icon, just draw a link from source
to target, you will see a dark-green link which is value-of.

Take a example, you have a book element in source and Book element in
target. If both of them are repeatable, thing become very easy. just
draw a link from book to Book, a for-each link will be created and you
can see the option of 'Carry Value'. Otherwise, if you want for-each,
you have to create a for-each block and link them through this block. At
this point, you will have a xsl:for-each element, if you want to carry
value on this for-each, just draw another link from book to Book, a
value-link will be established and xsl:value-of select="." will be
created in the source.


So the answer is: to make for-each carry value in current version, you
don't have to switch in and out of the mapper window, you only need one
icon instead of two icons.


Hope this help.

Song.









> -----Original Message-----
> From: stylus-studio-xslt Listmanager
> [mailto:stylus-studio-xslt.listmanager@stylusstudio.com]
> Sent: Wednesday, July 07, 2004 10:50 AM
> Subject: RE: for-each not properly displayed in xslt mapper
>
> From: "neal ginsberg" <nginsber@telcordia.com>
>
> Song,
>
> Is there any way in the current release to set for-each with
> carry-value other than use two icons or by switching in and
> out of the Mapper window?
>
> neal
>
>
>
> --
> To reply: mailto:stylus-studio-xslt.7691@stylusstudio.com
> To start a new topic: mailto:stylus-studio-xslt@stylusstudio.com
> To login: http://www.stylusstudio.com/SSDN/ To (un)subscribe:
> mailto:stylus-studio-xslt.list-request@stylusstudio.com
>
>
>

 
Topic Page 1 2 3 4 5 6 7 8 9 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.