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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: uura
  • Order by date
  1. uura

    Good book suggestion

    I second the WROX XML book recommendation. Beginning XML is good high-level coverage of most XML-related topics. The XSLT Programmer's Reference has saved my job a few times. Uura ~~~~ "Common sense tells you that the world is flat."
  2. uura

    XSL and namespace

    You just have to define the namespace in the root element of your XSL file. <xsl:stylesheet xmlns:xsl=&quot;http://www.w3.org/1999/XSL/Transform&quot; xmlns:space=&quot;www.namespace.com/example&quot; version=&quot;1.0&quot;> Then use the namespace prefix when matching elements. <xsl:variable...
  3. uura

    XML Parser Shareware

    The only free C (not C++) parser I've read about is expat. You have a lot more choices with C++. I haven't used it and have no contacts that have tried - so no recommendations here, but for FWIW... http://www.jclark.com/xml/expat.html Uura ~~~~ &quot;Common sense tells you that the world...
  4. uura

    XSLT - Empty line top of file

    Maybe if you provided the XML and XSL we could be more helpful. Uura ~~~~ &quot;Common sense tells you that the world is flat.&quot;
  5. uura

    XML newbie

    A book on XHTML might be handy, but in all likelyhood you'll be taking XML data and using XSLT to transform it into HTML or XHMTL (your choice). It's good XML practice to use XHTML since it will be a well formed document (all open tag have corresponding close tags, etc.). It truth there isn't...
  6. uura

    XML + Image

    I'd recommend you go with Tarwn's idea. Store some identifier or even the filename (if you're only using the XML document locally) and have the XSL create a link. That's what's usually done around here when generating HTML pages. Uura ~~~~ &quot;Common sense tells you that the world is...
  7. uura

    complextypes and restrictions

    I'll second the WROX recommendation that Nosferatu made. The XSLT Programmer's Reference has saved my sanity more than once. Uura ~~~~ &quot;Common sense tells you that the world is flat.&quot;
  8. uura

    XSL : make a markup as a constant

    The parser thinks you're adding tags when you are really just adding text. Try escaping the &quot;<&quot; at least, using &lt; I don't think you need to escape anything else. Uura ~~~~ &quot;Common sense tells you that the world is flat.&quot;
  9. uura

    how do you save changes to xml document

    The previous poster is right. You have to write the file back in order to save it. You probably don't need to reload it if you made the changes to your document object. It should still be valid. Uura ~~~~ &quot;Common sense tells you that the world is flat.&quot;
  10. uura

    Parseing XML

    You have the addition problem of namespace prefixes on your data types. You should check your parser documentation for how to get namespace prefixed elements out of an XML Document. The three parsers I've looked at do this in very different ways. Which DOM parser are you using? Under MSXML...
  11. uura

    How to Comment in XML

    Be advised that XML does not require parsers to retain comments in XML documents. Some will, since COMMENT_NODE is a valid node type, but a lot of parsers just strip comments. Just make sure that anything in comments inside XML is not relevant to others who parse the document. They may not...
  12. uura

    Schema definition

    The Professional XML Schemas book from WROX publishers is an excellent reference for XML Schema. It's a little rough to get through at first, but great at answering these questions when they come up. Uura ~~~~ &quot;Common sense tells you that the world is flat.&quot;
  13. uura

    XML Xerces Validation using SAXParser &amp; Schema

    Be careful with schema generated from XMLSpy. Their schema generator is good compared to others, but still often makes bad assumptions about your data model. Look especially for attributes and values that are handled by enumerated lists where you really just wanted any xs:string or xs:NMTOKEN...
  14. uura

    Sending xml data via SOAP(http) from asp.NET

    SOAP was originally created to do RPC (Remote Procedure Call) and the syntax is in just about every SOAP reference you can find. SOAP will work without WSDL and all the other web services hoopla. You're basically right, you just need to place the XML data into the SOAP envelope and send it...
  15. uura

    Reusing XML Data

    Don't know your environment or requirements, but there are a few decent free parsers that do most of the latest stuff. I haven't worked with too many older parsers (read - over a year old), so I'm afraid I can't talk to the differences. Sorry. Uura ~~~~ &quot;Common sense tells you that...
  16. uura

    comparing 2 XML files

    I don't know if this is your problem, but in the first 'when' element: <xsl:when test=&quot;count(PERFORMER/@CID) = 1&quot;> This is true when the number of PERFORMER element that have a CID attribute is equal to 1. I don't think this is what you're after here. As to your problem - This is...
  17. uura

    A newbie question regarding the &lt;xsl:apply-templates&gt; element.

    If no template is specified in an XSL document for an element, a default rendering is performed. The default is just printing out the text contents of the element. In your case, there is probably no difference between using apply-templates and value-of, but if the XSL designer just wants the...
  18. uura

    Reusing XML Data

    If you are building pages using XSLT and keep the common information fairly small, you could just include the files as variables in your display XSL file. <xsl:variable name=&quot;commonNav&quot; select=&quot;document(<filename>)&quot;/> Then access the data using standard variable syntax...
  19. uura

    Minimize XSL Code

    In each table element, you select all questions for that date, but only do something with the first (position()=1). Why not just select the first element and save yourself all the looping time. Don't know how much time it will save you, but if there are a lot of questions, it may be what is...
  20. uura

    Namespace in XML schema

    In addition to specifying the 'targetNamespace' attribute in the xs:schema, our parser always insists on our also specifying 'xmlns' equal to the same value. That way it assumes all elements below are in the given namespace unless otherwise prefixed. Of course, all schema elements now require...

Part and Inventory Search

Back
Top