This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: determining whether an XPATH points to an element or attribute
- From: Edward dot Middleton at nikonoa dot net
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Wed, 23 Jan 2002 17:44:37 +0900
- Subject: RE: [xsl] determining whether an XPATH points to an element or attribute
- Reply-to: xsl-list at lists dot mulberrytech dot com
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