Subject: RE: where is an exhaustive reference for xslt?
From: "Scott Trenda" <Scott.Trenda@xxxxxxxx>
Date: Fri, 19 Oct 2007 18:56:07 -0500
|
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@xxxxxxxxx [mailto:ettinger@xxxxxxxxx] On Behalf Of
Anthony Ettinger
Sent: Friday, October 19, 2007 6:49 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: 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.Trenda@xxxxxxxx> 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@xxxxxxxxx [mailto:ettinger@xxxxxxxxx] On Behalf Of
> Anthony Ettinger
> Sent: Friday, October 19, 2007 6:11 PM
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: Re: where is an exhaustive reference for xslt?
>
> On 10/19/07, Michael Kay <mike@xxxxxxxxxxxx> 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
>
>
--
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
|