Jump to content

Search the Community

Showing results for tags 'namespace'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • W3Schools
    • General
    • Suggestions
    • Critiques
  • HTML Forums
    • HTML/XHTML
    • CSS
  • Browser Scripting
    • JavaScript
    • VBScript
  • Server Scripting
    • Web Servers
    • Version Control
    • SQL
    • ASP
    • PHP
    • .NET
    • ColdFusion
    • Java/JSP/J2EE
    • CGI
  • XML Forums
    • XML
    • XSLT/XSL-FO
    • Schema
    • Web Services
  • Multimedia
    • Multimedia
    • FLASH

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests


Languages

Found 4 results

  1. I'm doing some code generation, and for coding reasons, I want to derive from the same base type for all of my XSDs. So this works: <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified" version="1.02"> <xs:include schemaLocation="MessageBase.xsd"/> <xs:element name="ServiceRequest" type="ServiceRequestType_VersionInfo_Request"/> <xs:complexType name="ServiceRequestType_VersionInfo_Request" mixed="true"> <xs:complexContent> <xs:extension base="MessageBase"> <!-- insert schema definition stuff here --> </xs:extension> </xs:complexContent> </xs:complexType></xs:schema> In another file, I have this: <?xml version="1.0" encoding="UTF-8"?><!-- edited with XMLSPY v2004 rel. 3 U (http://www.xmlspy.com) by VeriFone, Inc. (VeriFone, Inc.) --><xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified" version="2.5"> <xs:complexType name="MessageBase"/></xs:schema> But I need that first file in its own namespace. If i set a "targetNamespace" on the first file (to put it in its own namespace), then it complains it can't find the MessageBase complexType. I'm not sure what I'm doing wrong. Any ideas?
  2. 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:13:51 2010</tag></HostProperties>...</ReportHost>...</Report> And here is relevant portion of the XSLT that I'm trying to use to assign "TestHostname" to an XSLT variable: <xsl:for-each select="Report/ReportHost"> <xsl:variable name="hostname" select="HostProperties/tag"/> Running this, the variable "hostname" is assigned all the information (Fri Jul 30 16:14:56 2010 00:00:00:00:00:01 Microsoft Windows TestHostname Fri Jul 30 16:13:51 2010). If I run it with the select expression "HostProperties/hostname" it returns nothing. How can I assign the xslt variable "hostname" the relevant data that is held in <tag name="hostname">TestHostname</tag> ? Unfortunately I haven't been able to find any information quite like this in any of the documentation or trainings I've seen.
  3. Hello all, I have following XML structure: <customlink xlink:href="anydoc.xml" xlink:title="a linked document">A document</customlink> How should an XML schema xsd-file look like that allows the xlink attributes? I've tried something like this: <complexType name="customlink" mixed="true"> <attribute name="xlink:href" /></complexType> But it doesn't work.
  4. atar.yosef

    Namespaces.

    Hello there!! Can someone here explain me clearly what are - in fact - the namespace concept in the XML language? Thanks in advance!! atar.
×
×
  • Create New...