Subject: [xsl] XML IDREFs From: c p <bugs75il@xxxxxxxxx> Date: Fri, 4 Mar 2005 09:33:16 -0800 (PST) |
This is more of an XML question. I am going to make this simple and talk with specific example: I have 2 XML files one.xml and two.xml: one.xml ------------------------------------------------ <root> <myelement id="coke">content for coke</myelement> </root> ------------------------------------------------ two.xml ------------------------------------------------ <root> <text> Coke vs Sprite ... ... ... ... </text> <intxref refid="coke" label="Coke"/> <intxref refid="sprite" label="Sprite"/> <myelement id="Sprite">content for sprite</myelement> </root> ------------------------------------------------ I am validating both xml against a dtd and in my dtd the intxref element is defined like this: ------------------------------------------------ <!ELEMENT intxref ANY> <!ATTLIST intxref refid IDREF #IMPLIED label CDATA #IMPLIED > ------------------------------------------------ When I validate the two.xml file against the DTD, it errors out giving following message: "A reference to undeclared ID 'coke' has been found." Note that if I comment out the coke reference and leave just the Sprite one in, then it works fine as the Sprite reference is local within the file. How would I do a cross-reference with different xml files? Is there a way? Is it even possible? Thanks C __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] xsl:for-each result, Michael Kay | Thread | Re: [xsl] XML IDREFs, David Carlisle |
[xsl] xsl:for-each result, Kevin Rodgers | Date | Re: [xsl] xsl:for-each result, David Carlisle |
Month |