[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: XMLtoXML transformation

Subject: Re: XMLtoXML transformation
From: Kris Kolodziej <kkolodziej@xxxxxxxxxxxx>
Date: Tue, 14 Aug 2001 14:08:05 -0400
kris kolodziej
Edmund (and all),

Thanks. That's what  I needed to know - if I can have multiple {}'s
within a <tag>.

The minx and miny transformation works. However, a new problem came up.
Within the <TEXT> tag I also want to include an attribute for label so
that the XSL would look like:
<TEXT coords="{/a/Box/@minx} {/a/Box/@miny}" label="label_name /XPath"/>

I am not getting the label in my output. WHy?

THanks.



"Mitchell, Edmund" wrote:

> Hello Kris,
>
> This should work:
>
> <xsl:stylesheet
>         xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
>         version="1.0">
>   <xsl:output omit-xml-declaration='yes'/>
>     <xsl:template match="/">
>      <TEXT coords="{/a/Box/@minx} {/a/Box/@miny}"/>
>    </xsl:template>
> </xsl:stylesheet>
>
> Hope this isn't your homework ;>)
>
> Edmund
>
> -----Original Message-----
> From: Kris Kolodziej [mailto:kkolodziej@xxxxxxxxxxxx]
> Sent: Tuesday, August 14, 2001 1:05 PM
> To: XSL-List@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  XMLtoXML transformation
>
> Hello all,
>
> What would the stylesheet look like for the below transformation?
> This might be a simple XSL for some of you....
>
> -----------
> my XML:
>  <Box  minx="-71.88" miny="41.14"
>                maxx="-71.01" maxy="42.01" />
> -------------
>
> XSL:
> ????
>
> -----------------
> Desired output:
>  <TEXT coords="minx miny"/>
>
> (I want the value of the minx and miny from my XML)
> ----------------
>
> Thanks,
> </Kris>
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.