xsl-list
[Top] [All Lists]

RE: [xsl] where is an exhaustive reference for xslt?

2007-10-19 16:56:37
It's an unqualified attribute in this case, yes. Since the parent
element is in the xsl: namespace, an unqualified attribute ends up in
that namespace as well. The only time you'd see otherwise is if you had
a literal stylesheet element, like so:

<html xsl:version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
  <xsl:value-of select="some-child-of-the-root"/>
</html>

I seem to remember that my stylesheets break if I prefix the version
attribute in the <xsl:stylesheet> element. However, if you need to put a
xd:version attribute in the top element for other reasons, you'd need to
prefix that one.

~ Scott


-----Original Message-----
From: ettinger(_at_)gmail(_dot_)com [mailto:ettinger(_at_)gmail(_dot_)com] On 
Behalf Of
Anthony Ettinger
Sent: Friday, October 19, 2007 6:49 PM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: Re: [xsl] where is an exhaustive reference for xslt?

thanks...does the version attribute apply to the xsl:stylesheet
namespace only?


On 10/19/07, Scott Trenda <Scott(_dot_)Trenda(_at_)oati(_dot_)net> wrote:
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
xmlns:xd="http://www.pnp-software.com/XSLTdoc";
xmlns="http://www.w3.org/1999/xhtml"; version="1.0"
exclude-result-prefixes="xd">

~ Scott


-----Original Message-----
From: ettinger(_at_)gmail(_dot_)com [mailto:ettinger(_at_)gmail(_dot_)com] On 
Behalf Of
Anthony Ettinger
Sent: Friday, October 19, 2007 6:11 PM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: Re: [xsl] where is an exhaustive reference for xslt?

On 10/19/07, Michael Kay <mike(_at_)saxonica(_dot_)com> wrote:
There's no such thing as xsl:documentation, so it's not surprising
you
couldn't find it.

What did you want really?



xsd:documentation was what I wanted (for xslt)

I found XSLTDoc, but when I use it, my output adds

 <dd xmlns:xd=http://www.pnp-software.com/XSLTdoc/";>

 to every html element. Unless I'm doing somethign wrong:

In my xsl where I use xd:doc tags I have :

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
xmlns:xd="http://www.pnp-software.com/XSLTdoc";
xmlns="http://www.w3.org/1999/xhtml"; version="1.0">



--
Anthony Ettinger
Ph: 408-656-2473
var (bonita, farley) = new Dog;
farley.barks("very loud");
bonita.barks("at strangers");

http://chovy.dyndns.org/resume/
http://utuxia.com/consulting

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--




-- 
Anthony Ettinger
Ph: 408-656-2473
var (bonita, farley) = new Dog;
farley.barks("very loud");
bonita.barks("at strangers");

http://chovy.dyndns.org/resume/
http://utuxia.com/consulting

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--