Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Multiple XSL via DOCTYPE

Status
Not open for further replies.

StevenCote

Programmer
Dec 5, 2003
2
US
I have one XML file and need to create several XSL files to style my XML different ways. I've seen several scripted ways to do this, but it seem to me this should be common place, ...part of XML.

I found that creating NEW XML's and using ENTITIES in the DOCTYPE would allow me do this.

Is this a valid practice? I've never seen it suggested.
I don't know allot about it... Kinda new to XML

It seems to work...

example:

<?xml version 1.0?>
<!DOCTYPE NewXML
[
<!ENTITY OriginalXML SYSTEM &quot;My.xml&quot;>
]>
<?xsl-stylesheet different style sheet?>
<XMLData>
&OriginalXML;
</XMLData>

If this kinda thing is ok I'm a happy camper...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top