XML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming Languages - MoreXML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old May 12th, 2011, 06:05 PM
aspekt9 aspekt9 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2006
Posts: 34 aspekt9 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 h 42 m 19 sec
Reputation Power: 7
Link two DTD files?

Hey guys, I'm trying to linke two DTD files together for an assignment. We have to split one DTD file into two separate files, one containing all the elements, the other containing all the attributes and we're supposed to use external parameter entities to link the attributes to the elements DTD but I'm having issues with it, could anyone help me with the syntax?
Thanks

Reply With Quote
  #2  
Old May 17th, 2011, 07:55 AM
roryhay roryhay is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2011
Posts: 1 roryhay User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 15 m 57 sec
Reputation Power: 0
linking 2 dtds

The types of general entities include:

* INTERNAL (PARSED)
* EXTERNAL (PARSED)
* EXTERNAL (UNPARSED)


INTERNAL (PARSED) GENERAL ENTITY Declaration:

Internal parsed entities generally reference text. The correct definition is that they refer to data that an XML processor has to parse.

<!ENTITY name "entity_value">


where:

* entity value: any character that is not an '&', '%' or ' " ', a parameter entity reference ('%Name;'), an entity reference ('&Name;') or a Unicodeglossary character reference.

Example:

<?xml version="1.0" standalone="yes" ?>
<!DOCTYPE author [
<!ELEMENT author (#PCDATA)>
<!ENTITY js "Jo Smith">
]>
<author>&js;</author>


Hope that helps you.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreXML Programming > Link two DTD files?

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap