Jump to content

ellc

Members
  • Content Count

    12
  • Joined

  • Last visited

Community Reputation

0 Neutral

About ellc

  • Rank
    Newbie
  1. Hi,Situation:Well, I have a xsl file that calls out to a function in my script.js once user click on a URL datatype display on my xml document.The thing here is while I wanted to run the scipt.js to pop up a window using XMLDOM, and display sub-elementbeneath the URL. I display instead everything !Here's what I mean base on my XML structure:MyBook Books (includes simple my personal infor such as name, address, telephone) book1 (includes simple infor such as author, isdn, title) topics1 subtitle of topics suburl for other related topic topics2 subtitle of topics suburl for other related topic topics3 subtitle of topics suburl for other related topic book2 . . .What I want:1.Broswer Display my personal info (got problem with setting with font size though so i replaced with h1, h2 though, any suggestions how do i set font size ?) *SEMI ACHIEVE2. Browser display All book name with their info *ACHIEVED3. URL to open up the of topics of this book displaying subtopics and suburl (able to link to another site) of that particular topics4. Only variable I pass from Browser was the name of the topics being choose.5. End up I display all the subtitle of subtopics and their link (in this case all 3 topics infor are display instead. *duh! )Anyone care to share some insights or clear some doubts ?
  2. ellc

    Xml Schema + Xml Docs

    Hi,Thanks for responding to my enquiry..I have 4 files together working namely (.xml, .xsl, .xsd, .js)1. xml display first & second level of detail of an element. (valid and working fine)2. xsl able to display the output that i want.3. xsd is firing well also (validate with my xml via xmlme.com/validator.aspx)4. in the browser displaying first & second level element,under second element shows a hyperlink which pass value of third level element unto .js5. this .js function suppose to pop out a window created in XMLDOM.6. poping out of window using template given was window.open('','',width=123, height=456, scrollbars=yes, noresize');7. problem now not sure if js can receive my value pass from xml docs and new window doesnt open up.
  3. ellc

    Xml Schema + Xml Docs

    Hi,Thanks for the reply I got it works by the way.. to run a JS, script in XML what are the conditions?I include my code xmldoc.load "myxml.xml" in my script.js but there wasnt any respond.Expected respond to hyperlink from my xml docs in the browser where I insert data types as anyURL.I even validate both my schema and xml file it was validated.Any settings on my browser required to activate a pop up window generating from clicking the hyper link ?Regards & God Bless, ellc
  4. ellc

    Javascript & Dom

    Hi,Is Javascript able to used for creation of DOM from XML Docs & display in the browser as a pop out window ?
  5. Hi Ingolme,Thanks for replying..As you may have seen I had embarasse myself and displaying a true amatuer of XML.But having say so I need to accomplished as part of my assignment with zero XML foundation.To link XML, XSD XSL, JSP al together whereby XML docs able to pop out a window (generated by .JSP script I guess).And the poor thing is I had desperately tried for weeks before due that on april 2th 09
  6. Hi,Does anyone knows how to link a variable from xml from XSL ?Eg: <xsl:value-of select="subpages/subpage/subtitle"/>I like the value of subpages (which is a web address in my .xml file) to link to another web addressI had check my schema for subURL:<xs:element name="subURL" type="xs:anyURI"/>
  7. Hi,Anyone knows how to insert/ link Javascript (.jsp) intol xml file ?Regards & God Bless, ellc
  8. ellc

    Schema Basic Syntax

    Hi,I am at a loss of what to do. Basically I like to structure my docs in such a way thatSchema Name: Bookmarks.xsd with sub bookmarksSub bookmarks includes: Rating, Title, URLSub Sub Bookmark Under URL(Called Subpage) includes: Subpages, subURLI tried with below code it just doesn't work.___________________InfoAuthorIdCompanyYearShortDescription__________________<?xml version="1.0"?><xsd:schema xmlns:xsd = "http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.w3schools.com"elementFormDefault="unqualified" attributeFormDefault="unqualified"> <xsd:element name="Mybookmark"> <xsd:element name="info" type="xsd:string"/> <xsd:element name="author" type="xsd:string"/> <xsd:element name="id" type="xsd:string"/> <xsd:element name="company" type="xsd:string"/> <xsd:element name="year" type="xsd:integer"/> <xsd:element name="shortdescription" type="xsd:string"/> <element name="Bookmark"> <complexType> <sequence> <xsd:element name="rating" type="integer"/> <xsd:element name="title" type="string"/> <xsd:element name="URL" type="string"/> <xsd:element name="postdate" type="xmp:date"/> <complexType name="subpages"> <sequence> <xsd:element name="subtitle" type="string"/> <xsd:element name="subURL" type="string"/> </sequence> </complexType> </sequence> </complexType> </element> </xsd:element><complexType name="Bookmarks"></complexType ></xsd:schema> :(Regards, ellc
  9. ellc

    Xml Schema + Xml Docs

    Hi Boen_Robot;Don't really get what you mean by smart code.. I edit those code in notepad though.Erm.. On looking carefully I get what you mean betwwen those double code < " > it just that I used normal keyboard from my laptop that's all. another thing I realised after passing those validator machine, I get funny character (chinese wording type, Eg: 攛, 攈) don't really knows what it means. And my .xsd heading becoming - <?xml version=?.0?>Q1. Any idea what is that ? Any Impact on the subsequent output ? What is the significance of it ?Q2. Do you think if I used xmlspy editor will be much easier (Well-Formness & Validating purpose) ?Q3. How do i check if my XSL is valid ? Q4. Not sure if this is the right location to pose this, anyway I needed to write a script language to open up a pop up windowfor the URL link provided in my xml docs, how can I insert those javascript (script.js) languaes into xml ?
  10. ellc

    Xml Schema + Xml Docs

    Hi boen_robot,Thanks for replying. I tried the validator (www.xmlme.com/validator.aspx) but couldn't really figure out what its trying to explained in the error portion.My bookmark.xml Heading:<?xml version="1.0"?><document xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="bookmark.xsd">My bookmark.zsd Heading:<?xml version=”1.0”?><schema xmlns=”http://www.w3.org/2001/XMLSchema” targetNamespace="http://www.w3schools.com" elementFormDefault=”unqualified” attributeFormDefault=”unqualified”> The error indicates at Line 1 position 15 which I look at both files (.xml & .xsd, seems ok to me)[XML Error: System.Xml.XmlException: '”' is an unexpected token. The expected token is '"' or '''. Line 1, position 15. at System.Xml.XmlTextReaderImpl.Throw(Exception e) at System.Xml.XmlTextReaderImpl.Throw(String res, String[] args) at System.Xml.XmlTextReaderImpl.ThrowUnexpectedToken(String expectedToken1, String expectedToken2) at System.Xml.XmlTextReaderImpl.ParseXmlDeclaration(Boolean isTextDecl) at System.Xml.XmlTextReaderImpl.Read() at System.Xml.XmlTextReader.Read() at System.Xml.Schema.Parser.StartParsing(XmlReader reader, String targetNamespace) at System.Xml.Schema.Parser.Parse(XmlReader reader, String targetNamespace) at System.Xml.Schema.XmlSchemaCollection.Add(String ns, XmlReader reader, XmlResolver resolver) at System.Xml.Schema.XmlSchemaCollection.Add(String ns, XmlReader reader) at Validator.Button1_Click(Object sender, EventArgs e)]- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  11. ellc

    Xml Schema + Xml Docs

    Hi,Anyone knows the proper syntax for inserting into Xml Docs ?Eg: I have an xsd name marker.xsdI tried >> <xmp:document xmlns:xmp="bookmark.xsd" then View XML file from my browser it looks ok, but when I tried to validate it on xmlme/validator it prompts error.Q1: How can I check individually my Schema is working before 'integrate it with any xml docs ?Q2: What would be the proper syntax to insert .xsd into xml files ?Regards, ells
  12. Hi everyone,Me being a newbie in XML trying to learn 'speaking' the language. Should any of my questions sounds absurd to you please bear with me :)Anyway I read so much of the advantages of XML technologies. (Portability, Extnsible etc etc..)1. How do I actually get started with an XML application (Eg; Learning those Hellow World as of other languages)?2. Do I need to have a data source running (Eg: Database, Web Services) in order to run XML ?Regards, Ellc
×
×
  • Create New...