Copy link to clipboard
Copied
With a fragement of XML something like this:
XmlName | gedcom | ||||||||||||||||||||||||||||||||||||||||||||||||
XmlNsPrefix | |||||||||||||||||||||||||||||||||||||||||||||||||
XmlNsURI | |||||||||||||||||||||||||||||||||||||||||||||||||
XmlText | |||||||||||||||||||||||||||||||||||||||||||||||||
XmlComment | |||||||||||||||||||||||||||||||||||||||||||||||||
XmlAttributes | |||||||||||||||||||||||||||||||||||||||||||||||||
XmlChildren |
|
How would I select the NAME.XmlText value WITHOUT selecting the NAME.SOUR.XmlText value?
This line in an xslt string produces the output "Ian Lee /SKINNER/@S01891@" Concatenating the NAME.XmlText and NAME.SOUR.XmlText values.
<xsl:value-of select="/gedcom/I001/NAME"/>
Copy link to clipboard
Copied
And two minutes after posting, I finally hit on the correct google search phrase.
<xsl:value-of select="/gedcom/I001/NAME/text()"/>
Does what I want. I kept trying ::text() in various forms.
Copy link to clipboard
Copied