QUOTE(sjthomas @ Mar 14 2005, 03:53 PM)
Nah its a DTD I want to use to control the schema not an XSLT. I have a DTD made up and some sample XML files but I'm not sure how, or even if its possible to link the XML parsing to the DTD.
See...the way you said it..."DTD" "Formatting" "display" in the same sentence made me think "He's looking for style sheets"...NOW it makes sense.
QUOTE(sjthomas @ Mar 14 2005, 03:53 PM)
For a bit of background on it. I'm going to start off offering one type of XML document but I hope to support others in the future when some standards come out fo rthe area, I'd like to be able to do this by just adding a DTD as opposed to chagning the code.
[right][snapback]24638[/snapback][/right]
So what you want to do..for example...output the 'same' xml document with a different doctype?Why couldn't you use a conditional(eg: if/switch statement)?As far as input...don't the XML features of php determine the doctype automatically from the file?
I'd have to sit down and play with the xml features to be of any specific help to you...and since I don't endorse php5..and php4's xml support is rather different...I doubt I can be of any specific help.