Reference a node or an element in one .xml file in another
-
Hi All, We have two .xml files, one has the details about categories and in the other .xml file we need to reference the categories. When we searched in net we found that we need to declare the categories as entities in the DTD file and use them in the xml, but we want to take the categories from the xml file only. Kindly advice. TIA Regards, Nancy
-
Hi All, We have two .xml files, one has the details about categories and in the other .xml file we need to reference the categories. When we searched in net we found that we need to declare the categories as entities in the DTD file and use them in the xml, but we want to take the categories from the xml file only. Kindly advice. TIA Regards, Nancy
You could use XInclude to logically include the 'categories' XML file in the file that needs to reference the categories? A question - when do the category usages need to be resolved to the original categories? What processing step *NEEDS* the link between category use and category definition to be available?
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
-
You could use XInclude to logically include the 'categories' XML file in the file that needs to reference the categories? A question - when do the category usages need to be resolved to the original categories? What processing step *NEEDS* the link between category use and category definition to be available?
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
Thanks for your help. In brief we have an xml file (kind of Master XML) which has all categories and Values for Each category Eg. Technology, Department will be categories, Technology will hold values like Technology_id and Technology_name, same for department. We have another XML(Pagewise) which describes about what controls should be in each page. E.g. Listbox, Button , Radio button. The XSLT file will use the Pagewise XML to get details about the controls and the master xml to get the details about the values to be stored in controls like Listbox. We are actually trying to create dynamic .aspx pages using XML and XSLT. Regards, Nancy
-
Thanks for your help. In brief we have an xml file (kind of Master XML) which has all categories and Values for Each category Eg. Technology, Department will be categories, Technology will hold values like Technology_id and Technology_name, same for department. We have another XML(Pagewise) which describes about what controls should be in each page. E.g. Listbox, Button , Radio button. The XSLT file will use the Pagewise XML to get details about the controls and the master xml to get the details about the values to be stored in controls like Listbox. We are actually trying to create dynamic .aspx pages using XML and XSLT. Regards, Nancy
If you're using xslt, then there's always the document function[^] that allows you to read in a separate XML document. Alternatively, the XInclude[^] suggestion will work with XSLT, provided your XSLT processor has support.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
-
If you're using xslt, then there's always the document function[^] that allows you to read in a separate XML document. Alternatively, the XInclude[^] suggestion will work with XSLT, provided your XSLT processor has support.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
Thanks a lot for your help :) Regards, Nancy