Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
 

Go Back   XSL - XML - RSS Forums > XML General > SQL and XML

Tags:



Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-15-2008, 05:25 AM
raj
 
Posts: n/a

Default xml to xsl transformation using java+sql server



Hi,
can anyone suggest me in doing the transformation from xml to xsl

i have a column in my DB which is of xml datatype.
for eg this is my xml content in the column.

<Team name="Braves">
<Players>
<Pitcher name="John Smoltz" role="Closer" />
</Players>
</Team>


i need to select this xml column and do the transformation .
direct tranformation from xml to xslt is fine,i require how to select
from the sql and pass it

thanks in advance
Rajesh
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 09-24-2008, 09:04 AM
Jacob Sebastian
 
Posts: n/a

Default Re: xml to xsl transformation using java+sql server

Rajesh,
SQL Server does not support XSL transformation from TSQL. If that is the
requirement, you should try SSIS or other components that can perform the
transformation after reading XML data from SQL Server.

If you want to extract specific values from the XML document, you can do it
in TSQL using XQuery methods supported by the XML data type. If the
transformation requirements are simple, you can easily do it 'by coding'
(not with an XSL) in TSQL. For example, you can retrieve a resultset using
XQuery methods and then generate an XML with a different structure using FOR
XML.

--
Jacob Sebastian
SQL Server MVP
http://www.sqlserverandxml.com

"raj" <2rajesh.b@gmail.com> wrote in message
news:d7f90d48-f9c0-4294-a4a2-f83f4ca0151c@b2g2000prf.googlegroups.com...
> Hi,
> can anyone suggest me in doing the transformation from xml to xsl
>
> i have a column in my DB which is of xml datatype.
> for eg this is my xml content in the column.
>
> <Team name="Braves">
> <Players>
> <Pitcher name="John Smoltz" role="Closer" />
> </Players>
> </Team>
>
>
> i need to select this xml column and do the transformation .
> direct tranformation from xml to xslt is fine,i require how to select
> from the sql and pass it
>
> thanks in advance
> Rajesh


Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



Contact Us -|- XSL - XML - RSS Forums -|- Archive -|- Top -|-Rules/Disclaimer-|-Help/Support -|-Advertise
© Camley Interactive (camley.info) 2008 - all logos and images are copywrite their respective owners.
Proud member of the Camley Interactive Network
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
All times are GMT. The time now is 10:19 PM.
Style Developed by Epic Designz