ferojuras Posted August 10, 2012 Share Posted August 10, 2012 Hi all, I have 2 xml files: file1: <?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="../helpproject.xsl" ?><topic template="Default" lasteditedby="fjuras" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../helpproject.xsd"> <body> <para styleclass="Normal"><text styleclass="Normal" translate="true">Enter the </text><lang>button1</lang><text styleclass="Normal" translate="true">by tapping the list icon</text> </body></topic> file2: <?xml version="1.0" encoding="UTF-8" standalone="yes"?><language id="lang.main" name="English (British)" iso="GBR" langIso="ENG" charset="roman" charsetSpecial="special" usingCJK="no" R2L="no"><lang id="button1" text="Menu"/></language> My problem is that I want to replace the <lang>button1</lang> in file1 with <text>Menu</text> from the file2. I have to do this, because the names from the file2 are changing a lot, but ids stays the same. I cannot modify the file helpproject.xsl. This file is the final stylesheet. I want to be made this modification before displayng the content. I would like to do this or by writing something directly in the file1 or making some new external xsl file which will do this.If there is any posibility to do this please respond me, cause I'm now out of any idea how can this be made. Thanks a lot. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now