Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...My thanks to the contributors who freely share their knowledge and enthusiasms. This forum restores some measure of my faith in human nature..."

Geography

Where in the world do Tek-Tips members come from?
benoxy (Programmer)
28 Feb 08 4:39
I would like to make a tansformation of an XML file to another XML with XSLT.
My example don't work why ?
=xmllib->XSLT( "<RAE><vmaj>0</vmaj><vmin>0</vmin></RAE>","<?xml version=""1.0"" encoding=""UTF-8""?>"
+"<xsl:stylesheet xmlns:xsl=""http://www.w3.org/1999/XSL/Transform"" version=""1.0"">"
+"<xsl:template match='node()'><xsl:copy> <xsl:apply-templates select=""node()|@*""/> </xsl:copy></xsl:template>"
)
Thank
janhes (TechnicalUser)
28 Feb 08 6:04
Is this a map problem or an xslt problem?
If a map can you give more details - version, patch level error message etc.
benoxy (Programmer)
28 Feb 08 6:58
The problem is the code xslt. I use an parameter the xsl text fragment.The WTX is version 8.1. No error in the log. The generated XML file is empty and contains no tag.
janhes (TechnicalUser)
28 Feb 08 11:09
Have you got service pack 3 installed?
janhes (TechnicalUser)
28 Feb 08 11:19
The XSLT function has 2 parameters
XSLT ( xml_url_or_xml_fragment, xslt_url_or_xslt_fragment )

The example in the manual shows

xmllib->XSLT( ?ipo.in.xml?, ?ipo.xsl? )
or
xmllib->XSLT( PACKAGE( source ), ?ipo.xsl? )
benoxy (Programmer)
29 Feb 08 4:11
I've pack 3. If I understand it is necessary to file a xsl and not code xsl in the second parameter xmllib->XSLT(param1,param2).
janhes (TechnicalUser)
29 Feb 08 4:25
Have you tested that your xsl works on that xml outside WTX?
benoxy (Programmer)
29 Feb 08 4:53
Yes, I tested it with my oXygen and processing is done.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close