XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
Mujahid AzamSubject: XSL Question
Author: Mujahid Azam
Date: 26 Dec 2007 06:49 AM
I have two xml files....

************* 1 ***************
<?xml version="1.0" encoding="UTF-8"?>
<wikimedia>
<!--><xsi:noNamespaceSchemaLocation="Inclusion.xsd">-->
<projects>
<project name="Wikipedia" launch="2001-01-05">
<editions>
<edition language="English">somecommand</edition>
<edition language="German">de.wikipedia.org</edition>
<edition language="French">fr.wikipedia.org</edition>
<edition language="Polish">en.wikipedia.org</edition>
</editions>
</project>
<project name="Wiktionary" launch="2002-12-12">
<editions>
<edition language="English">en.wiktionary.org</edition>
<edition language="French">fr.wiktionary.org</edition>
<edition language="Vietnamese">vi.wiktionary.org</edition>
<edition language="Turkish">tr.wiktionary.org</edition>
</editions>
</project>
</projects>
</wikimedia>


************end of 1****************

and

*****************2****************
<?xml version="1.0" encoding="UTF-8"?>
<chapter>
<p id="p1">text</p>
</chapter>


*********end of 2****************


If you open 1 st xml file

At the node wikimedia\ projects\ project\ editions\ edition language="English" in the place of somecommand I should get value from the second xml file ----- chapter\<p id="p1"> “text”.



When I run an xslt and get the data from 1st xml in the place of somecommand I should get text displayed..

I mean it should be linked to the chapter\<p id="p1"> “text”. Field of source.xml..

please let me know how to do this.....

Postnext
Minollo I.Subject: XSL Question
Author: Minollo I.
Date: 26 Dec 2007 06:39 PM
General XSLT questions are better asked on the XSLT list hosted by mulberrytech dot com.

Postnext
Mujahid AzamSubject: XSL Question
Author: Mujahid Azam
Date: 26 Dec 2007 11:02 PM
hi,
thanks for the suggestion.. i am using the Stylus studio 2007 xml enterprise release 2. and would like to know if what i am asking for is possible using the stylus studio.. if yes please let me know how to do it...

Postnext
Minollo I.Subject: XSL Question
Author: Minollo I.
Date: 27 Dec 2007 08:53 AM
Stylus Studio is an XML development tool; it supports both XSLT and XQuery development, which will let you accomplish all sort of XML manipulation. So, if you can do something with XSLT (or XQuery), yes, you can do that with help by Stylus Studio.

Now, your question is not about "how do I use Stylus Studio to do that", but about "how can I use XSLT to do that; that's why I suggested you ask that question to a general XSLT discussion list.

About your specific issue, when you ask the XSLT discussion list you may want to make sure you clarify how the content in one document is related to the content in the other one, as that's unclear from your post.

Posttop
Mujahid AzamSubject: XSL Question
Author: Mujahid Azam
Date: 27 Dec 2007 11:23 PM
HI,

Thanks for replying... sorry.... maybe i was not clear initially.... i am using stylus studio to generate reports....

I have two xml files....

************* 1 ***************
<?xml version="1.0" encoding="UTF-8"?>
<wikimedia>
<!--><xsi:noNamespaceSchemaLocation="Inclusion.xsd">-->
<projects>
<project name="Wikipedia" launch="2001-01-05">
<editions>
<edition language="English">p1</edition>
<edition language="German">p2</edition>
<edition language="French">fr.wikipedia.org</edition>
<edition language="Polish">en.wikipedia.org</edition>
</editions>
</project>
<project name="Wiktionary" launch="2002-12-12">
<editions>
<edition language="English">en.wiktionary.org</edition>
<edition language="French">fr.wiktionary.org</edition>
<edition language="Vietnamese">vi.wiktionary.org</edition>
<edition language="Turkish">tr.wiktionary.org</edition>
</editions>
</project>
</projects>
</wikimedia>


************end of 1****************

and

*****************2****************
<?xml version="1.0" encoding="UTF-8"?>
<chapter>
<p id="p1">text</p>
<p id="p2">text2</p>
</chapter>


*********end of 2****************

the node <edition language="English">p1</edition> that has the value "p1" is linked to <p id="p1">text</p> so whereever we have p1,p2 etc... they should be replaced by the corresponding text,text2 etc...

If you open 1 st xml file

At the node wikimedia\ projects\ project\ editions\ edition language="English" in the place of p1. I should get value from the second xml file ----- chapter\<p id="p1"> “text”.



When I run an xslt and get the data from 1st xml in the place of p1. I should get text displayed..

I mean it should be linked to the chapter\<p id="p1"> “text”. Field of source.xml..
hope this is clear....

 
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.