Click here to Skip to main content
15,889,116 members
Home / Discussions / XML / XSL
   

XML / XSL

 
AnswerRe: Problem in parsing xml to html Pin
George L. Jackson30-Apr-09 1:56
George L. Jackson30-Apr-09 1:56 
QuestionDegree symbol ° in xml Pin
Gokul.P29-Apr-09 21:01
Gokul.P29-Apr-09 21:01 
AnswerRe: Degree symbol ° in xml Pin
George L. Jackson30-Apr-09 1:54
George L. Jackson30-Apr-09 1:54 
QuestionXml special character Pin
Soundman32.228-Apr-09 5:14
Soundman32.228-Apr-09 5:14 
AnswerRe: Xml special character Pin
Murugesan G29-Apr-09 0:53
Murugesan G29-Apr-09 0:53 
AnswerRe: Xml special character Pin
Member 37528166-May-09 20:08
Member 37528166-May-09 20:08 
QuestionGenerate-id Pin
LordLothar26-Apr-09 4:48
LordLothar26-Apr-09 4:48 
QuestionPhp parameter to xslt Pin
LordLothar25-Apr-09 4:15
LordLothar25-Apr-09 4:15 
I read somewhere I could pass parameter like this:

$manufacturer = $_POST['manufacturer'];
	$cameraType = $_POST['camType'];
	$priceRange = $_POST['priceRange'];
	
	$params = array('maker' => $manufacturer,'camType' => $cameraType,'pRange' => $priceRange);

	
	$xsltTransformer=xslt_create();
	$htmlOutput=xslt_process($xsltTransformer,"camera.xml","camera.xsl", NULL, array(), $params);

	xslt_free($xsltTransformer);


or
$htmlOutput=xslt_process($xsltTransformer,"camera.xml","camera.xsl", $params);


and my xslt will have this:
< xsl:param name="maker">All< /xsl:param>

..so on

Which doesnt work and return always 'All'. I am using Sablotron library for transformation.

How can I pass parameter correctly?
QuestionImproving XML read/load performance Pin
Ekjon21-Apr-09 9:16
Ekjon21-Apr-09 9:16 
QuestionRe: Improving XML read/load performance Pin
led mike21-Apr-09 11:05
led mike21-Apr-09 11:05 
AnswerRe: Improving XML read/load performance Pin
Ekjon21-Apr-09 13:09
Ekjon21-Apr-09 13:09 
QuestionForce XML end tag to be on same line with start tag when InnerText is null [modified] Pin
grichard20-Apr-09 9:55
grichard20-Apr-09 9:55 
AnswerRe: Force XML end tag to be on same line with start tag when InnerText is null Pin
George L. Jackson20-Apr-09 11:07
George L. Jackson20-Apr-09 11:07 
GeneralRe: Force XML end tag to be on same line with start tag when InnerText is null Pin
grichard22-Apr-09 8:26
grichard22-Apr-09 8:26 
GeneralRe: Force XML end tag to be on same line with start tag when InnerText is null Pin
George L. Jackson22-Apr-09 12:56
George L. Jackson22-Apr-09 12:56 
QuestionSaving a tree structure from a treeview and restoring the structure Pin
jr2369317-Apr-09 3:45
jr2369317-Apr-09 3:45 
QuestionXSL Sum() [modified] Pin
LordLothar17-Apr-09 2:12
LordLothar17-Apr-09 2:12 
AnswerRe: XSL Sum() Pin
George L. Jackson17-Apr-09 7:10
George L. Jackson17-Apr-09 7:10 
GeneralRe: XSL Sum() Pin
LordLothar17-Apr-09 17:08
LordLothar17-Apr-09 17:08 
QuestionC++, Java, DOM support Pin
gotchagotcha16-Apr-09 23:33
gotchagotcha16-Apr-09 23:33 
AnswerRe: C++, Java, DOM support Pin
led mike17-Apr-09 5:21
led mike17-Apr-09 5:21 
Questionspecial character problem in href tag using xslt [modified] Pin
alok_2k315-Apr-09 4:05
alok_2k315-Apr-09 4:05 
GeneralRe: special character problem in href tag using xslt Pin
George L. Jackson15-Apr-09 12:24
George L. Jackson15-Apr-09 12:24 
QuestionXML and DTD Doubt? Pin
crrajaguru15-Apr-09 2:23
crrajaguru15-Apr-09 2:23 
QuestionRe: XML and DTD Doubt? Pin
George L. Jackson15-Apr-09 11:58
George L. Jackson15-Apr-09 11:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.