Re: i18 support for dynamic pages.

2002-03-21 Thread Arun.N
Title: Message



can u please throw more light on this.
selectors are used to choose the browser type... i mean 
user agent headers.
 
and yes i have done another tuning to make cocoon 
suppotr SJIS encoding.
not only in the serializer i have said encoding SJIS, i 
have started tomcat with -Dfile.encoding-SJIS and then i have set the linux 
box's
export LANGUAGE="ja_JP";
 
until i did all these.. cocoon only showed junk 
character instead of japaenese chars...
now for korean chars i cannot have two file.encoding 
variable set ;-(
 
will this work.. i give no encoding... use UTF itelf 
and what ever i read in the socket i convert into UTF and use...
am not sure.. and ideas... 
 
 

  - Original Message - 
  From: 
  Piroumian, Konstantin 
  To: '[EMAIL PROTECTED]' 
  
  Sent: Thursday, March 21, 2002 6:01 
  PM
  Subject: RE: i18 support for dynamic 
  pages.
  
  You can setup 3 different 
  serializers one for every encoding and then use a selector in sitemap to 
  choose the needed one.
  --Konstantin Piroumian[EMAIL PROTECTED] 
  

-Original Message-From: Arun.N 
[mailto:[EMAIL PROTECTED]] Sent: Thursday, March 21, 2002 7:15 
AMTo: [EMAIL PROTECTED]Subject: 
i18 support for dynamic pages.
Hi All,
        
    I have doubt before i start something with i18 support 
provided by cocoon.
We have a site up and running in Japanese language, 
for that i have set encoding to SJIS in the serializers.
 
Now there is a need for support Korean language and 
English. My problem is most of the stuff in the pages are not static 
contents.
I read xml string from a socket and then append to 
the XSP page using 
message 

 
Now the xml string i read from socket will be of 
any of 3 character encoding. 
If i just append like this will it work? I had 
problems displaying SJIS so  i added 
SJIS in the serialize...
 
Now how should my serializers know using which 
encoding it has to handle ???
Is there any work around, or is it quite easy to 
achieve so that i can spend time on this or search for some alternatives 
??
 
Any kind of comments and suggestions are 
welcome.
 
regards,
Arun.N
 
 


Re: urgent encoding problem...

2001-12-13 Thread Arun.N



Hi karl,
        
        In cocoon 1.8.2 there is no XMLSerializer 
ot HTMLSerializer .. can you tell which are the files which does the work of 
these in 1.8. 2  please
reg
Arun.N
    

- Original Message - 

  From: 
  Karl Øie 
  To: [EMAIL PROTECTED] 
  
  Sent: Wednesday, December 12, 2001 6:33 
  PM
  Subject: RE: urgent encoding 
  problem...
  
  erm... that code snipple was from the XMLSerializer, 
  not the HTMLSerializer as i wrote, but the approach should be the same.. 
  sorry!
   
  mvh 
  karl øie
  
-Original Message-From: Karl Øie 
[mailto:[EMAIL PROTECTED]]Sent: 12. desember 2001 13:51To: 
[EMAIL PROTECTED]; 
Arun.NSubject: RE: urgent encoding 
problem...
the increasing page size does not concern me (:-) 
because the serializer should write directly to the 
response.getPrintWriter(). Then again, the serializer does not flush before 
the end of the page, so users must wait till the page is 
finished.
 
when it comes to the missing characters. you could 
try to create your own serializer, let's take a look at the code for the 
HTMLSerializer 
(org.apache.cocoon.serialization.XMLSerializer);
 
the method for the outputstream uses javax.xml to 
set the transformers properties
 
    public void 
setOutputStream(OutputStream out) 
{    try 
{    
super.setOutputStream(out);    
this.handler = 
getTransformerFactory().newTransformerHandler();    
format.put(OutputKeys.METHOD,"xml");    
handler.setResult(new 
StreamResult(this.output));    
handler.getTransformer().setOutputProperties(format);    
this.setContentHandler(handler);    
this.setLexicalHandler(handler);    
} catch (Exception e) 
{    
getLogger().error("XMLSerializer.setOutputStream()", 
e);    
throw new 
RuntimeException(e.toString());    
}    }
 
 
if 
you here force the transformer to use your encoding like 
this;
 
 

    public void 
setOutputStream(OutputStream out) 
{    try 
{    
super.setOutputStream(out);    
this.handler = 
getTransformerFactory().newTransformerHandler();    
format.put(OutputKeys.METHOD,"xml");
    
format.put(OutputKeys.ENCODING,"SHIFT_JIS");    <- add 
this
    
handler.setResult(new 
StreamResult(this.output));    
handler.getTransformer().setOutputProperties(format);    
this.setContentHandler(handler);    
this.setLexicalHandler(handler);    
} catch (Exception e) 
{    
getLogger().error("XMLSerializer.setOutputStream()", 
e);    
throw new 
RuntimeException(e.toString());    
}    }
 
and then recompile cocoon, now try to your page and 
tell me what happens. please also read this note from the xalan 
faq
 
http://xml.apache.org/xalan-j/usagepatterns.html#outputencoding
 
 
mvh karl øie
     
 

  -Original Message-From: Arun.N 
  [mailto:[EMAIL PROTECTED]]Sent: 12. desember 2001 
  13:33To: [EMAIL PROTECTED]; 
  [EMAIL PROTECTED]Subject: Re: urgent encoding 
  problem...
  Thank you karl. 
      
      I have fixed that problem and i have followed the 
  method which you have said. 
  every thing is being displayed 
  properly but there is still a problem in the source code. 
  if the string 
  contains    
  ‚±‚¿‚ç‚É–|–óŒã‚Ì•¶Í‚ª•\Ž¦‚³‚ê‚Ü‚·B
  it is priniting 
  こちらに翻訳後の文章が表示されます。
  but when i look into the source 
  of the output html it is showing  
  こちらに翻訳後の文章が表示されます。
   
  if the source has characters 
  like this also ‚±‚¿‚ç‚É–|–óŒã‚Ì•¶Í‚ª•\Ž¦‚³‚ê‚Ü‚·B it will work 
  fine and out put japanese characters will be the same . but why is cocoon 
  processor replacing everything into numbers. My concern here is, it is 
  increasing the page size.
  any comments in this regard 
  ???
  Thankx in advance,
  Arun.N
   
   
  
- Original Message - 
From: 
    Karl Øie 
To: [EMAIL PROTECTED] 
; Arun.N 
Sent: Wednesday, December 12, 2001 
5:44 PM
Subject: RE: urgent encoding 
problem...

it's not that people don't bother to answer you 
but a lot of people here don't have any experience with shift-jis 
encoding. as a Norwegian I have the same problem, non Scandinavians can 
hardly reproduce problems revolving 
Scandinavian-characters.
 
when it comes to your string problem there can be several 

Re: urgent encoding problem...

2001-12-12 Thread Arun.N



Thank you karl. 
        
I have fixed that problem and i have followed the method which you have said. 

every thing is being displayed 
properly but there is still a problem in the source code. 
if the string 
contains    ‚±‚¿‚ç‚É–|–óŒã‚Ì•¶Í‚ª•\Ž¦‚³‚ê‚Ü‚·B
it is priniting 
こちらに翻訳後の文章が表示されます。
but when i look into the source of 
the output html it is showing  
こちらに翻訳後の文章が表示されます。
 
if the source has characters like 
this also ‚±‚¿‚ç‚É–|–óŒã‚Ì•¶Í‚ª•\Ž¦‚³‚ê‚Ü‚·B it will work fine and 
out put japanese characters will be the same . but why is cocoon processor 
replacing everything into numbers. My concern here is, it is increasing the page 
size.
any comments in this regard 
???
Thankx in advance,
Arun.N
 
 

  - Original Message - 
  From: 
  Karl Øie 
  To: [EMAIL PROTECTED] ; Arun.N 
  Sent: Wednesday, December 12, 2001 5:44 
  PM
  Subject: RE: urgent encoding 
  problem...
  
  it's 
  not that people don't bother to answer you but a lot of people here don't have 
  any experience with shift-jis encoding. as a Norwegian I have the same 
  problem, non Scandinavians can hardly reproduce problems revolving 
  Scandinavian-characters.
   
  when 
  it comes to your string problem there can be several sources. first of all you 
  can test the dom by feeding it a string that has been created with a declared 
  encoding, like :
   
  new String( "æ e trønder æ å" ); will not work on all 
  jdks/platforms
  new String( "æ e trønder æ å", "UTF-16" ); will 
  work on most sane jdks/platforms
  try to 
  create all your strings with shift_jis forced, just in case. second find out 
  weither StringWriter does support shift_jis, as far as i know StringWriter are 
  working on chars and strings and should support shift_jis if all strings fed 
  to it is shift_jis created. lastly there is some problems regarding the 
  PrintWriter that the servlet api are using to return serialized content to the 
  browser, try to serialize to a file instead of to the browser, if the file 
  accepts shift_jis then you should look up fixes/gotchas regarding shift_jis 
  and jsp as cocoon are using the jsp mechanism to send the response back to the 
  user.
  the 
  best place to start looking is the xalan faqs and docs because if you use the 
  xml or html serializer it's using the xalan implementations.
  mvh 
  karl øie
   
  
-Original Message-From: Arun.N 
[mailto:[EMAIL PROTECTED]]Sent: 12. desember 2001 
12:48To: [EMAIL PROTECTED]Subject: Re: 
urgent encoding problem...
Hi all,
    
        First of all i thank everybody for not 
bothering to reply. I corrected the second and the third problem. If the 
list is still alive and anyone cares to give me solution for the first 
problem please do reply.
thankx,
Arun.N
 

  - Original Message - 
  From: 
  Arun.N 
  
  To: [EMAIL PROTECTED] 
  
  Sent: Tuesday, December 11, 2001 1:31 
  PM
  Subject: urgent encoding 
  problem...
  
  Hi all,
      
  I have some problems with the xsp pages and encoding. When i try to 
  display Shift_JIS encoded characters it is not displaying 
  properly.
  when i hard code the japnese 
  characters it is working properly. for example in this xsp 
  page
   
  
  
  
  
    
  language="java"  encoding="Shift_JIS"  xmlns:xsp="http://www.apache.org/1999/XSP/Core"  
  xmlns:request="http://www.apache.org/1999/XSP/Request"  
  xmlns:util="http://www.apache.org/1999/XSP/Util" 
   >
     melpo View 
  Mail
    
      
      
  ‚ ‚È‚½‚ÌPC‚Ì’†‚̃[ƒ‹ƒNƒ‰ƒCƒAƒ“ƒg‚ªÄŠJ‚³‚ê‚Ü‚µ‚½B 
  
      
  
  
   
  the display html is working 
  fine and the characters are working properly .. but the source of the html 
  shows 
  
      
  
      あなたのPCの中のメールクライアントが再開されました。 
  
      
  
  
  
   
  but why is the characters 
  converted into numbers. the problem i have here is this consumes more 
  bytes .. so if the device has some size limitations of the source of the 
  page then it is a problem. if the characters are left same way then 
  it would consume less bytes for the source page.
   
   
  The second problem is, 
  when i dynamically include xml in my xsp it is not working. But 
  the same string when hardcode in the xsp page it is working 
  fine.
  
  
  
  
  
    
  language="java"  encoding="Shift_JIS"  xmlns:xsp="http://www.apache.org/1999/XSP/Core"  
  xmlns:request="http://www.apache.org/1999/XSP/Request"  
  xmlns:util="http://www.apache.org/1999/XSP/Util" 
   >
     melpo View 
  Mail
   

Re: urgent encoding problem...

2001-12-12 Thread Arun.N



Hi all,
        
    First of all i thank everybody for not bothering to reply. I 
corrected the second and the third problem. If the list is still alive and 
anyone cares to give me solution for the first problem please do 
reply.
thankx,
Arun.N
 

  - Original Message - 
  From: 
  Arun.N 
  
  To: [EMAIL PROTECTED] 
  
  Sent: Tuesday, December 11, 2001 1:31 
  PM
  Subject: urgent encoding problem...
  
  Hi all,
      I 
  have some problems with the xsp pages and encoding. When i try to display 
  Shift_JIS encoded characters it is not displaying properly.
  when i hard code the japnese 
  characters it is working properly. for example in this xsp page
   
  
  
  
  
    
  language="java"  encoding="Shift_JIS"  xmlns:xsp="http://www.apache.org/1999/XSP/Core"  
  xmlns:request="http://www.apache.org/1999/XSP/Request"  
  xmlns:util="http://www.apache.org/1999/XSP/Util" 
   >
     melpo View 
  Mail
    
      
      
  ‚ ‚È‚½‚ÌPC‚Ì’†‚̃[ƒ‹ƒNƒ‰ƒCƒAƒ“ƒg‚ªÄŠJ‚³‚ê‚Ü‚µ‚½B 
  
      
  
  
   
  the display html is working fine 
  and the characters are working properly .. but the source of the html shows 
  
  
      
  
      あなたのPCの中のメールクライアントが再開されました。 
  
      
  
  
  
   
  but why is the characters converted 
  into numbers. the problem i have here is this consumes more bytes .. so if the 
  device has some size limitations of the source of the page then it is a 
  problem. if the characters are left same way then it would consume less bytes 
  for the source page.
   
   
  The second problem is, when i 
  dynamically include xml in my xsp it is not working. But the same 
  string when hardcode in the xsp page it is working fine.
  
  
  
  
  
    
  language="java"  encoding="Shift_JIS"  xmlns:xsp="http://www.apache.org/1999/XSP/Core"  
  xmlns:request="http://www.apache.org/1999/XSP/Request"  
  xmlns:util="http://www.apache.org/1999/XSP/Util" 
   >
     melpo View 
  Mail
    
      
      
   String 
  xml = (String) request.getAttribute(xml);
          
     
      
  xml  
  // this will append an xml string like 
  ‚ ‚È‚½‚ÌPC‚Ì’†‚̃[J‚³‚ê‚Ü‚µ‚½B 
    
              
  
          
      
  
  
   
  i am getting an error 
   
  org.xml.sax.SAXException: An invalid XML character (Unicode: 0x13) was 
  found in the element content of the document. [FATAL ERROR] [File: "null" 
  Line: 1 Column: 109] (nested exception: org.xml.sax.SAXParseException: An 
  invalid XML character (Unicode: 0x13) was found in the element content of the 
  document.)
  But the string i am getting if hardcoded 
  itzworking fine. because whrn i hardcode it, the xsp page when getting 
  compiled, it is converting all the characters to those numbers. and whenever 
  the string is dynamically included the it is not 
  working..
   
  and the third problem is ,
      when i load a 
  string to a dom andthen get back the string the encoding information is 
  gone.The characers displayed are ???
      
      String fullXml = "Mail Client in your 
  PC has been ƒƒOƒAƒEƒg Restarted ƒGƒLƒTƒCƒg : –|–󁄗˜—p‹K–ñ xxx 
  ";
   
    DOMParser parser = new 
  DOMParser();  InputStream is = new 
  ByteArrayInputStream(fullXml.getBytes());  InputSource 
  isource=new 
  InputSource(is);  parser.parse(isource);  Document 
  xmlDoc= 
  parser.getDocument();   //created an 
  dom
    doing some 
  manipulation --
    
  OutputFormat    format  = new OutputFormat( xmlDoc 
  );   //Serialize DOM
    
  StringWriter  stringOut = new 
  StringWriter();   
  //Writer will be a String  
  XMLSerializer    serial = new XMLSerializer( stringOut, format 
  );  
  serial.asDOMSerializer();   
  // As a DOM Serializer  serial.serialize( 
  xmlDoc.getDocumentElement() );  String 
  returnXML = stringOut.toString();  // got back the xml as 
  String.
   
  now if i display the string " 
  returnXML " all the japanese characters are gone. the output is only 
  "???"
   
  Can any of you please give a 
  solution for these problems, as it is very urgent for me. I have been trying 
  to solve theses isuues from past 2 days and have searched mail archives i was 
  not able to find a solution.
   
  Thankx in Advance
   
  regards,
  Arun.N,


urgent encoding problem...

2001-12-10 Thread Arun.N



Hi all,
    I have 
some problems with the xsp pages and encoding. When i try to display Shift_JIS 
encoded characters it is not displaying properly.
when i hard code the japnese 
characters it is working properly. for example in this xsp page
 




  
language="java"  encoding="Shift_JIS"  xmlns:xsp="http://www.apache.org/1999/XSP/Core"  
xmlns:request="http://www.apache.org/1999/XSP/Request"  
xmlns:util="http://www.apache.org/1999/XSP/Util" 
 >
   melpo View 
Mail
  
        
‚ ‚È‚½‚ÌPC‚Ì’†‚̃[ƒ‹ƒNƒ‰ƒCƒAƒ“ƒg‚ªÄŠJ‚³‚ê‚Ü‚µ‚½B 

    


 
the display html is working fine and 
the characters are working properly .. but the source of the html shows 


    

    あなたのPCの中のメールクライアントが再開されました。 

    



 
but why is the characters converted 
into numbers. the problem i have here is this consumes more bytes .. so if the 
device has some size limitations of the source of the page then it is a 
problem. if the characters are left same way then it would consume less bytes 
for the source page.
 
 
The second problem is, when i 
dynamically include xml in my xsp it is not working. But the same 
string when hardcode in the xsp page it is working fine.





  
language="java"  encoding="Shift_JIS"  xmlns:xsp="http://www.apache.org/1999/XSP/Core"  
xmlns:request="http://www.apache.org/1999/XSP/Request"  
xmlns:util="http://www.apache.org/1999/XSP/Util" 
 >
   melpo View 
Mail
  
        

 String 
xml = (String) request.getAttribute(xml);
        
   
    
xml  
// this will append an xml string like 
‚ ‚È‚½‚ÌPC‚Ì’†‚̃[J‚³‚ê‚Ü‚µ‚½B 
  
            

        
    


 
i am getting an error 
 
org.xml.sax.SAXException: An invalid XML character (Unicode: 0x13) was 
found in the element content of the document. [FATAL ERROR] [File: "null" Line: 
1 Column: 109] (nested exception: org.xml.sax.SAXParseException: An invalid XML 
character (Unicode: 0x13) was found in the element content of the 
document.)
But the string i am getting if hardcoded 
itzworking fine. because whrn i hardcode it, the xsp page when getting compiled, 
it is converting all the characters to those numbers. and whenever the string is 
dynamically included the it is not 
working..
 
and the third problem is ,
    when i load a 
string to a dom andthen get back the string the encoding information is gone.The 
characers displayed are ???
        
String fullXml = "Mail Client in your PC 
has been ƒƒOƒAƒEƒg Restarted ƒGƒLƒTƒCƒg : –|–󁄗˜—p‹K–ñ xxx 
";
 
  DOMParser parser = new 
DOMParser();  InputStream is = new 
ByteArrayInputStream(fullXml.getBytes());  InputSource 
isource=new 
InputSource(is);  parser.parse(isource);  Document 
xmlDoc= parser.getDocument();   //created 
an dom
  doing some 
manipulation --
  
OutputFormat    format  = new OutputFormat( xmlDoc 
);   //Serialize DOM
  
StringWriter  stringOut = new 
StringWriter();   
//Writer will be a String  
XMLSerializer    serial = new XMLSerializer( stringOut, format 
);  
serial.asDOMSerializer();   
// As a DOM Serializer  serial.serialize( 
xmlDoc.getDocumentElement() );  String 
returnXML = stringOut.toString();  // got back the xml as 
String.
 
now if i display the string " 
returnXML " all the japanese characters are gone. the output is only 
"???"
 
Can any of you please give a solution 
for these problems, as it is very urgent for me. I have been trying to solve 
theses isuues from past 2 days and have searched mail archives i was not able to 
find a solution.
 
Thankx in Advance
 
regards,
Arun.N,


Re: [EmbeddedTomcatSX] java.lang.OutOfMemoryError

2001-12-05 Thread Arun.N

hi
just check by typing  " java -X " you will get all the options.
there is nothing syntax for ".." .. if your startup class is MainClass.class
instead of using "java  MainClass" you have to use
"java -Xms32m -Xmx64m  MainClass"

bye

- Original Message -
From: "Kai Ulrich" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, December 05, 2001 4:18 PM
Subject: [EmbeddedTomcatSX] java.lang.OutOfMemoryError


> Hey
>
> My problem !
> Im using cocoon2 with jboss !
> By creating a PDF file I get following Exception
> ...
> [EmbeddedTomcatSX] java.lang.OutOfMemoryError
> [EmbeddedTomcatSX]  <>
> ...
>
> In all Documentations they say I supose to rice up the memory of the JAVA
VM
> by "java -Xms32m -Xmx64m ..."
> But what is the Syntax for "..." ?
>
> Thanks
> k
>
>
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>


-
Please check that your question has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




including xml dynamically from a string

2001-11-26 Thread Arun.N



Hi,
    Can any one help me in doing 
this. I get a piece of XML data as a request attribute forwarded from a servlet. 
In my xsp page i have to attach that. here is the code snippet
 dynamic   String 
xml = (String)request.getAttribute("xml"); ( This will return a XML 
format string  like "  Inbox 
Bulk Mail " )
        
// what should i do here 
??   
   


 
so that the xml which goes to the 
xslt processes from xsp processor should look like this.
page>dynamic
        

        
    Inbox
        
    Bulk Mail
        
    

 
It happens some time that the string i get from request attribute can even 
have a different structure also . I need a generic sort of implementation to do 
this. I tried the code below which will add some tree to the xml but i need 
to populate that reading from the string.
 
 



   language="java"  
xmlns:xsp="http://www.apache.org/1999/XSP/Core"  xmlns:request="http://www.apache.org/1999/XSP/Request"  xmlns:util="http://www.apache.org/1999/XSP/Util"  create-session="true" > 
dynamic   String 
xml = (String)request.getAttribute("xml"); ( This willreturn a XML 
format string  like "  Inbox 
Bulk Mail " 
) xspParentNode = 
xspCurrentNode;
 xspNodeStack.push(xspParentNode);    
  xspCurrentNode 
=document.createElement("folders");    
  
xspParentNode.appendChild(xspCurrentNode);
    
   xspParentNode = 
xspCurrentNode;    
   xspNodeStack.push(xspParentNode);  xspCurrentNode 
=  
document.createElement("folder");   xspParentNode.appendChild(xspCurrentNode);   xspCurrentNode.appendChild(document.createTextNode("Inbox"));
 
   xspCurrentNode 
=  
document.createElement("folder");   xspParentNode.appendChild(xspCurrentNode);   xspCurrentNode.appendChild(document.createTextNode("Outbox"));
 
   

 
 
 
can any one please help me 

Thanks in advance
 
regards,
Arun.N
 



Re: newbie Question abt number of xsls

2001-11-19 Thread Arun.N

Hi,
Thankx Adam !!! for your reply.
  I checked what you said .. sounds good.
but all the examples i found with the cocoon 1.8.2  was using a separate
stylesheet.

in the code snippet you have shown here, is the to-chtml.xsl and to-html.xsl
enough for all the pages. if i am going to support two MLs HTML and CHTML
 is a single generic xsl for each ML sufficient??

If so . building  that generic xsl depends on the XML tags i define in my
application..  or is there any stylesheets which are freely available so
that i will follow the protocol defined for the XML tags decided by the
provider of the xsl.
I feel if there are any predefined xsl i would prefer and follow the tags
defined by that ... because as i am not too good in writing xsls, following
the protocol will save lot of my development time.

if there are any links for stylesheets to convert from XML to any ML in a
generic way, please can you give me some links. It will be very helpful for
me

Thankz in advance,
regards,
Arun.N


- Original Message -
From: "Adam A R" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, November 19, 2001 11:48 AM
Subject: Re: newbie Question abt number of xsls


> Hi Arun,
>
> Yes. It is possible to use one .xsl for each ML
>
> If you are using Cocoon 1.8 then use the media="xxx" parameter in the
> processing instruction to specify the useragent for the xsl.
>
> eg.
>
> 
> 
> 
> ...
> ...
> ...
>   
>
>
> But for this to work, you should configure User-Agents(Browsers) in the
> cocoon.properties file.
>
> part of my cocoon.properties looks like this.
> ##
> ##
> # User Agents (Browsers) #
> ##
>
> # NOTE: numbers indicate the search order. This is very important since
> # some words may be found in more than one browser description. (MSIE is
> # presented as "Mozilla/4.0 (Compatible; MSIE 4.01; ...")
> #
> # for example, the "explorer=MSIE" tag indicates that the XSL stylesheet
> # associated to the media type "explorer" should be mapped to those
browsers
> # that have the string "MSIE" in their "user-Agent" HTTP header.
>
> browser.0 = up=UP.Browser/
> browser.1 = explorer=MSIE
> browser.2 = pocketexplorer=MSPIE
> browser.3 = handweb=HandHTTP
> browser.4 = avantgo=AvantGo
> browser.5 = imode=DoCoMo
> browser.6 = opera=Opera
> browser.7 = lynx=Lynx
> browser.8 = java=Java
> browser.9 = wap=Nokia
> browser.10 = wap=UP
> browser.11 = wap=Wapalizer
> browser.12 = mozilla5=Mozilla/5
> browser.13 = mozilla5=Netscape6/
> browser.14 = netscape=Mozilla
> ##
>
>
> I dont know much of C2. Though I have installed it... lately I am running
> short of time.
> Someone on the list might be able to explain it for C2.
>
> But, as far as I know you will have to use Matchers for using each
> stylesheet depending on the user-agent.
> Can anybody shed light on how to do this in C2??
>
>
> cheers
> Adam
>
>
> - Original Message -
> From: Arun.N
> To: [EMAIL PROTECTED]
> Sent: Saturday, November 17, 2001 9:06 PM
> Subject: newbie Question abt number of xsls
>
>
> Hi,
> Is it possible to have only one xsl for each type ML ie one for
WAP
> one for and one for HTML generation and etc.
> And all the xml page should use the same stylesheet. according to the
> useragent it should pick one of the xsl in all the pages.
> I have a senario where there are 200 pages in the application. As far as
my
> understanding for each page we should write an xsl and one for each type o
f
> ML. Is there any generic approach ? because the application will have lots
> of pages if there is one to one.
> ie, as of now i have to support html wap and chtml ... that becomes 200
xmls
> + 600 xsl !!!
>
> Please suggest me what to do ??
> I also welcome someother sort of implementaion also.
> Thankx in advance,
> Arun.N
>
>
> -
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>


-
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




newbie Question abt number of xsls

2001-11-17 Thread Arun.N



Hi,
        
Is it possible to have only one xsl for each type ML ie one for WAP one for and 
one for HTML generation and etc.
And all the xml page should use the 
same stylesheet. according to the useragent it should pick one of the xsl in all 
the pages.
I have a senario where there are 200 
pages in the application. As far as my understanding for each page we should 
write an xsl and one for each type of ML. Is there any generic approach ? 
because the application will have lots of pages if there is one to one. 

ie, as of now i have to support html 
wap and chtml ... that becomes 200 xmls + 600 xsl !!!
 
Please suggest me what to do 
??
I also welcome someother sort of 
implementaion also.
Thankx in advance,
Arun.N