DTD Element Definition Question.

Is it possible to define an ELEMENT in a DTD that limits what values that can be entered in the ELEMENTs text? For example, I want to limit what can be put in the ELEMENT Hazard to the text values of "Yes" or "No" and nothing else can be entered.
1) <!ELEMENT Hazard ('Yes' | 'No') >
or
2) <!ELEMENT Hazard (Yes | No) >
In example 2, don't 'Yes' and 'No' need to be elements themselves? And if so, then this is not what I want. I need to limit the Hazard tags text value to only be "Yes" or a "No":
<Hazard>Yes</Hazard>
or
<Hazard>No</Hazard>
No other text values can be entered.
Any help would be appreciated!

To do what you want you need to use an empty element and an attribute which you can enumerate. Ex: <Hazard state="YES"/>
<!ELEMENT Hazard EMPTY>
<!ATTLIST Hazard
STATE ( YES | NO )>
Oracle XML Team
null

Similar Messages

  • Importing element definition from an  EDD into a template - does not work

    FM 10.0.1 German on Windows XP SP3.
    When importing the element definitions from an existing EDD into an existing template, FrameMaker converts the template into a  new EDD.
    So the element definitions which are correctly defined do not appear in the template.
    The highest level element is than ElementCatalog in the template and not the higherst lvel element defined in the EDD.
    In FM9 this was no issue.
    Any help is appreciated, I have a deadline and must do some changes in the EDD.
    Best Regards
    Thomas

    Lynne,
    EDD is english (Version FM7.0), Interface language is German.
    Maybe it´s a localization issue.
    I have attached a captivate demo pdf so you can see what happens and the
    defective EDD.
    Mit freundlichen Grüßen
    Best Regards
    Thomas Zeisig
    From:   Lynne Price <[email protected]>
    To:     "Th. Zeisig" <[email protected]>
    Date:   13.10.2011 14:12
    Subject:        Importing element definition from
    an  EDD into a template - does not work
    Re: Importing element definition from an EDD into a template - does not
    work
    created by Lynne Price in FrameMaker Structured - View the full discussion
    Thomas,
      No question the behavior you describe is a bug. However, I am unable to
    duplicate it. I created an EDD with two element definitions:
    Element (Container): doc
      Valid as the highest-level element.
      General rule:  (
      When I imported element definitions from this EDD into a new portrait
    document, FM reports that element a is referenced but not defined and that
    b is defined but not referenced. However, with all elements listed, the
    element catalog shows a, b, and doc. The metatemplate elements are not
    available.
      I wonder if this is a language-dependent problem. Is your EDD German or
    English? What about your user interface?
      Can you send me a short EDD that fails as you've described?
      Thanks,
          --Lynne
    Replies to this message go to everyone subscribed to this thread, not
    directly to the person who posted the message. To post a reply, either
    reply to this email or visit the message page: [
    http://forums.adobe.com/message/3969067#3969067]
    To unsubscribe from this thread, please visit the message page at [
    http://forums.adobe.com/message/3969067#3969067]. In the Actions box on
    the right, click the Stop Email Notifications link.
    Start a new discussion in FrameMaker Structured by email or at Adobe
    Forums
    For more information about maintaining your forum email notifications
    please go to http://forums.adobe.com/message/2936746#2936746.

  • Error Message "Text Element definition is not valid"

    Hi , on trying to display workflow in pftc_dis or spdd , I am getting the eror "Text element definition is not valid".
    On debugging further , I found that the method cl_swf_cnt_factory=>create_swd_task_container does not return the workflow container elements i.e. the value passed to the parameter ex_task_container of the above method returned is blank.
    However the same method returns the values for the workflow which is getting displayed correctly.
    We have done an upgrade from 4.6B to ECC6.
    Please let me know what could be the reason behind it and is there any note to overcome it or do we need to retransport it again.
    Thanks and Regards,
    Aman

    at first, the error you are getting is from the method, just check after upgrade if there is any change in the method. and see why it doesnt return the value.
    also check the binding properly from workflow to method.
    there is no oss notes for the same, i would require more info abt the workflow whether a standard or custome.
    In case of custome if the method returns possible null value, then create a custom method and call this method inside and handle the return appropriately so that the workflow always expect a value back.
    I beleive since workflow is expecting a value and it is unable to get values at times is causing this error.
    Regards,
    Raj

  • Change of Project & WBS Element Definition

    Hi,
    Could you please let me know is there any function module to change the Project Definition ,WBS element Definition for an already existing Project and WBS element.
    Regards,
    Hemu Saini.

    BAPI_BUS2054_CHANGE_MULTI      for WBS
    BAPI_BUS2001_CHANGE                  for Project
    Regards,
    Chandra

  • How Can Get DTD elements/Attribute In java

    Dear Friends,
    I want to get DTD Element in java Like by using DOM parser we can get Elements/Attribute in XML.
    <!ELEMENT author (#PCDATA)>
    <!ATTLIST author
         id (2 | 4 | 6) #REQUIRED
    >
    <!ELEMENT book (author, page)>
    <!ATTLIST book
         id (1 | 2 | 3 | 4) #REQUIRED
         name CDATA #REQUIRED
    >
    <!ELEMENT library (book+)>
    <!ELEMENT page (#PCDATA)>
    By Example
    i wants i can get elements library -> childs are book
    book child have Attributes id and name..
    how can i get .
    pls help me
    with regards
    Siddharth singh

    Build an XML-ORM then integrate it into the DOM, then have a nice day.

  • Dynamic Query in Element Definition

    Hi All,
    I am using SiteStudio 10gR4 Designer, i have placed a query in element definition, since the query is auto generated from content server so it is specific to node ID, now i want to use it for other node IDs as well.
    Just to clear out i want to use the same element definition for different sections without displaying the datafiles related to other node IDs. I need to make the query in element defination generic.
    Eg.:
    xWebsiteObjectType <substring> `Data File` <AND> xWebsiteSection <substring> `test:30` <AND> xSubType <substring> `SideNavigation`
    I want to replace `test:30`so that the query becomes generic.
    Thanks.
    Edited by: user3919522 on Jul 19, 2010 11:43 PM
    Edited by: user3919522 on Jan 7, 2011 6:22 AM

    Simple. Just put in idoc for the siteId and nodeId:
    xWebsiteObjectType <substring> `Data File` <AND> xWebsiteSection <substring> *`&lt;$siteId$&gt;:&lt;$nodeId$&gt;`* <AND> xSubType <substring> `SideNavigation`
    Good luck, and please award points as necessary.

  • Unable to define element definition in Site Studio

    Hello guys,
    I'm using SiteStudio and UCM 11g and trying to make a news site. I follow this tutorial's instructions, but after i try to add an element definiton, i cannot see it on project again. I mean the element definiton that i try to add couldn't be added actually. Does anybody have an idea about this problem?
    Helps will be appreciated.Regars
    Erdo

    So, I assume that we speak about SSXA and JDev IDE.
    First of all, you should find out where is the problem (what metadata is missing/is not configured). My guess is that it will be Web Sites (xWebsites). This parameter can be best influenced from JDev by selecting the site you want to work with in the upper-right corner of the Site Assets section in the JDev (you might find the text +( No Sites Specified)+ there ). Note that you must have a Site Studio Connection created and must be logged in to make this work (since you can create the element definition I assume that you have your connection ready).
    Of course, like with any other metadata you may also specify the metadata later via Advanced Checkin, but since it should not be necessary to do it that way.
    The other parameter, Web Site Object Type, will be selected for you by JDev, depending on the object you want to create.

  • Using a Site Studio 10R4 Dynamic List Element Definition

    Hi All,
    I've created and can use a Static List Element Definition > Region Definition > Region Template with no problems based off of the 10gR4 samples.
    However, there is no example that I've found to utilise the Element Definition of a Dynamic List. I'm attempting to use the same sample code as provided for a Static List but having no luck displaying the results of the query...
    Does anyone have some sample code used in a Region Template or Sub Template to show how we use a Dynamic List Element Definition please?
    I noted from another thread in this forum that there are some iDoc calls to make which load the query defined in the Element Definition... I can't find any documentation regarding this either.
    Thanks
    Edited by: user615721 on May 4, 2009 10:08 AM
    Edited by: user615721 on May 4, 2009 10:09 AM

    Found my answer in another thread, here... Re: Using a Site Studio 10R4 Dynamic List Element Definition
    'For 10gR4 Site Studio you can get examples and even a video talking about making dyanmic lists from here:
    http://www.oracle.com/technology/products/content-management/ucm/SiteStudio10gR4Tutorials/index.html'
    Edited by: user615721 on May 4, 2009 10:25 AM
    Edited by: user615721 on May 4, 2009 10:25 AM

  • Hidden Assets like element definition, region definition from site studio designer

    Hi Experts,
    I am facing problem in Site Studio Designer, I have created a new Website and Created Page Template and when i tried to create the site assets like element definition, region definition, region templates. It's visible and when i refresh the list or change the list from element definition to region definition and again open the tab of element definition, the definition list removes or hide from the list in Site Studio Designer and when i check the content server for the same region definitions, element definitions all are present in content server but hides from site studio designer. Can any one please help me out resolve this issue i am unable to edit any assets.
    Thanks,
    Vijay

    First, the Override Editor CSS is ONLY used to change the CSS for the contributor editor. For instance, if you have a div tag that encompasses the entire website and specify it to be center-aligned, everything within your WYSIWYG editor will be center-aligned too (not ideal). So you could, for instance, use the Override Editor CSS to have the same div class that overrides the text within the contributor to be left-aligned.
    As far as not being able to apply the CSS, I'm not too sure. You should at least be able to create a completely blank HCSP layout page, and see that no classes are available (because there is no CSS on the page). When you have a CSS, I've found that the classes loaded aren't always necessarily the ones that are in the CSS. My recommendation is to select "Allow selected classes", ONLY use the "additional classes", and type in the classes you want to show up in the CSS WYSIWYG dropdown. That's the only way I've gotten it to work.

  • Sorting dynamic listing by element definition field.

    Hi,
    Does any one know how to sort a dynamic listing by one of the regional definition field?
    My situation is currently sorting is done by dDocTitle (<!--$SortField = "dDocTitle"-->). The title that is displayed in website(h1) has a different title from dDocTitle. So although it is sorting by dDocTitle, it looks random in the live website.
    So I was wondering if there is a way to sort dynamic listing by one of the element definition field.
    I was hoping that something like this will work but it didn't
    <!--$SortField = ssIncludeXml(dDocName,"ContentPage/Title/node()")-->
    Thanks.
    Edited by: K0907163 on 23-Nov-2011 03:00

    Wish there was a way, but unfortunately I don't think there is without building your own custom sort. SortField only takes metadata fields.
    My suggestion is to have your users actually use dDocTitle (or a different metadata field), as opposed to ContentPage/Title/node().

  • Client Definition Question

    I asked this question in another forum here, got some helpful feedback and a recommendation to post the question here as it might be more fitting for some in this group.
    In getting ready to teach a class, I've been putting together my set of SAP terms and getting ready to explain them to the class. I've been cross referencing the SAP Glossary and other sources to try to give as correct a definition as possible. In looking at these, one element I've been wondering about is the SAP definition of a client within SAP ERP.
    The SAP glossary defines client as "In commercial, organizational, and technical terms, a self-contained unit in an SAP system with separate master records and its own set of tables." I find the last phrase in that definition (which I've italicized) to be puzzling. In an instance where multiple clients are sharing the same underlying database, each client does not have its own set of tables. To my knowledge that's not a required element of a client. (That's why the mandt field is so common in tables.)
    So...why is that phrase a part of the definition and what is SAP intending it to mean?  Is a distinction being drawn here between logical segregation of content (vs. actual segregation)? Or is there something here that I'm just not understanding?
    As an example of what I'm talking about, if we have one instance of SAP ERP that has multiple activie clients, and If we were to take table T001 which contains company code information mapped to a particular client, wouldn't all the clients in that instance be sharing that same table?
    I realize that logically if one uses transaction SE16 to view the table from within SAP ERP, only the information for the client one is working within is shown. My thinking had been that if one were to look at this table directly in the DBMS, the table would show all of the clients active within this instance. So in that sense each client is using the same set of tables with logical segregation of data based on the MANDT field. (i.e. if I had 3 clients running on one SAP instance tied to an Oracle backend, the backend would not have 3 totally independent databases for each client.)
    Am I missing something here, or is the definition of client a bit misleading?

    Hi Tony,
    Pity that your question did not get a reply in more than two weeks.
    I am happy to say that I have never come across the "its own set of tables" statement. Whoever wrote that is either ignorant or a victim of a very bad mistranslation. A client is a logical "subdivision" of the data stored in a SAP database. I'm not old enough to confirm this, but when I started at SAP I was told that the client concept came from the time when several companies shared a single database on some large central mainframe and obviously could not be allowed to see each other's business data. Today the use of a client is different, e.g. it provides for separation between customizing and sandbox clients in a development system, or between say test and training clients in a QA system.
    Technically all clients share the same set of tables. A "client-dependent" table has the characteristic that its first field (and the leading field of its primary key) is always the client number. The "client-dependent" attribute is maintained in the SAP dictionary. When an ABAP program contains a statement like "SELECT * FROM TAB" and TAB is client-dependent, the DB interface in the kernel will automatically convert this to "SELECT * FROM TAB WHERE MANDT = "<client>". An SQL trace (ST05) of a simple business transaction will reveal this behaviour immediately.
    Not all tables are client-dependent, some are cross-client, i.e. their data is visible to and shared by all clients in the system. As a rule, all master/transaction tables are client-dependent, while system tables containing instance-specific rather than business-specific data (e.g. the list of printers) are cross-client. Customizing tables are mostly client-dependent but some are cross-client (I'm a technical consultant so I can't really tell you why that is).
    You are perfectly correct that if you look at a table at database level rather than through SE16, you would see records for all clients residing in the same table. Incidentally the same can be achieved in ABAP by adding the CLIENT SPECIFIED option to the SELECT statement but the code of business transactions must of course do no such thing.
    Also, the client concept is not specific to Oracle so the advice to post the question on the SAP/Oracle forum seems a little misleading. SAP implements the client concept regardless of the underlying database.
    Hope this clarifies things,
    Mark

  • Standard Client definition question

    In getting ready to teach a class I've been putting together my set of SAP terms and getting ready to explain them to the class.  I've been cross referencing the SAP Glossary and other sources to try to give as correct a definition as possible.  In looking at these one element I've been wondering about is the fairly universal definition of a client. 
    The SAP glossary defines client as "In commercial, organizational, and technical terms, a self-contained unit in an SAP system with separate master records and its own set of tables."  I find the last phrase in that definition to be puzzling.  In an instance where multiple clients are sharing the same database each client does not have its own set of tables.  To my knowledge that's not a required element of a client. (That's why the mandt field is so common in tables.)
    Is a distinction being drawn here between logical segregation of content (vs. actual segregation)?  Or is there something here that I'm just not understanding.
    Thanks.

    Tony,
    Ah, you were talking about the underlying DBMS engine, not the application.
    When SAP is talks about tables, they are talking about the data structures within the application.  Clients do not share these tables (well, there are a few client independent tables).
    I misunderstood your original question. You are talking about the underlying DBMS, which also stores data in tabular form.  Yes, the DBMS structures do store data from multiple clients.
    When SAP passes requests for action to the underlying DBMS, such as oracle, the application 'knows' where the data is stored, and uses the keys generated within the app to perform reads and writes on the databases.  
    I am not a Basis expert, so I can't speak with authority about T001 or other specific SAP tables, and it's relationship to the underlying database.  You might want to post your question in one of the more techie forums such as
    SAP on Oracle
    Regards,
    DB49

  • CDATA element definition

    Does anyone know how a CDATA element should be defined in DTD file so that DOMParser
    will recognize it? I have the following problem: when I define in a DTD file something like
    <!ELEMENT mytag (#CDATA)>
    the DOMParser throws SAXParseException, although it seems to be the correct syntax.
    Another question: given a DOM Node, how can I get a string representing the document
    fragment stored in the tree starting at this node?
    /Sasha

    Of course, it works with PCDATA, but the point is that I want the element's content
    to be unparsed.

  • PS Elements 10 question

    I just purchased photoshop elements 10 and I am really struggling trying to figure out how to use it. I owned PS elements 4.0 for years and I was quite savvy using it. I have read through the manual and searched the internet but I cannot find answers to my questions. My toolbar is basically useless.
    As you can see it has only 8 tools. The type tool is not even on there and I can't seem to find it. So .... question 1 - what happened to the toolbar, how do i get it back?
    Secondly the program will not let me do anything with layers to my photos that I have on there. No duplicating, adding, removing, or merging layers. Why wont it let me? Please help, I would really appreciate it! 

    You'll probably get more complete answers in the photoshop elements forum, but it's looks like your in the Qiuck Edit mode.
    Press the Full button to get to the full edit mode.
    http://forums.adobe.com/community/photoshop_elements?view=discussions
    Added: i see they already moved your question from the full photoshop forum to the elements forum.
    Message was edited by: R_Kelly

  • Trial version of elements have question

    Hello. After trying to load premiere elements 8 on my old pentium 4 machine and not working, I tried loading Premeier elements 7 trial version and it works fine. I have one question. The trial version banner is covering my screen when I'm watching videos. Can I take it off?
    Thanks Gib

    You're most welcome. We'll be interested in seeing the details on your laptop, and also what you find with Event Viewer. It is most likely that you will have a bunch of error and warning messages, just before the BSOD. Some will just have useless code, but some should have links. Hopefully, a few of those links will unlock the mystery of exactly what is happening to cause your BSOD. Do follow all links, but know that some might also be useless code. Do not ignore any of the error, or warning messages and patiently read all info contained within.
    One likely culprit for the BSOD is a major driver conflict, though that is just one of possible causes. There are many, many more possibilities.
    Hunt

Maybe you are looking for