XML.orgXML.org
FOCUS AREAS |XML-DEV |XML.org DAILY NEWSLINK |REGISTRY |RESOURCES |ABOUT
OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
RE: [xml-dev] 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@gmail.com]
Sent: 18 February 2008 11:00
To: xml-dev@lists.xml.org
Subject: [xml-dev] 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]


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 1993-2007 XML.org. This site is hosted by OASIS