Lists Home |
Date Index |
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. You really
probably should take my basics tutorial, again at:
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
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 ;-)
Uche Ogbuji Fourthought, Inc.
http://uche.ogbuji.net http://4Suite.org http://fourthought.com
Use CSS to display XML, part 2 - http://www-128.ibm.com/developerworks/edu/x-dw-x-xmlcss2-i.html
Writing and Reading XML with XIST - http://www.xml.com/pub/a/2005/03/16/py-xml.html
Use XSLT to prepare XML for import into OpenOffice Calc - http://www.ibm.com/developerworks/xml/library/x-oocalc/
Be humble, not imperial (in design) - http://www.adtmag.com/article.asp?id=10286
State of the art in XML modeling - http://www.ibm.com/developerworks/xml/library/x-think30.html