Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
|
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 16th, 2008, 05:28 AM
Registered User
 
Join Date: Dec 2007
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default insert in xsl template some xml file

can I insert in xsl template some xml file?
can your provide some example?

 
Old January 16th, 2008, 06:51 AM
joefawcett's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

Code:
<xsl:stylesheet version="1.0"
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                xmlns:my="http://myDomain.com">

  <my:data>
    <child attribute="value"/>
  </my:data>
    <xsl:template match="/">
      <xsl:copy-of select="document('')/*/my:data"/>   
    </xsl:template>
</xsl:stylesheet>
If that's not what you need I suggest your detail your requirements more clearly.

--

Joe (Microsoft MVP - XML)
 
Old January 16th, 2008, 08:30 AM
Registered User
 
Join Date: Dec 2007
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

thanks! thats I need






Similar Threads
Thread Thread Starter Forum Replies Last Post
How to pass the dynamic XML file name to XSL jle XSLT 3 March 13th, 2008 04:20 PM
XSL to replace text in XML file neetukk XSLT 1 November 29th, 2006 05:20 AM
How to insert <br> in a table with this xml/xsl? andigra XSLT 1 September 22nd, 2006 07:01 AM
Read XML file into a MS Word Template avivit XSLT 1 November 2nd, 2005 03:35 AM
Read XML file into a MS Word Template avivit XML 0 October 29th, 2005 09:15 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.