|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: XMLtoXML transformation
-----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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








