Subject: [xsl] Validation XSLT using XSLT 1.0 and ARMY From: "Dr. Frank Mabry" <fmabry@xxxxxxxxxx> Date: Sat, 05 Jul 2008 00:23:26 -0400 |
Ganesh Babu said: ----------------------------
------------------------------Date: Thu, 3 Jul 2008 10:36:57 +0530 To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx From: "Ganesh Babu N" <nbabuganesh@xxxxxxxxx> Subject: Validation XSLT using XSLT 1.0 Message-ID: <c075eed70807022206s1ad898b2t98cd70c31e5c366c@xxxxxxxxxxxxxx>
Dear All,
I am writing a validation style sheet. I am struck at following point in my validation. Can anyone point me to solution.
1. I want to validate the @picfile value is equal to entity name and tiff images must be equal to the actual images file name on the image folder.
My question is how to get entity name and value in to a test.
<!ENTITY I9780073379470_A_TB004 SYSTEM "9780073379470_A_TB004.tif" NDATA TIFF>
<graphic picfile="I9780073379470_A_TB004"/>
2. In the XML file we are using named entities eg:- ´ instead of { or ģ in XSLT how to find if the XML file contains entities other than named entities?
3. How to find non-ascii characters in the XML file and report an error using XSLT.
4. How to find double enters in the XML file and report an error using XSLT.
I could able to write around 45 validation points using XSLT but got struck with these 4. Please help me resolving these issues.
Regards, Ganesh
[Sometimes it seems that circumstances conspire to make us do something we were about to do anyway.]
I don't think that XSLT processors are intended to do comparisons of graphic image1. I want to validate the @picfile value is equal to entity name and tiff images must be equal to the actual images file name on the image folder.
My question is how to get entity name and value in to a test.
Again the XML parser has already operated on any entity references. Note: if the2. In the XML file we are using named entities eg:- ´ instead of { or ģ in XSLT how to find if the XML file contains entities other than named entities?
If you restrict the encoding in the XML document then the parser will complain3. How to find non-ascii characters in the XML file and report an error using XSLT.
Are you referring to one of the many Unicode codepoints that4. How to find double enters in the XML file and report an error using XSLT.
Frank -- Dr. Frank Mabry, CISSP Associate Professor and IT AIAD Coordinator Dept. of EE&CS U.S. Military Academy West Point, New York, 10996
Work Phone: 845-938-2960 work email: frank.mabry@xxxxxxxx home email: fmabry@xxxxxxxxxx
"The great use of life is to spend it for something that will outlast it." - William James
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] What is $p in the definit, Michael Kay | Thread | [no subject], Unknown |
[xsl] Re: What is $p in the definit, Dimitre Novatchev | Date | [no subject], Unknown |
Month |