I am quite new to XML in general and the xmlcontent module, and having put in some XML and setup an xsl file, the output is not showing correctly.

I believe I have set up the module properly, configured the input format and set the settings for the XSL file correctly and yet have no joy.

Can someone post some sample xml and xsl file to help try out this module?

Comments

weam’s picture

Status: Active » Closed (fixed)

Sample XML and XSLT files are in the "examples" subfolder.

voipfc’s picture

Status: Closed (fixed) » Active

I have tried and I am stilll unable to get it work.

Steps I have taken.

1. Create an input format called xmlcontent

2. Make sure the only filter applied is XML Content XSLT Filter

3. On the configure tab
1. XSLT Script File Path:student.xsl
2. Validation Type: DTD Validation
3. Schema File Path: student.xsd

4. create a page, copy content of student-valid.xml to it, set input format to xmlcontent

When I view the page, the data is not in a table, and when I view the source there is no table either.

Thx for the assistance

weam’s picture

1. You should call your input format something else (like "XML Student Article") although it doesn't really matter.
3.1 The path might have to be "examples/student.xslt"
3.2 Validation Type is "XML Schema Validation" if you're using an XSD (in 3.3)
3.3 The path might have to be "examples/student.xsd"

Consult the logs to see if there are any error messages.

voipfc’s picture

I have done all that and still no joy.

Is there some way to test whether a filter was triggered by viewing page that uses it?

Can I get xmlcontent.module to log its uses, the pages and the results?

Setting the filter on xmlcontent returns no errors but these errors appear repeatedly in the log.

strtr() [function.strtr]: The second argument is not an array in /home/domain.com/d6/includes/common.inc on line 891.

Invalid argument supplied for foreach() in /home/domain.com/d6/includes/common.inc on line 874.

voipfc’s picture

Status: Active » Closed (fixed)

I have got it working on my local machine so I suspect it is something in the php setup relating to the errors in the log above.

Thx