| Author |
referencing another xml
|
jonathan Greens
Ranch Hand
Joined: Apr 07, 2004
Posts: 139
|
|
hi folks, I have two xmls: how would I link all the elements of personx.xml to Department.xml, I understand that you can use xslt. But that involves running xml transform from another application and producing a new xml file(correct?). is there a way to link it statically? Persons.xml doesn't have to have the root element.
|
 |
Lasse Koskela
author
Sheriff
Joined: Jan 23, 2002
Posts: 11962
|
|
|
You can "import" the persons.xml document by specifying an ENTITY and referencing it with &MyPersonsDoc;
|
Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
|
 |
jonathan Greens
Ranch Hand
Joined: Apr 07, 2004
Posts: 139
|
|
|
Thanks. But I want to use xml schema instead of dtd, and entity has to be declared within a dtd. IS there any other way?
|
 |
 |
|
|
subject: referencing another xml
|
|
|