ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » XSLT 2.0 in XSL transform node

Post new topic  Reply to topic Goto page 1, 2  Next
 XSLT 2.0 in XSL transform node « View previous topic :: View next topic » 
Author Message
telus
PostPosted: Mon Nov 26, 2012 5:43 pm    Post subject: XSLT 2.0 in XSL transform node Reply with quote

Apprentice

Joined: 01 Nov 2012
Posts: 26

Hi,

I am using the XSLt2.0 version in the XSL transform node in broker 7 version but I got error "could not compile the XSLT"

Is MB7 not support the XSLT2.0

I have gone through the sample also and in this XSLT1.0 is using.

Any pointers?
Back to top
View user's profile Send private message
marko.pitkanen
PostPosted: Mon Nov 26, 2012 10:33 pm    Post subject: Reply with quote

Chevalier

Joined: 23 Jul 2008
Posts: 440
Location: Jamsa, Finland

Hi,

If I got it right the InfoCenter says:
Quote:
The Xalan-Java transformation engine (Apache Xalan-Java Version 2.7.1 processor) is used as the underlying transformation engine.


And if I follow the link to the Xalan 2.7.1 home page there says:
Quote:
It implements XSL Transformations (XSLT) Version 1.0


--
Marko
Back to top
View user's profile Send private message Visit poster's website
rekarm01
PostPosted: Tue Nov 27, 2012 1:03 am    Post subject: Re: XSLT 2.0 in XSL transform node Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 1415

telus wrote:
Any pointers?

See also: http://publib.boulder.ibm.com/infocenter/wmbhelp/v7r0m0/index.jsp?topic=%2Fcom.ibm.etools.mft.doc%2Fah36080_.htm
Back to top
View user's profile Send private message
mqsiuser
PostPosted: Tue Nov 27, 2012 1:17 am    Post subject: Re: XSLT 2.0 in XSL transform node Reply with quote

Yatiri

Joined: 15 Apr 2008
Posts: 637
Location: Germany

telus wrote:
Any pointers?

XSLT 2.0 support was planed to be added after the Broker 8 GA:
Andy Piper, October 13, 2011 at 21:57 wrote:
as I understand it, XSLT 2.0 support may arrive sometime after WMB v8 GAs in December – I’m not sure that you can make it work in v7, certainly not using the XMLTransform node. You might want to check via a formal support request with IBM. I don’t believe any commitment to deliver XSLT 2.0 support has been made.

and is added with 8.0.0.1.
_________________
Just use REFERENCEs
Back to top
View user's profile Send private message
kimbert
PostPosted: Tue Nov 27, 2012 2:29 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

mqsiuser said:
Quote:
and is added with 8.0.0.1.
Are you claiming that the XSLT node in v8.0.0.1 supports XSLT 2.0?
Back to top
View user's profile Send private message
telus
PostPosted: Tue Nov 27, 2012 3:15 am    Post subject: Reply with quote

Apprentice

Joined: 01 Nov 2012
Posts: 26

Thanks all.

I have created the XSLT by using Altova with 2.0 version because some of the attributes of HL7 XSD are not supported by XSLT1.0


Seems like there is no other way to do the same other than 8 version installation

Question:Did HL7 XSD doesn't support XPATH1.0 ?
Back to top
View user's profile Send private message
mqsiuser
PostPosted: Tue Nov 27, 2012 3:24 am    Post subject: Reply with quote

Yatiri

Joined: 15 Apr 2008
Posts: 637
Location: Germany

kimbert wrote:
Are you claiming that the XSLT node in v8.0.0.1 supports XSLT 2.0?

Its how I understood it (from the referenced thread) and from the infocenter:
Quote:
XPath 1.0
XSL 1.0, 2.0 for use with the XSLTransform node
XSLT 1.0, 2.0

Thought it says "xpath 1.0": xslt 2.0 without xpath 2.0 ?
_________________
Just use REFERENCEs
Back to top
View user's profile Send private message
telus
PostPosted: Tue Nov 27, 2012 3:42 am    Post subject: Reply with quote

Apprentice

Joined: 01 Nov 2012
Posts: 26

Thanks

Did HL7 v3 support XSLT 1.0 . if it support then I will go with WMB 7.
Back to top
View user's profile Send private message
kimbert
PostPosted: Tue Nov 27, 2012 4:37 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Quote:
Did HL7 v3 support XSLT 1.0?
The question does not make sense. HL7 v3 includes some ( very complex ) xsds. Those xsds describe the set of valid HL7 v3 XML documents. HL7 v3 neither supports nor requires any particular technology for working with those XML documents - although some things may be easier with XSLT v2.0.
Back to top
View user's profile Send private message
telus
PostPosted: Tue Nov 27, 2012 5:11 am    Post subject: Reply with quote

Apprentice

Joined: 01 Nov 2012
Posts: 26

Kimbert,

Quote:

The question does not make sense. HL7 v3 includes some ( very complex ) xsds. Those xsds describe the set of valid HL7 v3 XML documents. HL7 v3 neither supports nor requires any particular technology for working with those XML documents - although some things may be easier with XSLT v2.0.


The question make sense. as there are complex children that is not supported by XSLT1.0.
Even the altova xml does generate errors ,without any proof please does not pass any comments.
Back to top
View user's profile Send private message
kimbert
PostPosted: Tue Nov 27, 2012 8:32 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Sorry for any offence, Telus. I genuinely did not understand your question.
Back to top
View user's profile Send private message
mqsiuser
PostPosted: Tue Nov 27, 2012 10:25 pm    Post subject: Reply with quote

Yatiri

Joined: 15 Apr 2008
Posts: 637
Location: Germany

telus wrote:
The question make sense. as there are complex children that is not supported by XSLT1.0.
Even the altova xml does generate errors ,without any proof please does not pass any comments.

I'd almost replied with something similar. Telus: You should carefully distinguish between data (structures) and transformation (logic).
What are the errors in altova? XSLT 2.0 has "group by" included (though this seems also achievable with special techniques in XSLT 1.0).

For complex transformations use ESQL and proper mini-utility functions.

Do not try to program a super generic mapper (mapping function) (that you make (somewhat) configurable). Just use FUNCTIONs and PROCEDUREs that you (statically) use (at your/the programmers convenience) in your code. "at your/the programmers convenience" means: Use it / try it / don't use it / probably remove it (easily). Try to keep your code slim.

If you can't get it to work, then post (the relevant parts) of your input- and output-xml (or (parsed) logical tree).
_________________
Just use REFERENCEs
Back to top
View user's profile Send private message
rekarm01
PostPosted: Wed Nov 28, 2012 12:43 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 1415

telus wrote:
Did HL7 v3 support XSLT 1.0?

The question would make more sense if it were the other way around: "Does XSLT 1.0 support HL7v3?" XSLT transforms XML documents. HL7v3 documents are XML documents. So, yes, XSLT 1.0 supports HL7v3. With or without a schema.

telus wrote:
I have created the XSLT by using Altova with 2.0 version because some of the attributes of HL7 XSD are not supported by XSLT 1.0

What attributes of HL7 XSD are not supported by XSLT 1.0? Which Altova product is generating the XSLT?

telus wrote:
Even the altova xml does generate errors

What errors? Maybe the better question is whether "altova xml" supports HL7v3.
Back to top
View user's profile Send private message
telus
PostPosted: Wed Nov 28, 2012 4:15 am    Post subject: Reply with quote

Apprentice

Joined: 01 Nov 2012
Posts: 26

Quote:

The question would make more sense if it were the other way around: "Does XSLT 1.0 support HL7v3?" XSLT transforms XML documents. HL7v3 documents are XML documents. So, yes, XSLT 1.0 supports HL7v3. With or without a schema.


I have not found anywhere that XSLT not support HL7v3. but the 1.0 will support there is a big question because there is attribute "xs" is not supported by XSLT1.0 but XSLT2.0 support that.I am using the latest altova xml spy 2013.

So the question remain the same is XSLT1.0 support HL7v3 ? surely XSLT2.0 support that is proved .
Back to top
View user's profile Send private message
mqsiuser
PostPosted: Wed Nov 28, 2012 6:25 am    Post subject: Reply with quote

Yatiri

Joined: 15 Apr 2008
Posts: 637
Location: Germany

Code:
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
  ...
</xs:schema>


"xs" is just the namespace-prefix for the schema-namespace.

you could also use "xsd" instead:

Code:
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
  ...
</xsd:schema>


Just use ESQL its much easier than XSLT.
_________________
Just use REFERENCEs
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Goto page 1, 2  Next Page 1 of 2

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » XSLT 2.0 in XSL transform node
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.