[WSG] XML Includes?

2004-04-27 Thread Scott Barnes
Heyas,
Still finding my feet with XHTML / CSS. I noticed that in Mozilla (well 
through Eric Meyers new book) you can introduce your own tags (ie XML) 
and basically in many ways can attach CSS to them (much like you would 
with a simple old DIV)

In Internet Explorer this isn't the case? it ignores the tags / css?
eg:

   mycontent
   mycontent


   window {
   display:block;
   left: 200px;
   top: 200px;
   width: 200px;
   height: 200px;
   border: 1px solid red;
   background-color: yellow;
   }

Simple example, works great in Mozilla FireFox (heh go Mozilla) but 
fails in IE? I'm using the doctype:
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>

with:
http://www.w3.org/1999/xhtml"; lang="en-US" xml:lang="en-US">
Anyone care to comment?
--
Regards,
Scott Barnes
-
http://www.mossyblog.com
http://www.bestrates.com.au
*
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
* 



Re: [WSG] XML Includes?

2004-04-30 Thread wsg



Mark Stanton wrote:
 
> Could you convert:> > 
>    
mycontent>    
mycontent> > 
> into:> > >    
mycontent>    mycontent> > > 
using XSL?
 
Mark (and Scott),
 
not having noticed the original post I'm a bit out of the loop 
on this discussion, but the Xsl below does the transformation with the fewest of 
lines of code possible.
 
    
http://www.w3.org/1999/XSL/Transform">
    
 
                     
  
     

 

 
woric
 
PS: If you need a Xsl transformation tool and are using a 
ASP.NET box try XsltFilter (http://xsltfilter.tigris.org). If you are using 
Linux there are lots of Xslt tools for apache and 
java.


Re: [WSG] XML Includes?

2004-04-30 Thread Benjamin
wouldnt you need to use the xml doctype if your using xml ?
or the xml prologue as its called.?



> Heyas,
> 
> Still finding my feet with XHTML / CSS. I noticed that in Mozilla (well 
> through Eric Meyers new book) you can introduce your own tags (ie XML) 
> and basically in many ways can attach CSS to them (much like you would 
> with a simple old DIV)
> 
> In Internet Explorer this isn't the case? it ignores the tags / css?
> 
> eg:
> 
> 
> mycontent
> mycontent
> 
> 
> 
> window {
> display:block;
> left: 200px;
> top: 200px;
> width: 200px;
> height: 200px;
> border: 1px solid red;
> background-color: yellow;
> }
> 
> 
> Simple example, works great in Mozilla FireFox (heh go Mozilla) but 
> fails in IE? I'm using the doctype:
>  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
> 
> with:
> http://www.w3.org/1999/xhtml"; lang="en-US" xml:lang="en-US">
> 
> Anyone care to comment?
> 
> -- 
> 
> Regards,
> Scott Barnes
> -
> http://www.mossyblog.com
> http://www.bestrates.com.au
> 
> *
> The discussion list for http://webstandardsgroup.org/
> See http://webstandardsgroup.org/mail/guidelines.cfm
> for some hints on posting to the list & getting help
> * 
> 
> 
> 

Benjamin
Life through a polaroid

www.lifethroughapolaroid.com
*
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
* 



Re: [WSG] XML Includes?

2004-05-01 Thread wsg



Mark Stanton wrote:
 
> Could you convert:> > 
>    
mycontent>    
mycontent> > 
> into:> > >    
mycontent>    mycontent> > > 
using XSL?
 
Mark (and Scott),
 
not having noticed the original post I'm a bit out of the loop 
on this discussion, but the Xsl below does the transformation with the fewest of 
lines of code possible.
 
    
http://www.w3.org/1999/XSL/Transform">
    
 
                     
  
     

 

 
woric
 
PS: If you need a Xsl transformation tool and are using a 
ASP.NET box try XsltFilter (http://xsltfilter.tigris.org). If you are using 
Linux there are lots of Xslt tools for apache and 
java.


Re: [WSG] XML Includes?

2004-05-02 Thread Benjamin
wouldnt you need to use the xml doctype if your using xml ?
or the xml prologue as its called.?



> Heyas,
> 
> Still finding my feet with XHTML / CSS. I noticed that in Mozilla (well 
> through Eric Meyers new book) you can introduce your own tags (ie XML) 
> and basically in many ways can attach CSS to them (much like you would 
> with a simple old DIV)
> 
> In Internet Explorer this isn't the case? it ignores the tags / css?
> 
> eg:
> 
> 
> mycontent
> mycontent
> 
> 
> 
> window {
> display:block;
> left: 200px;
> top: 200px;
> width: 200px;
> height: 200px;
> border: 1px solid red;
> background-color: yellow;
> }
> 
> 
> Simple example, works great in Mozilla FireFox (heh go Mozilla) but 
> fails in IE? I'm using the doctype:
>  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
> 
> with:
> http://www.w3.org/1999/xhtml"; lang="en-US" xml:lang="en-US">
> 
> Anyone care to comment?
> 
> -- 
> 
> Regards,
> Scott Barnes
> -
> http://www.mossyblog.com
> http://www.bestrates.com.au
> 
> *
> The discussion list for http://webstandardsgroup.org/
> See http://webstandardsgroup.org/mail/guidelines.cfm
> for some hints on posting to the list & getting help
> * 
> 
> 
> 

Benjamin
Life through a polaroid

www.lifethroughapolaroid.com
*
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
* 

*
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
* 



Re: [WSG] XML Includes?

2004-04-27 Thread Andrew Taumoefolau
Hi Scott,
I can't explain what might be causing IE to choke (IE's internals are 
deep black magic to me :), but just so you know, there's not much point 
in including that doctype if you want to introduce non-standard tags. 
DTDs exist to define a set of allowed tags (and allowed attributes for 
those tags, and a whole bunch of other stuff) for an XML document.  
Introducing undefined ones makes a document invalid.

Regards,
Andrew Taumoefolau
*
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
* 



Re: [WSG] XML Includes?

2004-04-29 Thread Mark Stanton
Hey Scott

The doctype that you are using:

http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>

doesn't contain the elements that you are using in your code:


   mycontent
   mycontent


...so your document is invalid.  I'm not going to jump up & down about
it must be valid or you will burn in the infernal pits for eternity,
but I can say that if its not valid you're going to have a bastard of
a time debugging it & working out whats a bug in your code & whats a
bug in a browser.

So how do you get this stuff to validate? XHTML's got a feature that
allows you to specify your own doctypes to extend the default set of
tags & attributes, or to override what is already there. I don't know
a huge amount about this but some googling could turn up some useful
stuff. The main reason why this feature has been discussed over the
past year or so is that XHTML doesn't have a target attribute on 
tags so people have been tweaking doctypes to add it in & stay valid.

But I'm pretty sure that in most cases creating your own doctype
is not going to be the easiest or best idea. My gut feel is that a bit
of XSL is probably more suited to what you are trying to do.

Could you convert:


   mycontent
   mycontent


into:


   mycontent
   mycontent


using XSL?


Cheers

Mark (who will be in training until tuesday so don't expect any quick
follow up).
*
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
*