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

xsl pipeline filters

Subject: xsl pipeline filters
From: "Errea Alexandra" <aleph675@xxxxxx>
Date: Tue, 21 Jan 2003 18:30:53 +0200
pipeline filter
Hello!I couldn't find any q&a's concerning this matter...So here it goes.
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...so that i can form a pipeline. How could i do this the easy way,
without java??

Thank you!


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread
  • xsl pipeline filters
    • Errea Alexandra - Tue, 21 Jan 2003 11:25:38 -0500 (EST) <=
      • <Possible follow-ups>
      • cknell - Tue, 21 Jan 2003 14:11:05 -0500 (EST)

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
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.