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]
Other format: [Raw text]

RE: determining whether an XPATH points to an element or attribute


Sorry I was a bit unclear.

I am generating a XSLT stylesheet from an XML file that looks like this.

<path>//tagname</path>
<path>//@attributename</path>

some point to attributes and some pointing to elements.
I want to generate the following template match rule for an XPATH pointing to a element

<xsl:template match="//tagname">
	<TagOperation>
</xsl:template>

and

<xsl:template match="//@attributename">
	<AttributeOperation>
</xsl:template>

for an XPATH pointing to an attribute.

Sorry for the confusion


Edward

 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]