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 February 14th, 2006, 05:49 AM
Authorized User
 
Join Date: Jan 2006
Posts: 59
Thanks: 0
Thanked 0 Times in 0 Posts
Default how to import from the same file

hello

I am writing an import command in the top of the file under root node:
<imports>
            <import key="this-etd_FS-IS-entity" file="result_etd_FS_IS-entity.xml" node="root/entities" />

</imports>
(the .xml is out put file)
some where in the file I am writing this command:
                <include import="this-etd_FS-IS-entity" node="/entity[@key='common']/launching/parameters/values/*" />

and I dont know why it does not import what is written in the key=common node when I run the .xsl file.
waiting for your help
thank you
kfir

 
Old February 14th, 2006, 06:45 AM
mhkay's Avatar
Wrox Author
 
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
Default

I don't understand what you expect to happen. An XSLT processor isn't going to treat elements in your source document differently because they happen to be named "import" or "include", nor is it going to treat the value of your "node" attribute as a path expression to be evaluated. Perhaps you have written some XSLT code to handle these elements/attributes, if so, you need to show us your code.

Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference





Similar Threads
Thread Thread Starter Forum Replies Last Post
import file from jar geek.shrek XSLT 3 November 9th, 2007 06:19 AM
Import File Attributes darrenb Access 2 October 26th, 2007 09:12 AM
How can i import a local text file into a jsp file ravibabu Java GUI 1 April 25th, 2007 04:05 AM
How to import data from text file? starnet SQL Server 2000 1 September 18th, 2006 06:56 AM
SWF File Import Ben Horne Flash (all versions) 2 December 10th, 2003 04:37 PM





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