Subject: RE: determining whether an XPATH points to an element or attribute
From: Edward.Middleton@xxxxxxxxxxx
Date: Wed, 23 Jan 2002 17:44:37 +0900
|
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
|