Jump to content
vickas

xml/xslt

Recommended Posts

In an xml i could find a line as follows /fasd/Comml[LocRef=ID_1",TypeOf ='Dealer]/ amt what does it mean ?? are 'LocRef' & 'TypeOf' test conditions so as to enter into 'amt' tag ?? (or) r these sub elements of comml ?? ( or) r these attributes of comml ? ( or can this be considered as an array form in xml ? if so , how to write a xsl for this scenerio ?

Share this post


Link to post
Share on other sites

Well there are many XML formats with different semantics, the snippet you have posted does not even look like the markup of XML as it has no tags, so it is certainly not possible to tell which XML format you use and which semantics it has. The expression

/fasd/Comml[LocRef="ID_1",TypeOf ='Dealer']/amt

could be an XPath 2.0 expression however that selects node in an XML document where the root element named "fasd" has child element(s) named "Comml" which have a child element named "LocRef" with the value "ID_1" or/and a child element named "TypeOf" with the value "Dealer" and where finally the expression selects the child elements named "amt" of the "Comml" elements.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...