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
deborah folgerSubject: Concate Function Block
Author: deborah folger
Date: 17 May 2004 06:15 PM
I am having trouble concatenating over three
things in the concate function block.
I mapped three elements from my source schema
to the concate function block and mapped the
output of the block to my target schema.
I saved the map with no problem and viewed the
output of the map with no problem. Than I
mapped a text block to the fourth input to the
concate block and it appeared to be OK. The fifth
input showed up on the concate block as expected.
However when I saved the file the concate block
disappeared and an xpath icon appeared
that was mapped to the target schema but
did not show the mapping from the mapping from the
source schema any longer. Also when I asked
to have the output generated it produced an
error: Syntax error in value-of and asked if
I wanted to "Jump to location". I need to
concatenate about 12 things, some schema elements
and some text, and want to save
and look at the results as I am going along.
I want to
be able to continually edit the concate function
block as I need to. So any clue what is going on?

Postnext
Ivan PedruzziSubject: RE: Concate Function Block
Author: Ivan Pedruzzi
Date: 17 May 2004 07:03 PM
Hi Deborah,

I try to replicate the same scenario using the books.xml and catalog.xml
(from the examples directory) with the XSLT below, it seems to work fine

<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<Catalog>
<xsl:for-each select="books/book">
<Book>
<Title>
<xsl:value-of
select="concat(@bookid,@pubdate,title,authors/author,subject)"/>
</Title>
</Book>
</xsl:for-each>
</Catalog>
</xsl:template>
</xsl:stylesheet>

Could you give us an example?

Ivan

> -----Original Message-----
> From: stylus-studio-tech Listmanager
[mailto:stylus-studio-tech.listmanager@stylusstudio.com]
> Sent: Monday, May 17, 2004 6:18 PM
> Subject: Concate Function Block
>
> From: "deborah folger" <deborah.h.folger@boeing.com>
>
> I am having trouble concatenating over three
> things in the concate function block.
> I mapped three elements from my source schema
> to the concate function block and mapped the
> output of the block to my target schema.
> I saved the map with no problem and viewed the
> output of the map with no problem. Than I
> mapped a text block to the fourth input to the
> concate block and it appeared to be OK. The fifth
> input showed up on the concate block as expected.
> However when I saved the file the concate block
> disappeared and an xpath icon appeared
> that was mapped to the target schema but
> did not show the mapping from the mapping from the
> source schema any longer. Also when I asked
> to have the output generated it produced an
> error: Syntax error in value-of and asked if
> I wanted to "Jump to location". I need to
> concatenate about 12 things, some schema elements
> and some text, and want to save
> and look at the results as I am going along.
> I want to
> be able to continually edit the concate function
> block as I need to. So any clue what is going on?
>
>
>
> --
> To reply: mailto:stylus-studio-tech.7463@stylusstudio.com
> To start a new topic: mailto:stylus-studio-tech@stylusstudio.com
> To login: http://www.stylusstudio.com/SSDN/
> To (un)subscribe:
mailto:stylus-studio-tech.list-request@stylusstudio.com
>

Postnext
deborah folgerSubject: RE: Concate Function Block
Author: deborah folger
Date: 17 May 2004 07:16 PM
Ivan,

I cannot give you a copy of the schema
because it is a military schema. I will run
a few more experiments and get back to you.

Postnext
deborah folgerSubject: RE: Concate Function Block
Author: deborah folger
Date: 17 May 2004 08:08 PM
The problem seems to be when I create a text
block and put it as an input into the concate
block. Is there some better way to add text
into a string of cancate elements?
For example
year + "/" + month + "/" + day.

I have attached a file to show screen shots
the problem.


DocumentProblem.doc
Example of concate block problem

Postnext
deborah folgerSubject: RE: Concate Function Block
Author: deborah folger
Date: 17 May 2004 08:18 PM
I'm new at this: the upload did not work as I
expected. I'm going to try again.

In the first image I concatenated two elements
from the source schema into one element in
the target schema. The output was created
successfully.

In the second image I added a text block as
the third thing to concatenate.

All I did after the 2nd screen shot was save
the map. After saving it the icon in the
mapping area changes. See the third image.

The 4th image is the error message that occurrs
when you try to generate the output.


Imagescreenshot1.jpg
Screenshot1

Imagescreenshot2.jpg
Screenshot2

Imagescreenshot3.jpg
Screenshot3

Imagescreenshot4.jpg
errormessage

Postnext
Ivan PedruzziSubject: RE: Concate Function Block
Author: Ivan Pedruzzi
Date: 17 May 2004 08:36 PM
I was able to replicate the behavior with the text block we are
investigating the problem.

In the mean while you should be able to get around the problem just
typing the static text in the "concat" ports.
Double click on the concat port and type the value directly.

I hope this helps
Ivan


> -----Original Message-----
> From: stylus-studio-tech Listmanager
[mailto:stylus-studio-tech.listmanager@stylusstudio.com]
> Sent: Monday, May 17, 2004 8:24 PM
> Subject: RE: Concate Function Block
>
> From: "deborah folger" <deborah.h.folger@boeing.com>
>
> The problem seems to be when I create a text
> block and put it as an input into the concate
> block. Is there some better way to add text
> into a string of cancate elements?
> For example
> year + "/" + month + "/" + day.
>
> I have attached a file to show screen shots
> the problem.
>
> --
> Attachment:
> http://www.stylusstudio.com/SSDN/upload/Problem.doc (268KB)
> Example of concate block problem
>
>
> --
> To reply: mailto:stylus-studio-tech.7466@stylusstudio.com
> To start a new topic: mailto:stylus-studio-tech@stylusstudio.com
> To login: http://www.stylusstudio.com/SSDN/
> To (un)subscribe:
mailto:stylus-studio-tech.list-request@stylusstudio.com
>

Postnext
(Deleted User) Subject: RE: Concate Function Block
Author: (Deleted User)
Date: 18 May 2004 09:14 AM
Hi Deborah,

As ivan suggested, the right way to sepecify the literal text is to
double click on the port(at left) of concat block, a dialog will pop up
and allow you to specify your text. You will notice initially we have 3
ports at left, after you specify the last port, mapper will
automatically create another port at left for you to continue to specify
argument for concat.

Text block is not designed for use in this case. In general, if is used
for output, not argument. For example, If you want to output a text
under some condition, you can connect an if block and a text block, then
link text block to the target node where you want the output go.

Hope this help to clarify.

Song.

> -----Original Message-----
> From: stylus-studio-tech Listmanager
> [mailto:stylus-studio-tech.listmanager@stylusstudio.com]
> Sent: Monday, May 17, 2004 8:24 PM
> Subject: RE: Concate Function Block
>
> From: "deborah folger" <deborah.h.folger@boeing.com>
>
> The problem seems to be when I create a text block and put it
> as an input into the concate block. Is there some better way
> to add text into a string of cancate elements?
> For example
> year + "/" + month + "/" + day.
>
> I have attached a file to show screen shots the problem.
>
> --
> Attachment:
> http://www.stylusstudio.com/SSDN/upload/Problem.doc (268KB)
> Example of concate block problem
>
>
> --
> To reply: mailto:stylus-studio-tech.7466@stylusstudio.com
> To start a new topic: mailto:stylus-studio-tech@stylusstudio.com
> To login: http://www.stylusstudio.com/SSDN/ To (un)subscribe:
> mailto:stylus-studio-tech.list-request@stylusstudio.com
>
>
>

Postnext
deborah folgerSubject: RE: Concate Function Block
Author: deborah folger
Date: 18 May 2004 12:24 PM
Song and Ivan,

Thank you very much. I figured I was doing
it wrong but I could not find in your documentation
how to do it. Could you point me to the place
in your documentation where it explains about
clicking on the input port to added text?
I would really appreciate it. Thanks

Postnext
Ivan PedruzziSubject: RE: Concate Function Block
Author: Ivan Pedruzzi
Date: 18 May 2004 01:44 PM
Deborah

In the online help look for the chapter "Understanding Input Ports or
online under
http://www.developxml.com/d_xslt_xmlxml25.html


Ivan


> -----Original Message-----
> From: stylus-studio-tech Listmanager
[mailto:stylus-studio-tech.listmanager@stylusstudio.com]
> Sent: Tuesday, May 18, 2004 12:27 PM
> Subject: RE: Concate Function Block
>
> From: "deborah folger" <deborah.h.folger@boeing.com>
>
> Song and Ivan,
>
> Thank you very much. I figured I was doing
> it wrong but I could not find in your documentation
> how to do it. Could you point me to the place
> in your documentation where it explains about
> clicking on the input port to added text?
> I would really appreciate it. Thanks
>
>
> --
> To reply: mailto:stylus-studio-tech.7475@stylusstudio.com
> To start a new topic: mailto:stylus-studio-tech@stylusstudio.com
> To login: http://www.stylusstudio.com/SSDN/
> To (un)subscribe:
mailto:stylus-studio-tech.list-request@stylusstudio.com
>

Postnext
deborah folgerSubject: RE: Concate Function Block
Author: deborah folger
Date: 18 May 2004 05:13 PM
OK I used the input ports for my text and I get
the exact same behavor that I got when I used
the text blocks. Once I use a literal text input
and save it the icon changes and I get the
same error message when I try to generate the
output document.
Please let me know when this is fixed. I hope
it will be soon as it is holding up my work.
Thanks

Deborah

Posttop
Ivan PedruzziSubject: RE: Concate Function Block
Author: Ivan Pedruzzi
Date: 18 May 2004 05:45 PM
Deborah,

Are you using quotes around the text?
If you don't, Stylus interprets the value as XPath expression.


Ivan


> -----Original Message-----
> From: stylus-studio-tech Listmanager
[mailto:stylus-studio-tech.listmanager@stylusstudio.com]
> Sent: Tuesday, May 18, 2004 5:16 PM
> Subject: RE: Concate Function Block
>
> From: "deborah folger" <deborah.h.folger@boeing.com>
>
> OK I used the input ports for my text and I get
> the exact same behavor that I got when I used
> the text blocks. Once I use a literal text input
> and save it the icon changes and I get the
> same error message when I try to generate the
> output document.
> Please let me know when this is fixed. I hope
> it will be soon as it is holding up my work.
> Thanks
>
> Deborah
>
>
> --
> To reply: mailto:stylus-studio-tech.7481@stylusstudio.com
> To start a new topic: mailto:stylus-studio-tech@stylusstudio.com
> To login: http://www.stylusstudio.com/SSDN/
> To (un)subscribe:
mailto:stylus-studio-tech.list-request@stylusstudio.com
>

 
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.