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

RE: XMLtoXML transformation

Subject: RE: XMLtoXML transformation
From: "Mitchell, Edmund" <EMitchell@xxxxxxx>
Date: Tue, 14 Aug 2001 12:36:32 -0700
xmltoxml xml highlight

-----Original Message-----
From: Kris Kolodziej [mailto:kkolodziej@xxxxxxxxxxxx]
Thanks. That's what  I needed to know - if I can have multiple {}'s
within a <tag>.
--------------------------

Then all you had to do was ask :>)

--------------------------
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?
--------------------------

It's working for me.  If I run the same stylesheet that I gave you earlier, 
changing it only so that this line appears:
<TEXT coords="{/a/Box/@minx} {/a/Box/@miny}" label="label_name /XPath"/>
instead of the old:
<TEXT coords="{/a/Box/@minx} {/a/Box/@miny}"/>
then I get (using your same XML):

saxon ->java com.icl.saxon.StyleSheet test.xml eexsl.xsl
<TEXT coords="-71.88 41.14" label="label_name /XPath"/>
saxon ->

Are you saying that you don't want the "label_name /XPath" to appear?
If you want it to evaluate some XPath, like with the {/a/Box/@minx}, 
then you need to insert the correct XPath into the curly braces, 
and away you'll go.
If you need help with the XPath, then post your XML, and we'll go from
there.
BTW, for practicing your XPath, there are some really great XPath
Visualizers you can download for free.  You load an XML document into
them, and type your XPath, and they'll highlight the nodes you would
have selected.  
The first one I ever saw is from Dimitre Novatchev, and it's at:
 http://www.vbxml.com/xpathvisualizer/default.asp
There is at least one more if you're on Linux, and it's at:
http://www.fivesight.com/download.asp

Edmund

 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.