Re: XHTML/XSLT issue

2004-04-02 Thread Ugo Cei
Il giorno 02/apr/04, alle 18:08, beyaNet Consultancy ha scritto:

the code you sent even strips out all of the html and leaves only the 
values passed into the xslt page! All I want is to be able to strip 
out the xml code that appears within the html tags ;-)
You don't have XML "code", whatever that is, you have extra namespace 
declarations, which might be ugly to see but are perfectly legitimate.

what do I need to do?


and see the Wiki entry pointed to in the comment.

	Ugo

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


Re: XHTML/XSLT issue

2004-04-02 Thread beyaNet Consultancy
Chris,
you the man! ;-)
Peter
On 2 Apr 2004, at 17:23, Christopher Painter-Wakefield wrote:

  

  


  



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


Re: XHTML/XSLT issue

2004-04-02 Thread Christopher Painter-Wakefield




:)  Not sure how that happened, sorry!  I wonder where those crept in from?

You could try adding this template, although I am dubious it will work:



and modify
 
to
 


Another possibility is that namespaces are getting attached to the
attributes, although I've never seen it happen.  In that case, you could
replace
 ...

with

  





FWIW, I don't think the namespace declarations affect behavior on any of
the common browsers.

-Christopher





Christopher,
in all intents and purposes, the code you sent works, but there are a
few instances where I am left with the following:



i.e. an xmlns=""

Anything we can do about those?

Peter
On 2 Apr 2004, at 17:23, Christopher Painter-Wakefield wrote:

>
>
>
>
> I think maybe you are missing the context for the code that was
> supplied.
> It looks to me as if it was intended to be used within another
> stylesheet
> (e.g., "priority='-1'").  Here is a complete stylesheet that should
> work if
> you apply it as a separate transform (I tested it briefly):
>
> -cleanup.xsl---
> 
>xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
>   version="1.0"
>>
>
> 
>   
> 
>   
> 
>
> 
>   
> 
>
> 
> ---
>
> If you want to not lose comments and that sort of thing, you may need
> to
> add templates, but this will copy everything that counts.
>
> -Christopher
>
>
>



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



Re: XHTML/XSLT issue

2004-04-02 Thread beyaNet Consultancy
Christopher,
in all intents and purposes, the code you sent works, but there are a  
few instances where I am left with the following:



i.e. an xmlns=""

Anything we can do about those?

Peter
On 2 Apr 2004, at 17:23, Christopher Painter-Wakefield wrote:




I think maybe you are missing the context for the code that was  
supplied.
It looks to me as if it was intended to be used within another  
stylesheet
(e.g., "priority='-1'").  Here is a complete stylesheet that should  
work if
you apply it as a separate transform (I tested it briefly):

-cleanup.xsl---

http://www.w3.org/1999/XSL/Transform";
  version="1.0"


  

  


  


---
If you want to not lose comments and that sort of thing, you may need  
to
add templates, but this will copy everything that counts.

-Christopher



|-+>
| |   beyaNet  |
| |   Consultancy  |
| |   <[EMAIL PROTECTED]|
| |   .com>|
| ||
| |   04/02/2004 11:08 |
| |   AM   |
| |   Please respond to|
| |   users|
| ||
|-+>
-- 
|
  | 
  |
  |   To:   [EMAIL PROTECTED] 
  |
  |   cc:   
          |
  |   Subject:  Re: XHTML/XSLT issue
  |
-- 
|




Ugo,
the code you sent even strips out all of the html and leaves only the
values passed into the xslt page! All I want is to be able to strip out
the xml code that appears within the html tags ;-)
what do I need to do?
Peter
On 2 Apr 2004, at 15:54, Ugo Cei wrote:

  
  



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




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


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


Re: XHTML/XSLT issue

2004-04-02 Thread Jon Evans
Hi Chris,

On 2 Apr 2004, at 17:19, Chris Wilder-Smith wrote:

How about using

 exclude-result-prefixes ... >
Doesn't work:

http://wiki.cocoondev.org/Wiki.jsp?page=RemoveNamespaces

Luca / Christopher / Peter, that page is worth reading through (the xsl 
in Ugo's message came from there originally according to the comment at 
the top).

FWIW I'm using a similar XSL on my site and it seems to work fine.

Jon

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


Re: XHTML/XSLT issue

2004-04-02 Thread Christopher Painter-Wakefield




I think maybe you are missing the context for the code that was supplied.
It looks to me as if it was intended to be used within another stylesheet
(e.g., "priority='-1'").  Here is a complete stylesheet that should work if
you apply it as a separate transform (I tested it briefly):

-cleanup.xsl---

http://www.w3.org/1999/XSL/Transform";
  version="1.0"
>


  

  



  



---

If you want to not lose comments and that sort of thing, you may need to
add templates, but this will copy everything that counts.

-Christopher



|-+>
| |   beyaNet  |
| |   Consultancy  |
| |   <[EMAIL PROTECTED]|
| |   .com>|
| ||
| |   04/02/2004 11:08 |
| |   AM   |
| |   Please respond to|
| |   users|
| ||
|-+>
  
>--|
  |
  |
  |   To:   [EMAIL PROTECTED]  
|
  |   cc:  
      |
  |   Subject:  Re: XHTML/XSLT issue   
  |
  
>--|




Ugo,
the code you sent even strips out all of the html and leaves only the
values passed into the xslt page! All I want is to be able to strip out
the xml code that appears within the html tags ;-)
what do I need to do?

Peter
On 2 Apr 2004, at 15:54, Ugo Cei wrote:

> 
>   
>   
> 


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





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



Re: XHTML/XSLT issue

2004-04-02 Thread Chris Wilder-Smith
Peter,


How about using 

exclude-result-prefixes ... >

e.g.:

http://www.w3.org/1999/XSL/Transform";
  xmlns:xalan="http://xml.apache.org/xalan";
  exclude-result-prefixes="xsl xalan">

That will exclude any prefixes that aren't really needed in the results.

Regards,

Chris

On Fri, 2004-04-02 at 11:08, beyaNet Consultancy wrote:
> Ugo,
> the code you sent even strips out all of the html and leaves only the 
> values passed into the xslt page! All I want is to be able to strip out 
> the xml code that appears within the html tags ;-)
> what do I need to do?
> 
> Peter
> On 2 Apr 2004, at 15:54, Ugo Cei wrote:
> 
> > 
> >   
> >   
> > 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
-- 
Chris Wilder-Smith <[EMAIL PROTECTED]>


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



Re: XHTML/XSLT issue

2004-04-02 Thread beyaNet Consultancy
Ugo,
the code you sent even strips out all of the html and leaves only the 
values passed into the xslt page! All I want is to be able to strip out 
the xml code that appears within the html tags ;-)
what do I need to do?

Peter
On 2 Apr 2004, at 15:54, Ugo Cei wrote:

  
  



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


Re: XHTML/XSLT issue

2004-04-02 Thread beyaNet Consultancy
Ugo,
thanks for that ;-)
Peter
On 2 Apr 2004, at 15:54, Ugo Cei wrote:
beyaNet Consultancy wrote:
Hi,
In my site pages I am having an issue whereby when you view source on 
a page you can still see some of the xslt tags embedded in some of 
the html tags, for instance:
http://apache.org/xsp"; 
xmlns:util="http://apache.org/xsp/util/2.0"; 
xmlns:xsp-session="http://apache.org/xsp/session/2.0"; 
xmlns:xsp-request="http://apache.org/xsp/request/2.0"; action="login" 
method="post">
How do I prevent this from happening, so that the tag just reads as?:

All my pages need to be serialized as serverpages.

  
  

  
  

  
  

  


	Ugo

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


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


Re: XHTML/XSLT issue

2004-04-02 Thread Ugo Cei
beyaNet Consultancy wrote:
Hi,
In my site pages I am having an issue whereby when you view source on a 
page you can still see some of the xslt tags embedded in some of the 
html tags, for instance:

http://apache.org/xsp"; 
xmlns:util="http://apache.org/xsp/util/2.0"; 
xmlns:xsp-session="http://apache.org/xsp/session/2.0"; 
xmlns:xsp-request="http://apache.org/xsp/request/2.0"; action="login" 
method="post">

How do I prevent this from happening, so that the tag just reads as?:



All my pages need to be serialized as serverpages.

  
  

  
  

  
  

  


	Ugo

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


Re: XHTML/XSLT issue

2004-04-02 Thread Luca Morandini
beyaNet Consultancy wrote:

In my site pages I am having an issue whereby when you view source on a 
page you can still see some of the xslt tags embedded in some of the 
html tags, for instance:

http://apache.org/xsp"; 
xmlns:util="http://apache.org/xsp/util/2.0"; 
xmlns:xsp-session="http://apache.org/xsp/session/2.0"; 
xmlns:xsp-request="http://apache.org/xsp/request/2.0"; action="login" 
method="post">

How do I prevent this from happening, so that the tag just reads as?:



All my pages need to be serialized as serverpages.
I guess you meant "All my pages are produced by the Server Pages 
generator", isn't it ?

A solution may be to strip the unwanted XSP namespaces (they're not XSLT 
 ones) by adding an XSL transformation (see 
http://archives.real-time.com/pipermail/cocoon-users/2003-November/042751.html 
).

Regards,

---
 Luca Morandini
   [EMAIL PROTECTED]
http://www.lucamorandini.it
---
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


XHTML/XSLT issue

2004-04-02 Thread beyaNet Consultancy
Hi,
In my site pages I am having an issue whereby when you view source on a 
page you can still see some of the xslt tags embedded in some of the 
html tags, for instance:

http://apache.org/xsp"; 
xmlns:util="http://apache.org/xsp/util/2.0"; 
xmlns:xsp-session="http://apache.org/xsp/session/2.0"; 
xmlns:xsp-request="http://apache.org/xsp/request/2.0"; action="login" 
method="post">

How do I prevent this from happening, so that the tag just reads as?:



All my pages need to be serialized as serverpages.

Peter

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