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

filters..


lan filters

Hello!!!!

I want to combine three filters so that the first one would give its
output as an input to the second one and the second one would give its
output to the third one. The first two filters should give an xml output and
the last one an html output. The problem is that i want each filter to exclude
certain tags from the original xml file. For example this is my xml
file:

 <?xml version="1.0" encoding="ISO-8859-7"?>
 <?xml-stylesheet type="text/xsl" href="test.xsl"?>
 <SITES>
 <!-- English -->
 <CONTENT>
 <LAN>1</LAN>       <!-- 1.En -->
 <LEVEL>1</LEVEL>
 <DISPLAY>1</DISPLAY> <!-- 1.SMS  2.WAP -->
 <TITLE>PHILOPAPPOU MONUMENT</TITLE>
 <TEXT>hello</TEXT>
 <IMAGE></IMAGE>
 </CONTENT>

 <CONTENT>
 <LAN>1</LAN>         <!-- 1.En -->
 <LEVEL>2</LEVEL>
 <DISPLAY>1</DISPLAY>   <!-- 1.SMS  2.WAP -->
 <TITLE>PHILOPAPPOU MONUMENT</TITLE>
 <TEXT>
 It is found in the <b>hill of Mouson</b>. It is a grave monument,
made from marble with <b>embedded designs.</b>
 </TEXT>
 <IMAGE></IMAGE>
 </CONTENT>

 <CONTENT>
 <LAN>1</LAN>           <!-- 1.En -->
 <LEVEL>3</LEVEL>
 <DISPLAY>1</DISPLAY>     <!-- 1.SMS  2.WAP -->
 <TITLE>PHILOPAPPOU MONUMENT</TITLE>
 <TEXT>
 It is found in the hill of Mouson. It is a grave monument, made from
marble with embedded designs and its <b>facade is turned to Acropolis</b>.
 </TEXT>
 <IMAGE></IMAGE>
 </CONTENT>

 <!-- Greek-->
 <CONTENT>
 <LAN>2</LAN>       <!-- 2.GR -->
 <LEVEL>1</LEVEL>
 <DISPLAY>1</DISPLAY> <!-- 1.SMS  2.WAP -->
 <TITLE>ÌÍÇÌÅÉÏ ÖÉËÏÐÁÐÐÏÕ</TITLE>
 <TEXT>
 everywhere
 </TEXT>
 <IMAGE></IMAGE>
 </CONTENT>

 <CONTENT>
 <LAN>2</LAN>         <!-- 2.GR -->
 <LEVEL>2</LEVEL>
 <DISPLAY>1</DISPLAY>   <!-- 1.SMS  2.WAP -->
 <TITLE>ÌÍÇÌÅÉÏ ÖÉËÏÐÁÐÐÏÕ</TITLE>
 <TEXT>
 nowhere
 </TEXT>
 <IMAGE></IMAGE>
 </CONTENT>

 <CONTENT>
 <LAN>2</LAN>           <!-- 2.GR -->
 <LEVEL>3</LEVEL>
 <DISPLAY>1</DISPLAY>     <!-- 1.SMS  2.WAP -->
 <TITLE>ÌÍÇÌÅÉÏ ÖÉËÏÐÁÐÐÏÕ</TITLE>
 <TEXT>
 yes</TEXT>
 <IMAGE></IMAGE>
 </CONTENT>
 </SITES>



 So i want the first xsl to filter the language and to keep only the
first three tags(where lan=1 or when lan=2), the second one to filter only
the content with level=2 (for example) and the last one to show the text
as html output (if display is set to 2). How can i do this??? I've tried using
 xsl:copy and of course xsl:choose but i can;t combine these three
filters to one... How could i do this the easy
way, without java??

 Thank you!



Do You Yahoo!?
ÁðïêôÞóôå ôçí äùñåÜí óáò @yahoo.gr äéåýèõíóç óôï http://www.otenet.gr/.

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
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

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.