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

Subject: Re: xsl:comment and xsl:pi containing template elements?
From: Chris Maden <crism@xxxxxxxxxxx>
Date: Fri, 18 Dec 1998 17:55:35 -0500 (EST)
[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.

-Chris
-- 
<!NOTATION SGML.Geek PUBLIC "-//Anonymous//NOTATION SGML Geek//EN">
<!ENTITY crism PUBLIC "-//O'Reilly//NONSGML Christopher R. Maden//EN"
"<URL>http://www.oreilly.com/people/staff/crism/ <TEL>+1.617.499.7487
<USMAIL>90 Sherman Street, Cambridge, MA 02140 USA" NDATA SGML.Geek>


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


Current Thread