xml editor

Supported platforms

Compatible with Windows7 & Mac OS X Snow Leopard

Ready for data server software
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: xsl:comment and xsl:pi containing template elements?


Subject: Re: xsl:comment and xsl:pi containing template elements?
From: Tyler Baker <tyler@xxxxxxxxxxx>
Date: Sat, 19 Dec 1998 00:09:55 -0500

Chris Maden wrote:

> [Tyler Baker]
> > Why not just have the DTD section for xsl:attribute be changed from:
> >
> > <!ELEMENT xsl:attribute %template;>
> >
> > to:
> >
> > <!ELEMENT xsl:attribute #PCDATA>
>
> Because you want to use <xsl:value-of/> or some other dynamic thing to
> determine the value.  Using (#PCDATA) would mean that your
> <xsl:attribute> element could only have the same content, ever, and so
> every attribute generated by it would have the same value, every
> time.  Not very useful, then.

OK then why not:

<ELEMENT xsl:attribute (#PCDATA | xsl:value-of)>

Why does the DTD say you can have result element nodes as children, but
then it specifically says this is an error.

I don't see the rationale here in terms of validation.

Tyler


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



Current Thread
XML Editor | XML Author | WYSIWYG Editors | Schema Editor | XSD Documentation | XSL/XSLT Editor | XQuery | XML Databases | SVN Client
© 2002-2011 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy | This website was created & generated with <oXygen/>®XML Editor