Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: How to call another transform xsl from inside the current transform?

From: "Joe Fawcett" <joefawcett@---------.------>
To: NULL
Date: 6/26/2008 8:34:00 AM

"SammyBar" <sammybar@g...> wrote in message 
news:#xPs#qv1IHA.3756@T......
> Hi all,
>
> I'm transforming an xml document into another xml by using a xsl 
> transformation by using
> <xsl:value-of select="root/@someAttrib" />.
> My problem arises when one of the values I'm inserting in the new document 
> should be obtained from another xslt transformation defined in another 
> (third) file. How can I obtain the value of another transform to use this 
> inside my transform...?
> It sounds a little weird but I need something like
> <xsl:value-of select="anotherXsltFile.xsl applied to this xml" />.
>
> Any hint is welcomed
> Thanks in advance
> Sammy
>
>
You can use the document function to retrieve an external file. So one way 
would be a service that returns your transformed file. For example:

http://myServer.com/dotransform?xml=file1.xml&xsl=file2.xslt


-- 

Joe Fawcett (MVP - XML)
http://joe.fawcett.name

 



transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent