Subject: Re: [xsl] [XSL] Two "Philisophical" questions about the language From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx> Date: Sat, 17 Jan 2009 06:34:31 -0500 |
First one -------------- We've got an instruction : <xsl:if>
But this instruction has no <xsl:else> as any other language I've used.
----------------- My second one might be easier!
Let's say I have an XML like this
<?xml version="1.0"> <root> <!-- Any number of nodes here --> </root>
As a valid XML document can have only one "main" node,
what is the architectural and practical difference between
<xsl:template select="/">
and
<xsl:template select="/root">
<?xml version="1.0"> <?xml-stylesheet type="text/xsl" href="over-there.xsl"> <?owner jsmith> <root> </root> <!--copyright notice here-->
At the moment: - they do the exact same thing
-- Upcoming XSLT/XSL-FO, UBL and code list hands-on training classes: : Sydney, AU 2009-01/02; Brussels, BE 2009-03; Prague, CZ 2009-03 Training tools: Comprehensive interactive XSLT/XPath 1.0/2.0 video Video lesson: http://www.youtube.com/watch?v=PrNjJCh7Ppg&fmt=18 Video overview: http://www.youtube.com/watch?v=VTiodiij6gE&fmt=18 G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ Male Cancer Awareness Nov'07 http://www.CraneSoftwrights.com/s/bc Legal business disclaimers: http://www.CraneSoftwrights.com/legal
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] [XSL] Two "Philisophical" que, Alain | Thread | Re: [xsl] [XSL] Two "Philisophical", Mukul Gandhi |
Re: [xsl] accessing multiple xml do, Stefan Hunziker | Date | [xsl] Get position of parent, Philip Vallone |
Month |