OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: [xml-dev] XLINK support in browsers

[ Lists Home | Date Index | Thread Index ]

Uche Ogbuji wrote:
On Mon, 2005-04-04 at 11:46 +0300, Razvan MIHAIU wrote:
  
You need to define style so Mozilla knows how to render it. At least, 
that is how it works now. It might be worth submitting a bug report 
about styling documents using attributes from the XLink namespace by 
default.
      
    You are speaking about an XSLT stylesheet ?
    In this case you must have at least a template matching the root 
element. That template should at least contain:

<xsl:apply-templates />

    To my understanding this is the bare minimum. From there the default 
templates will be applied, so the content of elements should be 
displayed. But if this is true then the content of my XLinkTest1 element 
will be displayed - the element will not be copied on the output as it 
is. That means that the result of this transformation will not contain 
any xlink code ! The result is that this should not work, but it does!!

    I do not understand.

    Perhaps somebody can explain what the effect of an empty style sheet 
declaration is.


    
      
2. what "magic" is done by your empty style sheet declaration ? I
mean you don't even define a type for your style-sheet - like
"text/xsl";
        
   I guess the renderer assumes that I want some sort of style. 
      
    Are we speaking about the same thing ? I am referring to XSLT style 
sheets. When you say "style" you could very well mean CSS. Perhaps there 
is some default CSS applied ! Hmm...
    

I really didn't think it would have been possible for you to introduce
more confusion into the conversation, but you've succeeded.  Yes, CSS.
XSLT has nothing to do with it.  And the idea of a "default" CSS
rendering is fundamental to the idea of browser styling.
    It is not my intention to introduce confusion.
    I still remember the days when CSS was not even created and the web pages were just plain HTML. This may have become fundamental in the last 3-4 years which is easy to miss if you are not a web developer.

  You really
probably should take my basics tutorial, again at:

http://www-128.ibm.com/developerworks/edu/x-dw-x-xmlcss-i.html

You can probably skip a lot of the slides that go over CSS features, but
you'd get the basics of the XML/CSS mix.  Then you could move on to

http://www-128.ibm.com/developerworks/edu/x-dw-x-xmlcss2-i.html

Where I cover linking and other advanced matters (there are examples on
almost every slide)

Sorry to repeat the suggestion, but you *really* seem to need it ;-)
  
    Suggestion noted.

-- 
Regards,
Razvan

SCJP preparation material:

www.mihaiu.name/2004/sun_java_scjp_310_035/index.html
www.mihaiu.name/2004/sun_java_scjp_310_035_test1/index.html
www.mihaiu.name/2004/sun_java_scjp_310_035_test2/index.html
www.mihaiu.name/2004/sun_java_scjp_310_035_test3/index.html
www.mihaiu.name/2004/sun_java_scjp_310_035_test4/index.html




 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS