Re: [xslt] reading from DTD
- From: Daniel Veillard <veillard redhat com>
- To: xslt gnome org
- Subject: Re: [xslt] reading from DTD
- Date: Wed, 24 Oct 2001 10:04:48 -0400
On Mon, Oct 22, 2001 at 04:26:00PM -0700, Daniel Allen wrote:
> I have a question about libxslt and really xslt in
> general...if you specify default values for attributes
> in the DTD, and then do
>
> <xsl:value-of select="@etc"/>
>
> in your transformation on a node that is missing the
> attribute, should the default value be outputted???
> or is this just not implemented...it doesn't seem to
> be working an any of the parsers, unless I am doing
> something wrong...if so, could someone give me a super
> simple example??
Should work. There is a regression test in libxslt it's
tests/docs/bug-53.xsl
tests/general/bug-53.xsl
tests/general/bug-53.out
You're probably doing something wrong.
Daniel
--
Daniel Veillard | Red Hat Network http://redhat.com/products/network/
veillard@redhat.com | libxml Gnome XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]