This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: Outstanding Argument!


:>I don't know.  But does it allow for
:>
:><x:anything David/XSL="David likes XSL"/>  ????
:
:There seems to be some misunderstanding here. 
:No, "/" is not allowed in attribute _names_.
:
:-Steve Schafer

You are right Steve but if this
is a variable for which I'm testing which is
a value of an attribute it won't allow me
to read it.  Suffice it to say that If 
I have a declared attribute 
<!ATTLIST ELMENT  
		NAME	(XSL|DAVID|XSL/DAVID) #IMPLIED >

in the DTD and then I have a variable for 
which

<xsl:stylesheet
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
	version="1.0"
	xmlns:x="file:/dev/null">

<x:anything XSL/DAVID="David likes XSL"/>
<x:anything XSL="XSL"/>
<x:anything DAVID="David"/>
<xsl:template match="/">

<xsl:variable name="x" select="//@name"/>
<xsl:value-of select="document(' ')/*/c:anything/@*
			[name(.)=$x or name()='X'] [1]"/>
<xsl:apply-templates />
</xsl:template>
</xsl:stylesheet>

It won't allow for the "/" because it wants a ">"
and not a "D".  Now if you can successfully do that
then please tell me how you do that and I can make
the Senior Engineer happy.  :-)

Eddy


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]