|
next
|
Subject: 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
>
|
next
|
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
>
>
>
|
|
|
|