I want to display XML document with XSLT by following this example from w3schools: http://www.w3schools.com/xml/xml_xsl.asp. The XSLT transformation to HTML will be done in the browser when opening the XML document.
Now, I have difficulties a) getting the local name and 2) getting the namespace of the attribute content of type QName in two separate expressions.
Example
<service xmlns:ns3="http://www.mycompany.com/" name="ns3:PersonService">
<serviceInterface name="ns3:PersonServiceInterface">
<operation>...</operation>
</serviceInterface>
Questions
- What XPATH expression will return PersonService as content of attribute name?
<xsl:value-of select="@name"/>
returns ns3:PersonService but i don't want the namespace prefix. - What XPATH expression will return http://www.mycompany.com/ as the namespace of the attribute name?