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
Steve TrythallSubject: Newbie template question
Author: Steve Trythall
Date: 03 Mar 2004 09:37 AM

I have created my first templates and have used the xslt mapper to visually create the mappings between attributes.

The code generated looks like



but when I run this the target elements have nothing in them. If I edit the template by hand to:



then the elements get populated as I would expect. What am I doing wrong?

TIA

Steve

Postnext
Steve TrythallSubject: Newbie template question
Author: Steve Trythall
Date: 03 Mar 2004 09:38 AM
Aaah, the SonicSSDN eat my xslt.

here is the before:



and the after that works


Postnext
(Deleted User) Subject: RE: Newbie template question
Author: (Deleted User)
Date: 03 Mar 2004 09:56 AM
hi steve

the xpath "a/b/c@d" is not valid xpath expression and I can't see that
happening here. I would expect "a/b/c/@d" or "@d" depends on the context.

can you give us more details about this? it would be very helpful if you can
tell us the steps that can reproduce the problem.

thanks.

song.

> -----Original Message-----
> From: stylus-studio-tech Listmanager [mailto:listmanager@edn.exln.com]
> Sent: Wednesday, March 03, 2004 10:04 AM
> To: Recipients of 'stylus-studio-tech' suppressed
> Subject: Newbie template question
>
>
> From: "Steve Trythall"
>
>
> I have created my first templates and have used the xslt mapper
> to visually create the mappings between attributes.
>
> The code generated looks like
>
>
>
> but when I run this the target elements have nothing in them. If
> I edit the template by hand to:
>
>
>
> then the elements get populated as I would expect. What am I doing wrong?
>
> TIA
>
> Steve
>
>
> To reply: mailto:stylus-studio-tech.7232@edn.exln.com
> To start a new topic: mailto:stylus-studio-tech@edn.exln.com
> To login: http://edn.exln.com/~SSDN
>

Posttop
Steve TrythallSubject: Newbie template question
Author: Steve Trythall
Date: 03 Mar 2004 09:57 AM

If at 1st you don't succeed, try try again!

Before:

[xsl:value-of select="a/b/c/@d"/]

After:

[xsl:value-of select="@d"/]

 
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.