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

How can I merge two DTD by using XSL ?

Subject: How can I merge two DTD by using XSL ?
From: Stephane.Le-Deaut@xxxxxxxxxx
Date: Tue, 19 Mar 2002 09:42:16 +0100
merge dtd
Hello,

I have a DTD which calls scenario.dtd. In this one I declare an entity which calls xsldefinition.dtd.

....
<!ENTITY % xslDefinition SYSTEM "xsldefinition.dtd">
%xslDefinition;
<!ELEMENT XslTransformError (#PCDATA)>
<!ELEMENT XslTransformTrack (#PCDATA)>
<!ELEMENT XslTransform (InputParameter*, Constant*, OutputParameter?, %xslListProcedure;, XslTransformError, XslTransformTrack)>
<!ATTLIST XslTransform
     name CDATA #REQUIRED
     description CDATA #IMPLIED
     xslSheet %xslList; #REQUIRED
>

My problem is that I have to build the xsldefinition.dtd by using this two files :

The first one xsldefinition1.dtd is like that :
<!ENTITY % xslList " (updateDeliveryFile) ">
<!ENTITY % xslListProcedure " (updateDeliveryFile:XslParameter) ">

                     <!-- * Proc Xsl : updateDeliveryFile * -->
                     <!ELEMENT updateDeliveryFile:XslParameter (updateDeliveryFile:InputFile,
                     updateDeliveryFile:OutputFile, updateDeliveryFile:Parameter)>
                     <!ELEMENT updateDeliveryFile:InputFile EMPTY>
                     <!ATTLIST updateDeliveryFile:InputFile
                     evolutionFile CDATA #REQUIRED
                     >
                     <!ELEMENT updateDeliveryFile:OutputFile EMPTY>
                     <!ELEMENT updateDeliveryFile:Parameter EMPTY>
                     <!ATTLIST updateDeliveryFile:Parameter
                     rddVersion CDATA #REQUIRED
                     dataDirectoryName CDATA #REQUIRED
                     externalProgramVersion CDATA #REQUIRED
                     > ...

The second one  xsldefinition2.dtd like this :

<!ENTITY % xslList " (makePackageDescriptor) ">
<!ENTITY % xslListProcedure " (makePackageDescriptor:XslParameter) ">

                     <!-- * Proc Xsl : makePackageDescriptor * -->

                     <!ELEMENT makePackageDescriptor:XslParameter (makePackageDescriptor:InputFile,
                     makePackageDescriptor:OutputFile, makePackageDescriptor:Parameter)>
                     <!ELEMENT makePackageDescriptor:InputFile EMPTY>
                     <!ATTLIST makePackageDescriptor:InputFile
                     kitDevelopmentDescriptor CDATA #REQUIRED
                     applicationDevelopmentDescriptor CDATA #REQUIRED
                     kitAcaseDescriptor CDATA #IMPLIED
                     applicationAcaseDescriptor CDATA #IMPLIED
                     >
                     <!ELEMENT makePackageDescriptor:OutputFile EMPTY>
                     <!ATTLIST makePackageDescriptor:OutputFile
                     packageDescriptor CDATA #REQUIRED
                     > ...

The result xsldefinition.dtd of the merging should be like this :

                     <!ENTITY % xslList " (updateDeliveryFile|makePackageDescriptor) ">
                     <!ENTITY % xslListProcedure "
                     (updateDeliveryFile:XslParameter|makePackageDescriptor:XslParameter) ">
                     ....

To solve my problem, I 'm trying two solutions :
   Is it possible to merge the two files (xsldefinition1.dtd and xsldefinition2.dtd) by using XSL ?
   I've already tried to declare successively this two files in the scenario.dtd but I didn't succeed.

My explanation is quite long but tell me if something is not clear, I will give you further information.

Thanks in advance for your help.



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

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
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.