Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > XML > XSLT
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old January 16th, 2008, 05:28 AM
Registered User
 
Join Date: Dec 2007
Location: , , .
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?

Reply With Quote
  #2 (permalink)  
Old January 16th, 2008, 06:51 AM
joefawcett's Avatar
Wrox Author
Points: 9,763, Level: 42
Points: 9,763, Level: 42 Points: 9,763, Level: 42 Points: 9,763, Level: 42
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Exeter, , United Kingdom.
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)
Reply With Quote
  #3 (permalink)  
Old January 16th, 2008, 08:30 AM
Registered User
 
Join Date: Dec 2007
Location: , , .
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

thanks! thats I need

Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

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


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



All times are GMT -4. The time now is 04:33 AM.


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