[prev in list] [next in list] [prev in thread] [next in thread]
List: xml-dev
Subject: [xml-dev] filters..
From: <annoylagr () yahoo ! gr>
Date: 2003-01-24 9:23:34
Message-ID: 20030124092334.87517.qmail () web21108 ! mail ! yahoo ! com
[Download RAW message or body]
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 διεύθυνση στο Yahoo! Mail.
[Attachment #3 (text/html)]
<P>Hello!!!! </P>
<P>I want to combine three filters so that the first one would give its<BR>output as an \
input to the second one and the second one would give its <BR>output to the third one. The \
first two filters should give an xml output and <BR>the last one an html output. The problem is \
that i want each filter to exclude<BR>certain tags from the original xml file. For example this \
is my xml <BR>file:<BR><BR> <?xml version="1.0" \
encoding="ISO-8859-7"?><BR> <?xml-stylesheet type="text/xsl" \
href="test.xsl"?><BR> <SITES><BR> <!-- English \
--><BR> <CONTENT><BR> <LAN>1</LAN> \
<!-- 1.En --><BR> <LEVEL>1</LEVEL><BR> <DISPLAY>1</DISPLAY> \
<!-- 1.SMS 2.WAP --><BR> <TITLE>PHILOPAPPOU \
MONUMENT</TITLE><BR> <TEXT>hello</TEXT><BR> <IMAGE></IMAGE& \
gt;<BR> </CONTENT><BR><BR> <CONTENT><BR> <LAN>1</LAN> \
<!-- 1.En --><BR> <LEVEL>2</LEVEL><BR> <DISPLAY>1</DISPLAY> \
<!-- 1.SMS 2.WAP --><BR> <TITLE>PHILOPAPPOU \
MONUMENT</TITLE><BR> <TEXT><BR> It is found in the <b>hill of \
Mouson</b>. It is a grave monument, <BR>made from marble with <b>embedded \
designs.</b><BR> </TEXT><BR> <IMAGE></IMAGE><BR> </CON \
TENT><BR><BR> <CONTENT><BR> <LAN>1</LAN> \
<!-- 1.En --><BR> <LEVEL>3</LEVEL><BR> <DISPLAY>1</DISPLAY> \
<!-- 1.SMS 2.WAP --><BR> <TITLE>PHILOPAPPOU \
MONUMENT</TITLE><BR> <TEXT><BR> It is found in the hill of Mouson. It is \
a grave monument, made from<BR>marble with embedded designs and its <b>facade is turned \
to Acropolis</b>.<BR> </TEXT><BR> <IMAGE></IMAGE><BR> </CONTENT><BR><BR> <!-- \
Greek--><BR> <CONTENT><BR> <LAN>2</LAN> \
<!-- 2.GR --><BR> <LEVEL>1</LEVEL><BR> <DISPLAY>1</DISPLAY> \
<!-- 1.SMS 2.WAP --><BR> <TITLE>ΜΝΗΜΕΙΟ \
ΦΙΛΟΠΑΠΠΟΥ</TITLE><BR> <TEXT><BR> everywhere<BR> </TEXT><BR>&nb \
sp;<IMAGE></IMAGE><BR> </CONTENT><BR><BR> <CONTENT><BR> <LAN>2</LAN> \
<!-- 2.GR --><BR> <LEVEL>2</LEVEL><BR> <DISPLAY>1</DISPLAY> \
<!-- 1.SMS 2.WAP --><BR> <TITLE>ΜΝΗΜΕΙΟ \
ΦΙΛΟΠΑΠΠΟΥ</TITLE><BR> <TEXT><BR> nowhere<BR> </TEXT><BR> \
<IMAGE></IMAGE><BR> </CONTENT><BR><BR> <CONTENT><BR> <LAN>2</LAN> \
<!-- 2.GR --><BR> <LEVEL>3</LEVEL><BR> <DISPLAY>1</DISPLAY> \
<!-- 1.SMS 2.WAP --><BR> <TITLE>ΜΝΗΜΕΙΟ \
ΦΙΛΟΠΑΠΠΟΥ</TITLE><BR> <TEXT><BR> yes</TEXT><BR> <IMAGE>& \
lt;/IMAGE><BR> </CONTENT><BR> </SITES><BR><BR><BR><BR> So i want \
the first xsl to filter the language and to keep only the <BR>first three tags(where lan=1 or \
when lan=2), the second one to filter only <BR>the content with level=2 (for example) and the \
last one to show the text <BR>as html output (if display is set to 2). How can i do this??? \
I've tried using<BR> xsl:copy and of course xsl:choose but i can;t combine these three \
<BR>filters to one... How could i do this the easy <BR>way, without \
java??<BR><BR> Thank you!<BR></P><p><br><hr size=1><b>Do You Yahoo!?</b><br>Αποκτήστε την \
δωρεάν σας @yahoo.gr διεύθυνση στο
<a href="http://www.otenet.gr/">Yahoo! Mail</a>.<br>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic