Jump to content

jbru

Members
  • Content Count

    3
  • Joined

  • Last visited

Community Reputation

0 Neutral

About jbru

  • Rank
    Newbie
  1. jbru

    namespace?

    Chiming in here because I have a similar problem. My xml to be transformed is <cm:name>texthere</cm:name> I've added xmlns:cm="http://example.org" exactly as it is written to the stylesheet declarations as such <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" ... xmlns:cm="http://example.org"> And my xslt code is <xsl:variable name="var" select="cm:name"/> "var" is returned blank and I'm really at an impasse as to how to access this data. damaq, you might find this helpful: http://w3schools.invisionzone.com/index.php?showtopic=4
  2. Okay, I think I solved it myself after a lot of trial and error. This seems to have done the trick: <xsl:variable name="hostname" select="HostProperties/tag[@name='hostname']"/>
  3. Hi, So I'm hoping to get some pointers on identifying namespaces and data contained within them. I have the task of transforming some (to my mind at least) unusual xml and I've not been able to successfully navigate it. Here's an example of the xml: <Report><ReportHost name="SampleHostName"><HostProperties><tag name="End_Time">Fri Jul 30 16:14:56 2010</tag><tag name="mac-address">00:00:00:00:00:01</tag><tag name="os_name">Microsoft Windows</tag><tag name="hostname">TestHostname</tag><tag name="Start_Time">Fri Jul 30 16
×
×
  • Create New...