[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Several external entities in an XML

  • From: "Michael Kay" <mike@s...>
  • To: "'Jonathan Ceballos Rodriguez'" <jceballosrodriguez@g...>,<xml-dev@l...>
  • Date: Mon, 18 Feb 2008 11:43:21 -0000

RE:  Several external entities in an XML
You can't do it using entities. I would suggest using an XSLT 2.0 transformation with the collection() function. The interpretation of collection URIs is implementation dependent, but the following will work in Saxon:
 
<doc>
  <?includedir file:///c:/xmldir/*.xml?>
</doc>
 
then
 
<xsl:template match="processing-instruction(includedir)">
  <xsl:copy-of select="collection(.)"/>
</xsl:template>
 
Michael Kay
http://www.saxonica.com/


From: Jonathan Ceballos Rodriguez [mailto:jceballosrodriguez@g...]
Sent: 18 February 2008 11:00
To: xml-dev@l...
Subject: Several external entities in an XML

Hi,

I've a problem. I need to use a single XML which include the content of several XML files.
But I don't the name of the files. I just only know that they're in a directory ("/XMLs/*.xml").
I wold like to know if there's a way to import/include into a single XML file several XML files as entities, using wildcards or referencing a directory to include all the files inside it.

Could anyone help me to achieve my objective?

Thank you very much.

Greetings.

--
Jonathan Ceballos Rodriguez



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.