Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

extract tag info

Status
Not open for further replies.

candydu80

Technical User
Joined
Aug 21, 2008
Messages
4
Location
US
How to extract the unit info, "in", from this tag
<structureHeight units="in">? Is xsl:text the right command to use? Any help is highly appreciated.
 
Another question about the tag, how come xsl can't read the root tag <CS:name>.XSL can't seem to locate the child nodes within this tag. Is it because of the ":"? Thanks in advance for any help.
 

Like this - the @ describes the attribute.

Code:
//structureHeight/@in

 
[0] [tt]@[red]units[/red][/tt]
[1]
>how come xsl can't read the root tag <CS:name>.
You've to declare what CS stands for as prefix for the namespace - the namespace as defined in the xml document where xsl document is applied to.
 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Sponsor

Back
Top